bitgate

Opencode Claude Subscription — AI skill for Claude Code

AI community

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

  1. Open plan2api.com/connect and sign up with Google.
  2. Connect Claude by signing in with your Claude account on Anthropic's own sign-in page. Pro, Max 5x and Max 20x all work.
  3. 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