Show HN: Subagents-MCP – Gemini and Codex subscriptions in claude.ai ($0 API) Developer aattaran released subagents-mcp, an open-source Model Context Protocol (MCP) server that exposes locally signed-in subscription CLIs — Google's Antigravity CLI (agy) for Gemini, OpenAI's Codex CLI, and Anthropic's Claude Code CLI — as selectable agents inside Claude Code and claude.ai with $0 API billing. The tool strips every *_API_KEY environment variable and GOOGLE_APPLICATION_CREDENTIALS before spawning any CLI, runs each runner in an isolated empty 0700 directory, and locks tools down (agy denies all 7 wildcard permission categories, codex runs --sandbox read-only, claude runs --permission-mode plan). It supports multi-turn session resume via conversation_id and registers through `claude mcp add`, with a single-owner OAuth 2.1 MCP Custom Connector for claude.ai web and mobile. Use your existing Google Gemini , ChatGPT Codex , and Claude subscriptions as selectable agents inside Claude Code and claude.ai — with $0 API billing and zero API proxying. Pay-per-token API proxies get expensive fast when you already pay for monthly AI subscriptions. From the author of deepclaude https://github.com/aattaran/deepclaude ★2,200+ , subagents-mcp exposes your locally signed-in subscription CLIs agy , codex , claude over the standard Model Context Protocol MCP so you can select and message Gemini, Codex, and Claude side by side with multi-turn session resume. | | deepclaude https://github.com/aattaran/deepclaude | subagents-mcp | |---|---|---| | Billing | Pay-per-token API keys DeepSeek / OpenRouter | $0 API billing — uses your existing Google, ChatGPT, and Claude subscriptions | | Models | Anthropic-compatible API backends | Gemini agy , Codex codex , and Claude claude side by side | | Works in claude.ai web & mobile? | No CLI proxy | Yes — built-in single-owner OAuth 2.1 MCP Custom Connector | | Works in Claude Code? | Yes ANTHROPIC BASE URL | Yes — stdio MCP + /agents presets + local CLI --proxy | | API key leak protection | Needs API key | Hard-strips every API KEY & GOOGLE APPLICATION CREDENTIALS before spawn | Claude Code / Cursor / Antigravity / claude.ai MCP client │ MCP stdio or Streamable HTTP ▼ subagents-mcp list agents / send to agent / get reply │ strips EVERY API KEY & GOOGLE APPLICATION CREDENTIALS │ runs inside an isolated empty 0700 directory ├──► agy Google AI subscription — Gemini models, all tool actions denied ├──► codex ChatGPT subscription — read-only sandbox └──► claude Claude subscription — read-only plan mode - $0 API billing by construction: every API KEY environment variable GEMINI API KEY , GOOGLE API KEY , OPENAI API KEY , ANTHROPIC API KEY , OPENROUTER API KEY , etc. and GOOGLE APPLICATION CREDENTIALS are stripped before spawning any CLI. If you aren't signed in to a subscription, the CLI reports it instead of silently billing an API key. - No workspace mutation: all runners execute in an isolated empty 0700 directory ~/.local/state/subagents-mcp/sandbox-cwd and fail loudly on startup if it is non-empty. - Hard tool lockout: - agy runs with session-only --settings pinning toolPermission: "request-review" and denying all 7 wildcard permission categories command , write file , read file , mcp , execute url , download url , read url . - codex runs with --sandbox read-only and -c sandbox mode="read-only" on resume . - claude runs with --permission-mode plan . - Multi-turn context: passing conversation id back to send to agent resumes the underlying CLI conversation --conversation , codex exec resume , --resume . Install and sign in via subscription login, no API keys to whichever CLIs you want available — any missing CLI is skipped cleanly at startup: - Gemini Google AI subscription : Antigravity CLI agy https://antigravity.google — run agy once to sign in, verify with agy models . - Codex ChatGPT subscription : OpenAI Codex CLI codex https://github.com/openai/codex — run codex login . - Claude Claude subscription : Claude Code CLI claude https://docs.anthropic.com/en/docs/claude-code — run claude auth login . git clone https://github.com/aattaran/subagents-mcp.git cd subagents-mcp npm install Check which subscription agents are detected on this machine node src/cli.js --list Register the MCP server once: claude mcp add subagents -- node /absolute/path/to/subagents-mcp/src/cli.js Optional — copy the bundled subagent presets so gemini and codex show up directly in Claude Code's /agents picker: mkdir -p ~/.claude/agents cp claude-agents/ .md ~/.claude/agents/ claude.ai Custom Connectors require OAuth 2.1 over HTTPS. subagents-mcp includes a built-in single-owner OAuth 2.1 server Dynamic Client Registration, PKCE, scrypt owner passphrase consent, refresh token rotation, and brute-force lockout . Step 1 — Set your owner passphrase once: node src/cli.js --set-passphrase Step 2 — Expose localhost over HTTPS e.g. Cloudflare Tunnel : cloudflared tunnel --url http://127.0.0.1:3456 Copy the https://