Opencode Claude Subscription — AI skill for Claude Code
OpenCode with a Claude Pro or Max subscription (and ChatGPT Plus) via a drop-in opencode.json: an @ai-sdk/openai-compatible custom provider pointing at Plan2API (https://api.plan2api.com/v1, p2a_ key).
How to install Opencode Claude Subscription
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open bitgate/opencode-claude-subscription and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Opencode Claude Subscription does
OpenCode with a Claude Pro or Max subscription (and ChatGPT Plus) via a drop-in opencode.json: an @ai-sdk/openai-compatible custom provider pointing at Plan2API (https://api.plan2api.com/v1, p2a_ key). Claude Sonnet 5, Opus 5.5, GPT-6.1 Sol, Gemini and Kimi K3 in /models. Works on OpenCode 1.x and 2.
Alternatives in AI
- UI UX Pro Max Skill — An AI SKILL that provide design intelligence for building professional UI/UX multiple platforms 45.8k ★
- Image Use — Use your ChatGPT subscription to generate images from the command line — no OPENAI_API_KEY, no gateway, no dae 373 ★
- Ataru — High-performance AI memory retrieval for local agent history — a Rust search core (SDK / API / JSON CLI) plus 351 ★
README
OpenCode with a Claude Pro or Max subscription
OpenCode stopped bundling its Claude Pro/Max login plugins in version 1.3.0, so the way back is a custom provider: drop this repo's [`opencode.json`](opencode.json) into your project, hand OpenCode the `p2a_` key from [Plan2API](https://plan2api.com/integrations/opencode) as `PLAN2API_API_KEY`, and pick `plan2api/claude/claude-sonnet-5` in `/models`. Claude Sonnet 5 and Opus 5.5 then run on your subscription with tool calls, streaming and a 1M-token context, with no Anthropic API key.
The same provider carries your ChatGPT Plus or Pro plan (`plan2api/openai/gpt-6.1-sol`), Google AI Pro (`plan2api/gemini/gemini-4-argon-high`) and Kimi Code (`plan2api/kimi/k3`), and it works on OpenCode 1.x and OpenCode 2.
**[Get a free `p2a_` key](https://plan2api.com/connect?utm_source=github&utm_medium=readme&utm_campaign=opencode-claude-subscription)** | [OpenCode guide on plan2api.com](https://plan2api.com/integrations/opencode) | [API reference](https://plan2api.com/docs)
1. Turn your Claude subscription into an API key
- Open plan2api.com/connect and sign up with Google.
- Connect Claude by signing in with your Claude account on Anthropic's own sign-in page. Pro, Max 5x and Max 20x all work.
- Copy the
p2a_key you get after connecting. It is shown once; create more on the Keys page (plan2api.com/dashboard/keys).
ChatGPT Plus or Pro connects with a one-time device code on OpenAI's own page, Google AI Pro with your Google account, and Kimi Code with its API key.
2. Install OpenCode
curl -fsSL https://opencode.ai/v2/install | bash
Or `brew install anomalyco/tap/opencode-v2`, or `npm install -g @opencode/cli`.
3. Add the Plan2API provider
Put [`opencode.json`](opencode.json) in your project root, or in `~/.config/opencode/opencode.json` to use it in every project:
mkdir -p ~/.c
Related Skills
Janitor AI Claude Proxy
Janitor AI Claude proxy on your own Claude Pro/Max subscription, plus GPT on ChatGPT Plus. Proxy URL https://a
Hermes Plugin Claude Subscription Directsdk
Hermes Agent model-provider plugin: Claude Pro/Max subscription through the official Claude Code CLI (experime
Velora
Your AI-powered personal wealth advisor. Automated portfolio monitoring, market analysis, and investment brief
Claude Max API Proxy
Actively maintained fork that allows using Claude Code as a model provider via OpenAI compatible protocol
Claudecodex
Use Claude Code's UI with OpenAI GPT-5.6 (Sol/Terra/Luna) as the engine — powered by your ChatGPT Plus/Pro sub
AI Subscription Guide Cn
国内开通 ChatGPT Plus / Claude Pro(含 Claude Code)/ Gemini / Grok 的路线对比、代充怎么判断、常见报错速查。作者自营代充商城,文末如实披露。
Related Agents
Openrouter Agent
Runs a model from any of ~60 vendors through OpenRouter's OpenAI-compatible endpoint, billed per token against
Provider Debugger
Diagnose live-provider compatibility failures for Kimi, GLM, and other OpenAI-compatible endpoints
Opencode
Coding subagent that runs inside opencode, on any provider and model opencode supports (OpenAI, Google, Moonsh