r/opencode • u/KhalilGharbaoui • 27d ago
i've been running claude code inside opencode through the official cli for 7 months.. useful or am i overengineering this? 😅
i started this in march because i wanted opencode's ui with claude models, and i didnt want to do anything sketchy with my login to get there.
since february a lot of the "use your claude sub in opencode" setups are a terms problem, because they lift the oauth token out of the official client. this plugin never reads it. it runs the claude cli you already have as a subprocess, so opencode gets whatever claude code is logged in as.. subscription, api key, bedrock or vertex.
whats in the video: one prompt, two subagents running at once, each on a model i named in the prompt (haiku for the quick lookup, opus on xhigh for the harder one). the sidebar shows both with their model, effort and token cost (it's all on the subscription, nothing extra is billed), a time estimate for the main turn, and how much of my 5h window is left. sped up 4x.
other stuff it does:
- 19 claude models in the picker with effort variants and fast mode
- opencode still runs bash/edit/write itself, behind its own permission prompts
- several claude accounts side by side, and when one runs out it tells you which window and when it resets in your own timezone
- /btw to ask a side question while a turn is still running
- one package for opencode 1.x and 2.x
its at ~15k downloads a month now which honestly surprised me..
what id love to know:
- what breaks for you when you use claude in opencode today?
- multiple accounts, useful or niche?
- is the turn time estimate in the sidebar helpful or just noise?
- anything claude code does on its own that you miss in opencode?
links in the comments 👇🏼
View all comments
2
u/Tex-Twil 20d ago
isnt there an official way to use anthropic pro subscription in OpenCode now?
https://x.com/opencode/status/2116198602523513081