# CLI-Subagents [Health: Active]

**Category:** 🤖 Coding Agents  
**Repository:** https://github.com/lunati228/CLI-Subagents  
**GitHub Stars:** 16  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/cli-subagents

## Description
Give your coding agent subagents in your other agent CLIs and accounts, all sharing the same tools. Plugin for Claude Code, Codex and Antigravity; MCP server for any other client.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/lunati228/CLI-Subagents), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
pipx install git+https://github.com/lunati228/CLI-Subagents
```

2. Install:

```sh
claude plugin install cli-subagents --marketplace lunati228/CLI-Subagents
```

3. Configure:

```sh
csa setup --account max-2=~/.claude-2 --account codex:plus-2=~/.codex-2
```

4. Install:

```sh
claude plugin install cli-subagents@cli-subagents
```

5. Add to Codex:

```sh
codex plugin marketplace add lunati228/CLI-Subagents
```

6. Install:

```sh
codex plugin add cli-subagents@cli-subagents
```

## Documentation

## What CLI-Subagents does

CLI-Subagents coordinates coding subagents that run in separate agent CLI accounts and runtimes. A main session can delegate work to Claude Code, Codex, Antigravity, or OpenCode workers, then wait for results, send follow-up messages, or answer questions from a worker. The worker retains its own conversation, allowing interrupted jobs to continue later.

Workers inherit the parent setup through existing configuration paths and launch options. This can include MCP servers, skills, plugins, instruction files, project memory, and settings. Credentials remain managed by the vendor CLI or provider configuration; CLI-Subagents does not transfer logins between runtimes.

## How it works

The `csa` command provides the runtime and setup workflow. In supported hosts, the project installs as a plugin or relay integration. For other MCP clients, start the server with `csa mcp` and connect to it using the client’s normal MCP configuration.

Jobs are assigned to available account slots. By default, each account runs one worker at a time, while additional work waits in a queue. Claude Code and Codex usage data can guide account selection, and a task that reaches a usage limit can continue on another eligible account. Stopped jobs remain resumable, including after cancellation, timeout, or a powered-off machine; `csa jobs --resumable` lists jobs that can be continued.

Workers can send progress updates or questions, and the main session can reply while work is in progress. Claude Code hooks can notify an idle session when a worker finishes or needs input.

## Setup and configuration

Python 3.11 or newer is required. The package uses the Python standard library and can be installed with pipx:

```bash
pipx install git+https://github.com/lunati228/CLI-Subagents
```

Install the host integration that matches the main session:

- Claude Code: install the `cli-subagents` plugin from the project marketplace.
- Codex: run `csa setup --host codex` to install the plugin and native relay agents.
- Antigravity: install the plugin with `agy plugin install` and the repository URL.
- Other MCP clients: configure the server command as `csa` with the `mcp` argument.

Additional account folders can be registered with commands such as `csa accounts add NAME` or through `csa setup --account`. Account folders must use the corresponding CLI’s own login. `csa doctor --live` checks account availability. The setup command can detect installed hosts, register existing account folders, and perform a dry run before changing configuration.

Optional settings cover account limits, usage ceilings, failover, plan presets, delegation rules, and OpenCode availability. User-authorized overrides can bypass CLI-Subagents queue and cap settings, but do not bypass vendor login, model, access, or real usage limits.

## Tools and capabilities

- Start, monitor, wait for, resume, and communicate with subagent jobs.
- Route work across Claude Code, Codex, Antigravity, and OpenCode accounts.
- Share configured MCP servers, skills, plugins, and instruction paths with workers.
- Queue jobs per account and switch accounts after supported usage limits.
- Send worker progress messages, receive questions, and provide follow-up instructions.
- Apply read-only handling, review modes, sandboxing, and reviewer chains for supported worker types.

## Limitations and notes

The project is marked as early development. OpenCode uses one profile, and its free-model IP limit does not cause account rotation. Free OpenCode models are intended for personal projects. On supported Windows setups, OpenCode edit workers can use the project’s MXC sandbox; installing that sandbox downloads roughly 540 MB unless it is disabled.

Safety controls depend on the selected runtime and job type. Read jobs receive read-only tools, while edit jobs use runtime-specific review or sandbox behavior. Skipping permissions is an explicit per-job choice. Account rotation also depends on the CLI reporting usable account data and does not copy credentials between runtimes.

_Full upstream README: https://allmcps.com/mcp/cli-subagents/readme_

