Aspire

Get started with the Squad integration

⭐ Community Toolkit

Squad organizes AI agents around a shared workspace. The Aspire Squad integration from the Aspire Community Toolkit adds that workspace to your AppHost as a logical resource and makes its metadata available to projects that reference it.

The integration does not start an agent process or service. Add the separate Squad.Agents.AI client package to a consuming app when you want to run the team.

  • Model a team workspace and its roster alongside your other AppHost resources.
  • Pass the workspace path, agent roster, and protocol descriptor to a service with Aspire resource references.
  • View resource metadata and dashboard commands for refreshing the roster, opening the team folder, launching Copilot CLI, and checking the decision inbox.
AppHostConsuming appSquad resourceSquad workspaceService

AddSquad reads team metadata from the workspace. A project that references the resource receives a squad:// connection string containing the team root, roster, and protocol version. The service can use that descriptor with Squad.Agents.AI.

  1. Set up a Squad workspace and identify the directory that contains its .squad/ folder. The teamRoot argument points to this parent directory.

  2. Install the Community Toolkit hosting package and add a Squad resource. See Set up Squad in the AppHost.

  3. Reference the Squad resource from a project and use the injected connection string with Squad.Agents.AI. See Connect to a Squad team.