CLI Subagents logo

CLI Subagents

Run coding subagents across Claude Code, Codex, Antigravity, and OpenCode accounts through MCP.

Install CLI Subagents

Run the project’s own setup commands, in order.

Setup steps from the project

CLI-Subagents installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    pipx install git+https://github.com/lunati228/CLI-Subagents
    
  2. 2. Install
    claude plugin install cli-subagents --marketplace lunati228/CLI-Subagents
    
  3. 3. Configure
    csa setup --account max-2=~/.claude-2 --account codex:plus-2=~/.codex-2
    
  4. 4. Install
    claude plugin install cli-subagents@cli-subagents
    
  5. 5. Add to Codex
    codex plugin marketplace add lunati228/CLI-Subagents
    
  6. 6. Install
    codex plugin add cli-subagents@cli-subagents
    

Overview

CLI-Subagents MCP server lets a main coding-agent session start workers in other Claude Code, Codex, Antigravity, or OpenCode runtimes. It manages jobs, account selection, quotas, continuation, and two-way messages while workers reuse configured MCP servers and instructions. Install it as a plugin for Claude Code, Codex, or Antigravity, or run `csa mcp` from another MCP client. Reach for it when you need parallel coding work across CLI accounts without copying each account’s credentials or project setup.

Use cases

  • Delegate coding tasks to another CLI account
  • Queue parallel workers across subscribed accounts
  • Resume interrupted agent jobs after a timeout
  • Send questions and follow-up instructions to workers
  • Reuse MCP servers and project instructions across accounts

Key features

  • Cross-CLI subagent jobs
  • Account-aware routing and failover
  • Resumable worker conversations
  • Two-way job messaging
  • Shared MCP and project configuration
  • Optional safety and delegation rules

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars16Stargazers on the source repository.
Last commit3d agoMost recent push to the default branch.

How CLI Subagents works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about CLI Subagents

CLI-Subagents is an MCP server that connects a main coding-agent session to workers running in Claude Code, Codex, Antigravity, or OpenCode. Its main tools manage subagent jobs, account routing, job status, resumption, and two-way messages while workers reuse configured MCP servers and instructions.

Install the `csa` command with pipx from the Git repository, then run `csa setup` for supported hosts or configure `csa mcp` as the server command in another MCP client. Python 3.11 or newer is required.

Yes, CLI-Subagents works with Cursor as an MCP client by configuring the server command as `csa` with the `mcp` argument. Plugin-specific installation is provided for Claude Code, Codex, and Antigravity.

Yes, interrupted jobs retain their worker conversation and can be resumed after cancellation, timeout, usage limits, or a machine shutdown. Use `csa jobs --resumable` to find jobs that can continue.

It assigns work to registered account slots, runs one worker per account by default, queues excess jobs, and can move supported Claude Code or Codex work to another account after a usage limit. Each account keeps its own CLI login and credentials.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewCLI Subagents AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/cli-subagents?style=directory)](https://allmcps.com/mcp/cli-subagents)
HTML Embed
<a href="https://allmcps.com/mcp/cli-subagents"><img src="https://allmcps.com/api/badge/cli-subagents?style=directory" alt="CLI Subagents on AllMCPs" /></a>