r/opencodeCLI • u/beppe28 • 3d ago
r/opencodeCLI • u/Imaginary-Mix-7777 • 3d ago
Anyone running OpenCode fully on a local model? Which one actually handles the tool calls?
I've been on OpenCode with the DeepSeek API for a couple of months and it's been great, but I'd like the long loops (test, fix, test again) to stop costing money every run.
I've got a Mac mini M4 Pro with 48GB that sits idle most of the day, so that's what it would run on.
Not trying to replace the API model for the big refactors. Just the grind work where it calls tools 40 times in a row.
If you run OpenCode against a local model, which model, which quant, what's serving it, and do the tool calls actually hold up or does it fall apart after a few turns?
r/opencodeCLI • u/Comfortably-Numb1975 • 3d ago
Factory.ai alternative
Our team trialled Factory for a month and like the Droids for small refactors and test coverage, but the contract was a lot to commit to before we knew which models were worth paying for on which kind of work.
That's why I'm looking at alternatives where we keep more control over the model side. One we're testing is Orq's software factory, which only runs on the models we approve and logs what each task delivered and what it cost, so we can put a cheaper model on the boring tickets and see if it holds up. It's early access and nowhere near as polished as Factory yet, so for now it's a side-by-side on the same tickets for a couple of weeks before anyone signs anything
r/opencodeCLI • u/DoctorDbx • 4d ago
Is opencode going to remove ZDR on MiniMax models in light of the leak news?
https://www.minimax.io/blog/update-on-url-access-in-forwarded-api-requests-20261124
MiniMax were caught accessing data from canary prompts, accessing websites and scraping repos.
My question to OpenCode as a provider of MiniMax M3 and M3.1 you list on their website that they have 0 days data retention which is obviously not true based on their statement.
They should be classified as Not ZDR and users should be made aware of this.
r/opencodeCLI • u/soul105 • 4d ago
Native multi-profile support in OpenCode 2 (separate subscriptions & MCPs)?
Does anyone know if native multi-profile support (like a `--profile` flag) is planned or already possible in OpenCode 2?
I want to maintain completely separate setups, work vs. personal where each profile has:
* Its own authenticated subscriptions / providers (`auth.json`)
* Its own set of enabled MCP servers (`opencode.jsonc`)
r/opencodeCLI • u/drtikov • 4d ago
Added OpenCode support to Aetheris Microbrains — sub-ms pre-flight safety gate for your agent
Hey OpenCode folks — I just added native OpenCode support to Aetheris Microbrains.
It sits in front of tool execution and checks edits/shell commands locally in <1 ms before anything runs. For OpenCode, it installs as .opencode/plugins/aetheris-microbrains.js and works with --host opencode.
What it gives you:
- Catches syntax errors in edits before they waste recovery turns
- Blocks destructive commands (
rm -rf /,Âdd,Âcurl | sh) and secret leakage - ProtectsÂ
.opencode/,Âopencode.json(c),Â.env,Â.ssh/, etc. - Scrubs secrets from tool outputs
- Saves ~37k input tokens / ~$0.11 per 26-step session in benchmarks
- ~0.5 ms median overhead per check
Repo:Â https://github.com/drtikov/microbrainsforagents
Install:
pip install -e .
aetheris install opencode --workspace . --self-testHappy to hear feedback or integration ideas.Title: Added OpenCode support to Aetheris Microbrains — sub-ms pre-flight safety gate for your agentBody:Hey OpenCode folks — I just added native OpenCode support to Aetheris Microbrains.It sits in front of tool execution and checks edits/shell commands locally in <1 ms before anything runs. For OpenCode, it installs as .opencode/plugins/aetheris-microbrains.js and works with --host opencode.What it gives you:Catches syntax errors in edits before they waste recovery turns
Blocks destructive commands (rm -rf /, dd, curl | sh) and secret leakage
Protects .opencode/, opencode.json(c), .env, .ssh/, etc.
Scrubs secrets from tool outputs
Saves ~37k input tokens / ~$0.11 per 26-step session in benchmarks
~0.5 ms median overhead per checkRepo:Â https://github.com/drtikov/microbrainsforagentsInstall:pip install -e .
aetheris install opencode --workspace . --self-testHappy to hear feedback or integration ideas.
r/opencodeCLI • u/ganang1722 • 3d ago
Which AI model would you recommend for building Web3 automation bots?
I've been experimenting with OpenCode TUI and trying to build some automation tools for Web3.
Some of the things I'm working on include:
- NFT minting bots
- NFT game bots that can handle multiple accounts
- NFT whitelist registration bots
I've been using free models so far, mainly to experiment and see what they can handle.
I'm curious which models you guys would recommend for these kinds of tasks. Would you go with something like Hy4 Flash, DeepSeek V4.1 Flash, Nemotron 3.5 Lightning, or something else?
I'm not necessarily looking for the most powerful model, just something reliable that can understand prompts, follow instructions, and handle these kinds of automation tasks without too much trouble.
r/opencodeCLI • u/fcomovaz • 4d ago
Revival of opencode-usage with OpenCode v1 & v2 support (opencode-usage-v2)
reddit.comr/opencodeCLI • u/tcanuck42 • 4d ago
I run OpenCode unattended as a background PR worker, sandboxed with no Git credentials. Open-sourced the setup.
r/opencodeCLI • u/miangelo • 5d ago
Is the change "Background Subagents by Default" since v2.3.0 good?
Since version 2.3.0, OpenCode now runs background agents by default. As far as I know, there is no option to disable this, so this seems to be enforced.
I tried this new setup but it seems to me that it is just adding extra turns with no real value. For example, say you have an orchestrator and that orchestrator calls four different Explorer agents.
With the old way of having those sub-agents working on the foreground, the orchestrator would wait for the four different explore agents to return, it would check their outputs and then it would produce its own output having taken into account all of them.
Now what happens is that it dispatches the four sub-agents and then returns.
When the first sub-agents comes back, it checks its output and says ok, let's wait for the other three to come back.
Then the second one comes back, checks its output and says, ok, let's wait for the other two to come back.
Then the 3rd one comes, checks its output and says, let's wait for the last one to come back.
And when the 4th one comes back, it then outputs a final.
From what I understand, each time that a subagent comes back and our orchestrator checks its output, that is a request that sends the entire context to the API servers. Sure it is most probably cached, but it is still billed. Isn't that way of working very inefficient? Am I missing something?
EDIT: It looks like there is an active issue about this on GH
https://github.com/anomalyco/opencode/issues/64073
EDIT2: Apparently they closed the issue saying "We aren't bringing back blocking subagent calls, so closing as not planned."… 🤬
r/opencodeCLI • u/Abenh31 • 5d ago
Best thinking model to pair with deeepseek flash in Go
As the title say. which model can act like a cheap "opus" available in opencode, i can use as for high thinking tasks.
Candidate: GLM 5.3, Argon, Mimo v2.6 Pro?
Kimi k3.1 will probably nuke your usage
r/opencodeCLI • u/sozDC • 4d ago
OpenCode flags for openAI usage limits but I got plenty left for the week & Codex works fine
As the title says, I was using OpenCode normally until I got blocked due to usage limits when I still had more than 80% of the weekly quota remaining. This got even stranger when I tested Codex and it worked fine…
I have already checked Settings->Usage->Connected App Limits and I got everything up to 100%
Has anyone had similar issues?
Thanks in advance to the replies!
r/opencodeCLI • u/JoeBro121211 • 4d ago
I built a desktop app that shows OpenCode sessions as live chats next to Claude Code and Codex (Windows and Linux, open source)
I use OpenCode most days, but also Claude Code and Codex depending on the task, and I kept losing track of which terminal was waiting on me. So I built JoeBro Desktop, a native app for Windows and Linux (there is a Mac version too) that lists every running session as a chat in a sidebar.
When OpenCode asks a question or needs a permission approved, the options show up inline in the chat and you click one or type your own answer. Same for the other agents.
Other bits: local models (Ollama, LM Studio) and your own API keys work as agents with tools, one memory is shared by every agent over MCP, and Night Shift runs coding tasks overnight in separate git worktrees with diffs to review in the morning. It never pushes.
Free, GPL-3.0, no account, no telemetry. The backend runs on your machine and needs Python. Builds are unsigned for now, so Windows SmartScreen will warn.
Repo: https://github.com/joexk1/JoeBro-Desktop
Tell me what is missing for the way you use OpenCode.
r/opencodeCLI • u/warpaint_james • 5d ago
Tried "code mode" and I can't currently recommend it
https://github.com/anomalyco/opencode/blob/dev/packages/codemode/README.md
Been trying out the code mode on a couple different projects.
I used Gemini Hydrogen and also Deepseek Flash 1017.
I found it to be really inconsistent. It seemed like subagents would report that they were done/finished before they were. And that shell tasks were also not being reported incorrectly.
Not sure what other people are experiencing but it doesn't seem ready.
Happy to be wrong. But did anyone else try this and have issues?
r/opencodeCLI • u/No_Skill_8393 • 5d ago
I measured where coding-agent tokens actually go, then built a skill that cuts the bill by up to 43% (open source, benchmarked)
I wanted to know whether "make the agent write terse code" actually saves money, so I measured it instead of guessing.
Setup: 4 small codebases (Python, TypeScript, Rust, C), 23 feature tasks, each with hidden functional and security tests (path traversal, authz, SQL injection, overflow, XSS). The specs never mention security. Three arms: no skill, Ponytail (the strongest public alternative I found), and my skill. Claude Opus, 3 runs per cell, 36 runs. Cost comes from per-call billed usage in the transcripts, not estimates.
First finding: code verbosity barely matters. Every model call re-reads the whole context, so the bill is driven by how many calls the agent makes. One extra call costs about 6% of a run. The cost splits into prefix re-reads 39%, context growth 28%, output 27%, thinking 6%. Making code terser on its own caps out under 10%.
So the skill's first rule is fewer calls: batch independent tool calls, read targeted line ranges once, edit each file once, run tests once at the end. Then less output: no comments, no narration, minimal diffs. It never drops validation, auth checks, escaping or bounds checks.
Results, billed cost vs no skill:
Python 0.57x (Ponytail 0.98x)
Rust 0.69x (Ponytail 0.91x)
C 0.71x (Ponytail 1.08x)
TypeScript 0.97x (Ponytail 1.06x)
All four 0.70x (Ponytail 1.00x)
Model calls per run went from 12.2 to 7.4. Security tests: 513/516 in all three arms. Functional: 499 vs 498 out of 510; the one difference is a spec-ambiguous check that only one baseline run passed.
Caveats: one harness (Claude Code), small purpose-built fixtures, 3 runs per cell. TypeScript barely moved because its baseline was already lean. Each prompt held several tasks, so batching across tasks helped; single-task sessions will save less. Not every platform's install route is verified live yet.
It's a ~500-token skill, packaged for Claude Code, Codex, Gemini CLI and Antigravity, plus rule files for Cursor, Windsurf, Cline, Copilot, Kiro and AGENTS.md. The benchmark harness, raw billed data and the cost equation are in the repo, so you can rerun it or poke holes in the method:
https://github.com/nagisanzenin/nonhuman
Happy to hear where the methodology is weak.
r/opencodeCLI • u/External_Ad1549 • 5d ago
Gemini/Antigravity subscription in OpenCode with full tool use: what's the best setup?
Trying to get Gemini (AI Pro/Ultra plan) working in OpenCode as well as Claude does: real tool calls, MCP (browser automation) and per-tool stats.
Tried so far:
- ACP bridge to the official
agyCLI. Chat works and MCP servers get passed through. But agy runs its own tool loop, so OpenCode only sees one opaque step per turn and slow MCP calls get interrupted.disableBuiltInToolsdidn't turn off agy's built-in tools. opencode-antigravity-auth. It works, but there are reports of accounts getting flagged, so I'm skipping it.- Gemini CLI OAuth is dead for Pro/Ultra.
Questions:
- Has anyone made agy/ACP hand tool calls back to OpenCode, like the Claude Code plugin does?
- Is there any way to turn off agy's built-in tools?
- Or is a plain API key the only clean route?
Thanks!
(An AI helped format this post.)
r/opencodeCLI • u/CYCLONOUS_69 • 5d ago
Thank you OpenCode team and this is ABSOLUTELY WORTH IT!
r/opencodeCLI • u/Pracurser_Reads • 6d ago
Burned through my Google AI Pro weekly limit twice with Antigravity Neon in OpenCode (Neon feels so much better than Opus 5.5)
r/opencodeCLI • u/drtikov • 5d ago
Stop wasting tokens & nuking files: I built Aetheris Microbrains, a deterministic sub-2ms pre-flight gate for OpenAI Codex CLI (and Claude Code / Antigravity)
r/opencodeCLI • u/NotLeoBringas • 5d ago
Intentando ejecutar OpenCode en Linux Mint con un Intel Core 2 Duo P8400: compilación Node.js, problemas con Worker y archivos faltantes en la TUI
r/opencodeCLI • u/ganang1722 • 5d ago
I've been trying OpenCode TUI with a free model for the past few days

I've been experimenting with OpenCode TUI over the past few days, using the free HY4 Flash model.
So far, I've been using it to build a bot for an NFT game. The prompts weren't particularly complicated. I intentionally kept things simple because I wanted to see how well a free model could handle tasks through OpenCode.
Honestly, everything has been running pretty smoothly so far. The TUI interface feels good to work with, and the model has handled the tasks better than I expected.
I'm running it on the same VPS I mentioned in my previous post:
- Ubuntu 24.04
- 2 vCPU
- 2 GB RAM
- 10 GB Swap
- 40 GB SSD
I'm also using it to manage bots for multiple NFT game accounts.
It's still early, but so far, both OpenCode TUI and the free model have been working well for what I'm trying to do. I'll keep experimenting and see how far I can push this setup.
