CLAUDE_CODE_TEAMMATE_COMMAND
Updated by Alex Sorokoletov
CLAUDE_CODE_TEAMMATE_COMMAND is a Claude Code environment variable: Command for teammate/cowork functionality. Present since v2.1.69 or earlier and still present in v2.1.294. It is not in the official reference.
| Status | Present in v2.1.294 |
|---|---|
| Added | Present since v2.1.69 or earlier |
| Category | Agents and subagents |
| Official docs | Not listed |
How to set it
For one session, export it in the shell that starts Claude Code:
export CLAUDE_CODE_TEAMMATE_COMMAND=<value>
claudeTo apply it to every session, add it to the env object of a settings file:
// ~/.claude/settings.json
{
"env": {
"CLAUDE_CODE_TEAMMATE_COMMAND": "<value>"
}
}Release notes that mention it
Related variables
CLAUDE_AGENT: Short-form identifier for the current agent, used in inter-agent messaging and log attribution.CLAUDE_AGENT_SDK_CLIENT_APP: Client application name.CLAUDE_AGENT_SDK_DISABLE_BUILTIN_AGENTS: Disable built-in agent types.CLAUDE_AGENT_SDK_MCP_NO_PREFIX: Don't prefix MCP tool names with server name.CLAUDE_AGENT_SDK_VERSION: Agent SDK version sent in User-Agent header.CLAUDE_AGENTS_AUTO_RELAUNCHED_AT: Timestamp set when the agent fleet was automatically relaunched after a crash.CLAUDE_AGENTS_SELECT: Selects which agents from a fleet configuration are active for this session or job.CLAUDE_CODE_AGENT: Full agent descriptor passed into a spawned agent process — likely the agent's frontmatter (tools, allowed/disallowed lists, system prompt path) so the child can reconstruct its runtime without re-reading disk.
Frequently asked questions
What does CLAUDE_CODE_TEAMMATE_COMMAND do?
Command for teammate/cowork functionality
Which Claude Code version has CLAUDE_CODE_TEAMMATE_COMMAND?
Present since v2.1.69 or earlier and still present in v2.1.294.
How do I set CLAUDE_CODE_TEAMMATE_COMMAND?
Export it before starting Claude Code (export CLAUDE_CODE_TEAMMATE_COMMAND=value), or add it to the "env" object in ~/.claude/settings.json to apply it to every session.
All variables, searchable: Claude Code environment variables.