Aspire

Configuration settings

Aspire configuration is a rooted aspire.config.json file for project-scoped CLI configuration. Use the aspire config command family to inspect and update those settings, and use aspire config list --all to see the feature flags surfaced by your installed CLI.

To share organization-specific skill, integration, and template defaults through Git, see Configuration sources, including examples for pinning configuration and downstream content to approved commits.

Starting in Aspire 13.2, Aspire prefers a rooted aspire.config.json file for project-scoped configuration. The CLI can also read and write user-scoped global defaults.

  • Project-scoped configuration

    Project-scoped settings live in a rooted aspire.config.json file. This replaces the older .aspire/settings.json model.

  • Global configuration

    User-scoped defaults can be set with aspire config set --global .... Project-scoped settings override global values when both are present. Project-specific values such as appHost.path must be configured locally in aspire.config.json.

The consolidated aspire.config.json file also stores other rooted Aspire configuration, such as the SDK version, launch profiles, and integration packages. The settings table lists the settings you can configure in the file and their default values.

aspire.config.json
{
"$schema": "https://aspire.dev/reference/cli/configuration/schema.json",
"appHost": {
"path": "./apphost.mts"
},
"channel": "staging",
"features": {
"defaultWatchEnabled": true,
"showAllTemplates": true,
"updateNotificationsEnabled": true
}
}

Aspire publishes a JSON Schema for aspire.config.json so editors can provide completions, validation, and hover documentation while you edit the file.

Two URLs are available:

  • The latest URL always points to the newest published schema:

    Latest schema URL
    https://aspire.dev/reference/cli/configuration/schema.json

    schema.json

  • A versioned URL pins to a specific Aspire release, such as 17.0.0:

    Versioned schema URL
    https://aspire.dev/reference/cli/configuration/schema/17.0.0.json

    Every stable Aspire release starting with 13.2.0 has a versioned schema, and that schema never changes after the release ships.

Reference the schema from aspire.config.json

Section titled “Reference the schema from aspire.config.json”

Most editors automatically pick up a schema when the JSON file declares a top-level $schema property:

aspire.config.json
{
"$schema": "https://aspire.dev/reference/cli/configuration/schema.json",
"appHost": {
"path": "./apphost.mts"
}
}

Associate the schema in Visual Studio Code

Section titled “Associate the schema in Visual Studio Code”

With the Aspire VS Code extension installed, the schema is registered for aspire.config.json automatically. Without the extension, add a $schema property to the top of aspire.config.json (see above) or map the schema manually in .vscode/settings.json under json.schemas.

Any editor or tool that understands JSON Schema draft-07 can consume the hosted schema — including JetBrains IDEs (Settings → Languages & Frameworks → Schemas and DTDs → JSON Schema Mappings), Neovim with jsonls, and command-line validators such as ajv or check-jsonschema. Point the tool at either the latest or versioned URL above.

Use aspire config list to see the values that are currently set, and use aspire config list --all to enumerate the feature flags your installed CLI can configure. The following table lists the settings, their default values, and what they control.

