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.
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.
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.
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.
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 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.