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.
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.
0
u/Ok_Inflation474 Oct 12 '26
Opencode's free models suck (at least for me), and also use it at your own risk
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.
2
u/Ok_Inflation474 Oct 12 '26
Oh didn't know someone already made this, also what do you mean by "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."? Should I worry?
1
u/netskrill Oct 12 '26 edited Oct 12 '26
Validated, in the sense that thousands of people are using this with their codex/claude $200 subscriptions w/o issues. They say antigravity is supported, but I haven't seen anyone actually mention that they actively use it. So, I am hesitant to use it with my antigravity until I hear success stories. But based on the architecture, It appears one would be safe using antigravity. If Anthropic and OpenAI can't detect this, then I'd believe Google wouldn't be able to, either.
1
u/MarcusAurelius68 Oct 12 '26
I wrap the Antigravity CLI with 4 AI Pro accounts, each running in a separate VM with separate CLI so OAuth doesn’t get poisoned. It works, 2 serving Flash 3.8 in Low and 2 in High, and then feeding OmniRoute which uses them in failover mode (not round robin). The Antigravity overhead per call is high though - around 11K tokens. The most efficient CLI I’m using seems to be Claude Code which injects closer to 500 tokens per call.
3
u/No_Success3928 Oct 12 '26
This is how you get your accounts banned :D
1
u/Ok_Inflation474 Oct 12 '26
Use it at your own risk, this was initially a project for myself and then I decided to publish it since some people wanted to try it, I initially didn't care If I got banned
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/Ok_Inflation474 Oct 12 '26
I didn't know about that, also I don't think that it also works on free tier
1
1
u/MarcusAurelius68 Oct 12 '26
Any reason why you didn’t hook into the Codex CLI or Claude Code CLI?
2
u/Ok_Inflation474 Oct 12 '26
Opencode was my priority since that's what I use, but I plan on adding more agents, and the project is licensed under MIT so feel free to help if you want to
2
2
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?
0
16
u/Rustybot Oct 12 '26
Automated ToS violator, bans you while you sleep!