subagents-mcp open-sourced: subscription CLI integration for Claude
Understand this story
alattaran has open-sourced subagents-mcp, which exposes the three locally logged-in subscription CLIs agy, codex, and claude to Claude Code and claude.ai via MCP, allowing users to select and converse with Gemini, Codex, and Claude side by side in Claude, with support for multi-turn session resumption. The author states that the tool strips all *_API_KEY environment variables and GOOGLE_APPLICATION_CREDENTIALS before launching any CLI, so by design it incurs no API billing; if not logged in to a subscription, the CLI will error out rather than silently using an API key and incurring charges. Users need to install and log in to the CLIs they want to use via subscription login, and missing CLIs are skipped at startup. The limitation is that Claude Code 2.1.331+ refuses claude remote-control when ANTHROPIC_BASE_URL does not point to api.anthropic.com, indicating that Remote Control is only available when using api.anthropic.com.
AI overview based on source reports · Updated 1 days ago
Coverage timeline
Follow the coverage to explore different perspectives.
- Hacker News AIShow HN: Subagents-MCP – Gemini and Codex subscriptions in claude.ai ($0 API)
subagents-mcp is an MCP server that exposes locally signed-in subscription CLIs (agy for Gemini, codex for ChatGPT, claude for Claude) so they can be selected and messaged side by side from Claude Code and claude.ai, with multi-turn session resume. It claims $0 API billing by stripping every *_API_KEY and GOOGLE_APPLICATION_CREDENTIALS before spawning, runs each CLI in an isolated empty 0700 directory, and applies tool lockouts (agy denies all wildcard permissions, codex runs read-only, claude runs in plan mode). It includes a built-in single-owner OAuth 2.1 server for claude.ai Custom Connectors, a local --proxy mode for Claude Code CLI slots, and a static bearer-token HTTP mode.
Activity for this story
- Current comparable activity
- 5
- Peak comparable activity
- 10Dec 2 10:00
- Change in the past 24 hours
- -49%
Trends compare the same fully observed participants, which may cover fewer participants than current activity. Move the pointer or tap the chart to inspect hourly activity; use the left and right arrow keys with a keyboard.