KeyDefaultDescription
appHost.language—Language of the AppHost, such as typescript/nodejs or python. The CLI uses it to choose the runtime that runs the AppHost.
appHost.path—Path to the default AppHost entry point, such as apphost.mts, Program.cs, or an AppHost project file, relative to the directory that contains aspire.config.json. Set it in the local aspire.config.json file; the CLI ignores it in global configuration.
certificates.nssDbPaths—NSS database paths used for browser certificate trust on Linux. Separate paths with the platform path separator. Prefix a path with firefox= or chromium= to apply the trust settings expected by that browser family. Takes precedence over the upstream DOTNET_DEV_CERTS_NSSDB_PATHS environment variable.
channel—Aspire channel used to resolve Aspire packages, such as stable, staging, or daily. aspire new, aspire init, and aspire update can record it, aspire add reads it for non-C# AppHosts, and aspire update uses it when you don’t pass --channel.
containerTunnel.baseImage—Base image used to build the container tunnel proxy image. The CLI passes it to the AppHost as ASPIRE_CONTAINER_TUNNEL_BASE_IMAGE unless that variable is already set.
docs.api.sitemapUrlhttps://aspire.dev/sitemap-0.xmlAPI reference sitemap used by aspire docs api. Leave it unset to use the built-in aspire.dev source.
docs.llmsTxtUrlhttps://aspire.dev/llms-full.txtllms.txt documentation source used by aspire docs. Leave it unset to use the built-in aspire.dev source.
features.appHostServerV2falseOpt in to the preview AppHost Server v2 for this AppHost. Supports TypeScript AppHosts only, and doesn’t support AppHost server debugging. Set it in the AppHost’s local aspire.config.json file; aspire config set --global rejects it.
features.defaultWatchEnabledfalseEnable or disable watch mode by default when running Aspire applications for automatic restarts on file changes.
features.experimentalPolyglotJavafalseEnable or disable experimental Java AppHost support.
features.experimentalPolyglotPythonfalseEnable or disable experimental Python AppHost support.
features.experimentalPolyglotRustfalseEnable or disable experimental Rust AppHost support.
features.nugetSignatureVerificationEnabledtrueEnable or disable defaulting the DOTNET_NUGET_SIGNATURE_VERIFICATION environment variable for NuGet operations. When enabled on Linux, the CLI sets the variable to true unless you’ve set it to false.
features.polyglotIntegrationFilterEnabledfalseEnable or disable an experimental filter that restricts aspire add, aspire integration list, and aspire integration search in non-C# AppHosts to integrations with the polyglot NuGet tag. The filter fails closed, so enabling it against a remote feed hides every integration. Azure DevOps Artifacts feeds ignore tags: query scoping, and nuget.org returns no first-party integrations for the tag. Enable it only against a local package source or hive, where the CLI reads the tag from the package’s .nuspec file.
features.showAllTemplatesfalseShow all available templates, including experimental ones, in aspire new and aspire init.
features.showDeprecatedPackagesfalseShow or hide deprecated packages in aspire add search results.
features.stagingChannelEnabledfalseEnable or disable access to the staging channel for early access to preview features and packages. When enabled, daily, local, and per-PR CLI builds can also resolve the staging channel.
features.updateNotificationsEnabledtrueEnable or disable Aspire CLI update notifications.
overrideStagingFeed—Feed URL for the staging channel. Any non-empty value lets every CLI build resolve the staging channel, and a valid http or https URL replaces the default staging feed. To set it, run aspire config set -g overrideStagingFeed <feed-url>. Without this setting or features.stagingChannelEnabled, --channel staging only resolves on stable or staging Aspire CLI builds. Daily, local, and per-PR builds refuse it and report the recovery options. This key isn’t part of the published JSON Schema, so schema-aware editors flag it as an unknown property.
packages.<packageId>—Version of a hosting integration package for a non-C# AppHost, keyed by package ID. A value that ends in .csproj is treated as a project reference. aspire add adds entries, and aspire update updates their versions. For more information, see Add and restore integrations.
profiles.<name>.applicationUrl—Application URLs for the launch profile, such as https://localhost:17000;http://localhost:15000. To learn where each kind of AppHost stores launch profiles, see AppHost configuration.
profiles.<name>.environmentVariables—Environment variables for the launch profile.
sdk.versionInstalled CLI versionAspire SDK version for a non-C# AppHost, which determines the version of the Aspire.Hosting packages to use. aspire update updates this value.
skillSources.<name>Built-in Aspire source enabledNamed agent plugin marketplaces and OpenCode skill catalogs configured by aspire agent init. Sources merge across global and project configuration. Set skillSources.default.enabled to false to exclude the built-in source. For fields and examples, see Configure AI agent plugins and skill sources.

Each . in a key maps to a nested object in aspire.config.json. For example, aspire config set appHost.path ./apphost.mts writes "appHost": { "path": "./apphost.mts" }. Replace placeholders such as <packageId> and <name> with your own values.

Use appHost.path to set the default AppHost entry point for the current configuration root:

Set the local AppHost path
aspire config set appHost.path ./apphost.mts

The CLI writes this value to the local aspire.config.json file:

aspire.config.json
{
"appHost": {
"path": "./apphost.mts"
}
}

The AppHost path can point to the entry point used by your AppHost language, such as apphost.mts, Program.cs, or an AppHost project file. The path is project-specific and can’t be configured globally. If a global settings file contains appHost.path or the legacy appHostPath key, the CLI ignores that value and warns that AppHost paths must be configured locally. The legacy appHostPath key is also blocked by aspire config set; use appHost.path instead.

Configure browser certificate trust on Linux

Section titled “Configure browser certificate trust on Linux”

On Linux, the NSS databases used to trust the Aspire HTTPS development certificate can be configured through certificates.nssDbPaths, including user-level configuration:

