selan.ai

Guide · Claude Code for a team

What are Claude Code agent teams, and what do they cost?

Claude Code agent teams are several Claude Code sessions working together: one lead session starts teammates, which share a task list and message each other directly. They are experimental and off until you set CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1. Each teammate is a full session with its own context window, so a team uses tokens for every teammate. Through Selan, each teammate runs on the company's own accounts.

lead

What is a Claude Code agent team?

A team has four parts. The lead is the session you start, and it stays the lead for its whole life. Teammates are separate Claude Code sessions, each working on its own tasks. A shared task list holds the work, which teammates claim and complete. A mailbox carries messages between them.

A subagent works inside one session and hands its result back. A teammate works on its own and talks to the others.

SubagentsAgent teams
ContextIts own window; the result returns to the callerIts own window; fully independent
TalkingReports back to the main conversationTeammates message each other directly
Token costLower: results are summarized backHigher: each teammate is a separate Claude instance
Best forFocused work where only the result mattersWork that needs discussion: reviews, research, competing debugging theories

Anthropic's own advice is to check whether a single session or a subagent does the job first. Sequential work and edits to the same file go better without a team: two teammates editing one file overwrite each other.

How do you turn on agent teams in Claude Code?

Set the variable to 1 in your shell or in the env block of a settings file:

{
  "env": {
    "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
  }
}

Then ask for a team in plain words, such as "Spawn three teammates to review PR #142: one on security, one on performance, one on test coverage." Claude decides how many teammates to start unless you say.

  • Teams need an interactive session. With -p, and in the Agent SDK, Claude starts ordinary subagents instead.
  • Teams can form when you did not ask. While the variable is on, a subagent Claude names launches as a teammate, and Claude names subagents on its own. Set it to 0 to get plain subagents back.
  • Teammates run inside your terminal by default. Arrow keys pick one in the agent panel, and Enter opens it. Set teammateMode to "auto" to give each its own pane in tmux or iTerm2.
  • A session has one team, teammates cannot start teammates of their own, and /resume does not bring in-process teammates back.

Which model does a Claude Code teammate run on?

Claude Code takes the first of these that applies:

  1. The model your spawn prompt names for that teammate, such as "Use Sonnet for each teammate."
  2. For a teammate started from a subagent definition, that file's model; inherit means the lead's model.
  3. CLAUDE_CODE_SUBAGENT_MODEL, when it is set to anything but inherit.
  4. The lead's current model.
  • A teammate's model is fixed when it starts. /model typed while you view a teammate changes the lead, so Claude Code refuses it there.
  • CLAUDE_CODE_SUBAGENT_MODEL_FORCE=1 drops the first two sources (v2.1.257 and later): every teammate runs on CLAUDE_CODE_SUBAGENT_MODEL, or on the lead's model.
  • An availableModels allowlist covers teammates. A blocked family alias moves to the newest version the list permits, where the provider supports that; any other blocked model falls back to the lead's.
  • teammateDefaultModel is gone since v2.1.234, and Claude Code ignores a leftover value.
  • A teammate on the lead's model runs at the lead's effort level. On another model it does not; set effort in its definition.

How many tokens do Claude Code agent teams use?

Token use grows with the number of active teammates and how long each runs. Anthropic puts a team at about seven times the tokens of a standard session when teammates run in plan mode. Each teammate keeps using tokens until it exits or the session ends.

  • Teammates load the project on their own. CLAUDE.md, MCP servers and skills come in at spawn; everything in the spawn prompt adds to that.
  • A teammate's cache lasts five minutes by default, on a Claude subscription too. Set subagentPromptCacheTtl to 1h to keep it longer; the API bills one-hour cache writes at a higher rate.
  • On a subscription seat, teammates draw on the same usage limits as the lead.

Anthropic's advice for keeping it down: Sonnet for teammates, three to five teammates for most work, short spawn prompts, and shutting teammates down when they finish. Claude Sonnet 5.5 lists at $2 input and $10 output per million tokens, half of Opus 5.5's $4 and $20.

A team of teammates is a set of full sessions, and each one's tokens are its own.

Teammates start in the lead's permission mode. A lead run with --dangerously-skip-permissions starts teammates that skip permissions too, and no mode can be set per teammate at spawn. Their permission prompts come up in the lead's session.

How does a company control agent teams for every developer?

Put the settings in managed settings, which apply after every other source, so a project or a developer cannot undo them:

{
  "env": {
    "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1",
    "CLAUDE_CODE_SUBAGENT_MODEL": "sonnet",
    "CLAUDE_CODE_SUBAGENT_MODEL_FORCE": "1"
  }
}
  • "0" in managed settings keeps teams off for every developer.
  • Forcing sonnet runs every teammate and subagent on Sonnet, a reviewer you wanted on Opus included.
  • Roles defined once are reused. A subagent file such as a security reviewer, in the managed or project scope, can be named when a teammate is spawned; its tools and model apply.
  • Hooks gate the work. TeammateIdle, TaskCreated and TaskCompleted run at those moments, and an exit code of 2 keeps a teammate working or blocks the task with feedback.
  • Pre-approved commands in permission settings cut the prompts that teammates send up to the lead.

None of this shows a company what a team spent, or stops one developer's team from spending too much.

What does Selan do with an agent team's requests?

Selan is a hosted gateway that runs Claude Code and Codex on the accounts your company already pays for. A team works behind it as the steps above describe, and every teammate's requests go through it.

  • Each alias runs on a model your company has switched on. "Use Sonnet for each teammate" runs them on Claude Sonnet 5.5; a model switched off is unreachable, whichever teammate names it.
  • Logs mark each teammate's request as Teammate, beside the main conversation, Explore and Plan, with the model it ran on. selan turns on Claude Code's gateway hint headers for this.
  • All of a team counts toward one person's spend limit. The lead and every teammate are the same developer, so a team cannot spend past that developer's limit.
  • The effort limit an owner sets per model maker applies to every teammate too.

The model switches are listed in what an owner sets, and the models each provider serves are in providers. What a repository's sessions cost is in usage practices, and a limit per person is on spend limits per developer.

Start for free

Free for up to three seats, and the Free plan needs no card.

When is Claude Code's own setting the better answer?

For running a team, always: it is Claude Code that starts teammates and chooses their models, through a gateway or not. The variable, a model line in each role's file and managed settings cost nothing.

A gateway adds what Claude Code does not keep for a company: which agent spent what, one list of the models anyone may reach, and a limit per person. Which model a subagent runs on covers the same model order for subagents, and Claude Code's effort level covers the level a teammate runs at, and Claude Code dynamic workflows cover running many agents from a script instead.

The short version

How agent teams work, their model order, limits and costs are as Anthropic's agent teams page, costs page and model configuration page (code.claude.com/docs/en/agent-teams, /costs and /model-config) stated them on 21 November 2026. Agent teams are experimental and change with nearly every release: check the date before relying on them. The prices are Anthropic's list prices as Selan's model catalog held them on that date, and what Selan does is as its command line, gateway and control app stated it then.