Can you use a Claude Pro/Max subscription with OpenCode? Login, limits & alternatives (2026)
Using Claude Pro/Max subscription with OpenCode
Yes — OpenCode supports Anthropic subscription auth: log in with your Claude Pro/Max account and Claude models run on the subscription instead of API billing. The catch is that the subscription's limits come with it — the 5-hour session window and weekly caps apply exactly as in Claude Code, and heavy agentic use hits them early. Anthropic's consumer terms and limits govern that usage.
What causes it
- Subscription auth shares the plan's budget: OpenCode usage draws from the same 5-hour rolling window and weekly caps as Claude chat and Claude Code.
- Agentic sessions burn the window fast — every tool result re-enters context, so long OpenCode tasks consume far more than equivalent chat.
- Pro's caps are much smaller than Max's; daily agent use on Pro typically hits the weekly cap mid-week.
- Expecting subscription auth to be unmetered — it isn't; it's the plan's allowance surfaced in a different tool.
How to fix it
- Use it within the windows: it's genuinely good value for judgment-heavy work — keep sessions scoped, compact context, and schedule heavy runs around window resets.
- Upgrade Pro → Max for substantially larger session and weekly caps.
- Switch the Anthropic provider in OpenCode to an API key (pay-per-token) — no plan windows, but the bill scales with usage.
- Route volume work to a flat-rate OpenAI-compatible provider in the same OpenCode config and save the subscription for the hard steps.
Running an agent? The subscription is shared across every surface — chat, Claude Code, and OpenCode all draw from one budget. If OpenCode suddenly stops mid-task, check whether a morning of Claude chat already spent the window.
Keep working on a fixed monthly plan
If the 5-hour and weekly windows are the problem, add Standard Compute as a provider in OpenCode: base URL https://api.stdcmpt.com/v1, model "standardcompute" — flat monthly price, no session windows, no weekly caps, with Claude-class models in the routed pool. A common setup is subscription auth for judgment-heavy steps and the flat-rate endpoint for the all-day volume.
Plans from $19 a month with $20 of compute. Eligible new accounts can try $0.25 of compute first, no card. Trial terms
FAQ
Can I log into OpenCode with my Claude Pro or Max subscription?
Yes. OpenCode supports Anthropic's subscription login for Claude models — authenticate with your Claude account and usage bills against the plan, not an API key. The plan's 5-hour and weekly limits apply.
Is Claude via subscription unlimited in OpenCode?
No. You get the same rolling 5-hour session window and weekly caps as Claude Code. Agentic use consumes them quickly — heavy users hit the weekly cap days early, then wait for the reset.
Subscription auth vs API key in OpenCode — which should I use?
Subscription auth is cheapest if your usage fits the windows. An API key removes the windows but bills per token, which gets expensive for agents. A flat-rate endpoint is the fixed-cost, no-window option for sustained agent work.