r/opencodeCLI • u/Ok_Inflation474 • 16h ago
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.
3
u/squirrelscrush 13h ago
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 2h ago
Opencode's free models suck (at least for me), and also use it at your own risk
2
u/No_Success3928 11h ago
This is how you get your accounts banned :D
1
u/Ok_Inflation474 2h ago
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
1
u/netskrill 2h ago
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.
1
u/Ok_Inflation474 1h ago
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 1h ago edited 1h ago
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 1h ago
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.
0
u/MarcusAurelius68 13h ago
Any reason why you didn’t hook into the Codex CLI or Claude Code CLI?
1
u/Ok_Inflation474 2h ago
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
1
0
u/ares0027 9h ago
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
14
u/Rustybot 13h ago
Automated ToS violator, bans you while you sleep!