Set the NSS database paths globally
aspire config set --global certificates.nssDbPaths "firefox=/path/to/firefox/profile:chromium=/path/to/chromium/nssdb"

Prefix a path with firefox= or chromium= to apply the trust settings expected by that browser family, and separate multiple paths with the platform path separator.

If certificates.nssDbPaths is unset, aspire certs trust will also honor the DOTNET_DEV_CERTS_NSSDB_PATHS environment variable, but Aspire configuration will take precedence when present. When no specific configuration is supplied, Aspire applies certificate trust to NSS databases in well-known browser specific paths for Firefox and Chrome/Chromium. Run aspire certs trust to apply the configured trust settings.

Configure AI agent plugins and skill sources

Section titled “Configure AI agent plugins and skill sources”

aspire agent init reads skillSources to choose which AI agent plugins and skill catalogs to enable. Project settings override global defaults for each named source.

Without a skillSources setting, setup uses the built-in default source: aspire@aspire-skills from microsoft/aspire-skills for GitHub Copilot and Claude Code, and the Aspire catalog for OpenCode.

When sources are configured, selecting aspire applies all enabled entries. Additional sources keep the built-in source enabled unless you override its settings or disable it. For example, exclude the built-in Aspire source and add your team’s plugins or catalogs:

aspire.config.json
{
"skillSources": {
"default": {
"enabled": false
},
"team": {
"repository": "example-org/team-skills",
"marketplace": "team-skills",
"plugins": ["platform", "deployment"],
"ref": "main",
"openCodeV1Catalog": "https://skills.example.com/opencode/v1/",
"openCodeV2Catalog": "https://skills.example.com/opencode/v2/"
}
}
}

Replace the example values with sources you trust. To include the built-in Aspire source alongside team, set skillSources.default.enabled to true.

Each source supports these fields:

FieldBehavior
enabledWhether to configure this source. Defaults to true.
repositoryRequired for additional sources. Accepts GitHub owner/repository shorthand or an HTTPS or SSH Git URL.
marketplaceMarketplace identifier for GitHub Copilot and Claude Code. Defaults to the source name; default uses aspire-skills.
pluginsNon-empty array of marketplace plugin names. Defaults to ["aspire"].
refOptional marketplace Git ref. The CLI preserves existing agent-side pins.
openCodeV1CatalogOptional HTTPS skill catalog URL for OpenCode V1.
openCodeV2CatalogOptional HTTPS skill catalog URL for OpenCode V2.

OpenCode uses catalog URLs instead of the plugins list. Omit the catalog fields for sources without OpenCode skills.

A shared Git configuration source can also supply skillSources. After editing or refreshing settings, run aspire agent init to apply all enabled sources:

Apply skill sources to project agent settings
aspire agent init --agents all --skills aspire --scope project --non-interactive

For GitHub Copilot and Claude Code, the CLI writes marketplace entries and enables plugins in their settings. For OpenCode, it writes catalog URLs. The agents download and load the content.

Disabling a source skips future registration. It doesn’t uninstall a plugin or remove a catalog already registered in agent settings.

Use feature flags to opt in to preview experiences that your installed Aspire CLI supports.

  1. Run aspire config list --all to discover available features.* keys.

  2. Enable a feature flag for the current project with aspire config set:

    Enable a project-scoped preview feature
    aspire config set features.<featureKey> true
  3. Use --global (or -g) when you want the feature enabled by default across projects. Copy the key name exactly from aspire config list --all:

    Enable a user-scoped preview feature default
    aspire config set features.<featureKey> true --global

    For example, consider the following that enables global support for Rust:

    Enable global Rust support
    aspire config set features.experimentalPolyglotRust true --global
  4. Turn a feature off by setting it to false, or remove the override with aspire config delete <key>.

  • Use aspire config list to show currently set project-scoped and global values.

  • Use aspire config list --all to include the feature flags that your installed CLI can configure.

  • Use aspire config get <key> to inspect a specific setting such as channel or appHost.path.

  • Use aspire config set <key> <value> to update a setting, and aspire config set --global ... when you want a user-scoped default.

CommandStatusFunction
aspire configStableCommand driver for managing Aspire configuration.
aspire config listStableList currently configured values, or all available feature flags with --all.
aspire config get <key>StableGet a configuration value.
aspire config set <key> <value>StableSet a configuration value.
aspire config delete <key>StableDelete a configuration value.

For command-level details, see the aspire config command reference.