r/opencodeCLI • u/Ok_Inflation474 • Oct 11 '26
I built a bridge that lets OpenCode use your logged-in ChatGPT, Claude, Gemini or DeepSeek tab (no API key)
Hey all. I pay for a few chat subscriptions I barely use and I have no API budget, so I built NOAPI?: a small local bridge plus a browser extension that lets OpenCode talk to the AI sites you already have open.
How it works: OpenCode sends the prompt to a local OpenAI compatible server, the extension types it into the chat tab, waits for the answer and sends it back. Tool calls work too (bash, edit, write...). The bridge teaches the site's model a tiny TOOL_CALL format and turns its replies into real tool calls. You also get a live "Thinking" status in OpenCode while it works.
Supports ChatGPT, Claude, Gemini, DeepSeek, Perplexity, Grok and Mistral. Plain Node.js, zero dependencies, local only (127.0.0.1), MIT.
Honest limits: it drives a real web page, so it is slower than an API and can break when a site changes its layout (the fixes are small, PRs welcome). Tool use depends on the model following the format. It may also go against a site's terms, so use your own account and decide for yourself. Tested websites: deepseek, Gemini, chatgpt
Repo: https://github.com/cribest7890/NOAPI I'd love to hear what breaks for you.
16
u/Rustybot Oct 12 '26
Automated ToS violator, bans you while you sleep!
5
u/squirrelscrush Oct 12 '26
My guy will get everyone who uses this banned.
Just make an OpenCode console account and use their free models, man.
4
u/netskrill Oct 12 '26
There is software that already does this with nearly 55K stars, cliproxyAPI. It's been validated with all the major US harnesses. However, it says it would work with antigravity. Its entire architecture is different than how google used to ban users who used oAuth wrappers.
3
u/No_Success3928 Oct 12 '26
This is how you get your accounts banned :D
2
u/ohhno_whyamihere Oct 12 '26
Eh? Doesnt open code already have a /connect and integration feature ,idk about claude but chatgpt subscription works and antigravity auth thru another way works too?
1
u/MarcusAurelius68 Oct 12 '26
Any reason why you didn’t hook into the Codex CLI or Claude Code CLI?
2
u/Adventurous-Truth629 Oct 12 '26
Just use Paseo
0
u/ares0027 Oct 12 '26
erm.. (for gemini at least) why not use antigravity cli and even the extras such as conversation ids etc to keep the cache, context etc?