r/opencodeCLI • u/Annual_Nose903 • 5h ago
r/opencodeCLI • u/DefinetlyNotXon • 7h ago
What are yall's observations on tinsel-alpha-free, subq-savant-1.4-free and the new seaglass alpha and tidepool alpha
reddit.comr/opencodeCLI • u/Ok-Buyer-9421 • 7h ago
How do you regression-test your AGENTS.md rules when switching models in OpenCode?
How do you know whether the new model still follows your engineering conventions?
I've been building an approach where written rules become executable tests, independently of the coding agent or model.
For example:
- Never mock our own hooks.
- Never use
time.sleep()in tests. - Always use our internal error class.
Each rule gets explicit passing and failing examples.
Glob and grep handle what can be checked deterministically. Specialized decision models handle what requires semantic judgment. Checks run at commit time or in CI.
In one of my experiments, 97.6% of checks could be handled before making a model call.
The idea isn't to replace linters or CI, but to make written conventions testable without having to implement every new rule manually.
I'm building this as an open-source project called Agentests: https://github.com/feuersteiner/agentests
Would love some feedback from people regularly switching between models.
r/opencodeCLI • u/the__repeat • 8h ago
I built a small Mac CLI so Codex / Claude Code / Cursor can use API keys without seeing them
r/opencodeCLI • u/Major_Afternoon_1598 • 12h ago
Kimi k3 vs Ergo?
Hi,
I wanted to compare kimi k3 vs ergo for some stuff that claude refuses to do but running full evals will be quite expensive, so wanted your opinion on what you have experienced while working with these models on real world tasks
kimi has been said to be benchmaxxed and not sure whether that applies to Ergo so cant trust AA scores
The tasks will be long form agentic coding related to bot automation work
r/opencodeCLI • u/Major_Afternoon_1598 • 18h ago
Amazon Ergo Uncensored
Ergo Uncensored is now on OpenUncensored at 240–280 tps, the fastest and cheapest uncensored Ergo we could find.
Hey everyone,
We've just moved Ergo Uncensored (Amazon's 1.1T Ergo with its refusals removed) onto our own GPUs on OpenUncensored, with 1M context, tool calling and reasoning.
It's available through our API on a pay-as-you-go basis, no account needed.
| Provider | Input / 1M | Cached / 1M | Output / 1M | Measured decode | First token (TTFT) |
|---|---|---|---|---|---|
| OpenUncensored | $1.10 | $0.20 | $3.33 | 240–282 tok/s (282 at C=1) | 0.15 s cached (0.8–1.5 s live avg) |
| Other uncensored Ergo API | $1.10 | $0.33 | $3.33 | ~167 tok/s | 2.8 s (8.9 s p90) |
Coding agents spend most of their tokens re-reading cached context, so the cached price is where you save.
You can use it with your favourite coding tools, including DSH, Claude Code, OpenCode and Cursor, through our API.
It isn't quantized any further than Amazon's release: same MXFP4 experts and BF16 weights, served with Amazon's DSpark speculative decoding. It has been tested deeply for regressions on tool calling, reasoning, knowledge and uncensored compliance:
- Refusals: 3/100 compared to 98/100 in the original
- 88.3 on MMLU (stock Ergo: 90.7)
- Passed our internal coding and cyber benchmarks
- #2 on the OpenUncensored leaderboard
Let us know what you guys think!
r/opencodeCLI • u/rvctech • 20h ago
Minimax M4 and GLM 5.4 on OpenCode Go. Abit pricey though
r/opencodeCLI • u/Forsaken-Loan-65 • 21h ago
Burning through codex tokens, without switching models - Any advice?
reddit.comas anyone found a reliable way to significantly reduce Codex token consumption or extend usage limits without installing Ollama, using OpenRouter, paying for additional credits, or sacrificing the original model’s coding and reasoning capabilities?
r/opencodeCLI • u/Wildcherrii • 21h ago
[Plugin] I got tired of paying frontier rates for mechanical edits, so I built a two-seat plugin (planner + worker, auto take-back)
OpenCode lets you switch models mid-session, but actually working that way is manual labor — plan with the smart model, switch to the cheap one, re-explain the task, switch back to review, repeat. I built Handoff so multi-model sessions run themselves: one brain plans, a cheaper seat executes, and everything (including the seat) comes back on its own. Free, OpenCode V2 TUI. Repo + install at the bottom.
The problem, concretely: I was doing all my planning with my best model, then doing the grunt work — file edits, test runs, boilerplate — on that same expensive model, because switching seats mid-session and re-briefing the next model every time was more annoying than just eating the cost. That's backwards. The cheap model should do the expensive (token-heavy) work, and the expensive model should only do the cheap (short planning) work. But nobody wants to play air-traffic controller between two models all day.
So that's what Handoff is for: it makes the planner/worker split automatic. You talk to your planner like normal. When there's real work, the worker seat picks it up on its own, does exactly what's in the mandate, writes up what it did, and hands control back. If it ever gets stuck somewhere weird, /takeback yanks the seat back instantly. You never switch models by hand, you never re-explain anything, and you stop burning flagship tokens on mechanical edits.
Everything else in the plugin exists to serve that loop:
- Per-model spend readout (cost, turns, tokens, plus a list-price estimate since some providers report $0.00) — because the whole point is knowing which seat burned what. My own numbers: the worker does ~2x the tokens of Main while Main keeps the plan tight. That's the arbitrage working.
- Automatic vision detours — attach an image your worker can't read and the seat detours to a vision model by itself, which writes you a description plus ASCII art, then hands the seat back. No model-switching ceremony.
- Mandate checklists that clean up after themselves, a live banner naming who's active and what it's doing right now, update checks that stay quiet unless there's news and then read you the changelog once, and failure messages that name the seat, the state, and the fix instead of leaving you guessing.
And when you want manual control: /takeback, /vl to force a vision pass, /auto to pause the automation, /model1 /model2 /modelvl to swap seats, /helphandoff for the full list.
Install: tell your AI "install the handoff plugin from https://github.com/Nodoubvt/opencode-handoff" — clone into your plugins folder, restart the TUI, pick models once. Needs OpenCode V2.
Caveats, being honest: it's a one-dev project built around my own workflow and tested mostly on Windows, so be gentle. The license is free-to-use but download-only (no forks/redistribution) — I know that's unusual around here, happy to talk about it. There's also an anonymous install ping (plugin name, version, event type, random install ID — nothing personal) with a /telemetry off-switch.
The question I'd genuinely love answered: for those of you already splitting planning and execution across models manually — how are you doing the handoffs today, and what breaks? I built this for my loop; tell me where yours differs.
Repo: https://github.com/Nodoubvt/opencode-handoff
If it saves you a headache: https://buymeacoffee.com/ronilividt/e/605956
r/opencodeCLI • u/Wildcherrii • 21h ago
Title:I got tired of paying frontier rates for mechanical edits, so I built a two-seat plugin (planner + worker, auto take-back)
r/opencodeCLI • u/ExternalStaff • 23h ago
Best Practice / Guide for setting up OpenCode in a Docker container or sandbox?
My Ideal setup would be something like - OpenCode using VSCode with Git, node, python, C++ and Rust all installed and ready to use, plus my skills, scripts and MCP's. All in one docker sandbox, setup remains consistent every time I launch.
Can I use the GUi with a docker sandbox?
Is there a guide for this? What would you do differently?
r/opencodeCLI • u/SelectionCalm70 • 1d ago
I put together a directory comparing AI coding plans and subscriptions across 25 providers
I've been tracking AI coding plans and subscriptions, and three providers caught my attention: Morse, OpenCode Go and Command Code.
Instead of comparing just the monthly prices, I wanted to put their plans, usage limits and what you actually get side by side.
Here's what I found:
1. Morse
Free: $0/month, includes $2.50 monthly credits.
Pro: $9/month (first-year pricing).
Max: $23.40/month (first-year pricing).
Access to uncensored models and chat-focused subscriptions with unlimited messages on paid plans.
2. OpenCode Go
Go: $10/month.
Go Plus: $40/month.
Curated model catalogue for agentic coding.
Generous usage limits, with additional limits and fewer interruptions on Go Plus.
3. Command Code
Go: $1/month, includes $10 in credits.
GOAT: $10/month, up to $100 in credits.
Pro: $20/month, up to $110 in credits.
Higher-tier Max plans are also available, going up to $200/month.
The interesting part is that these providers have quite different approaches to AI coding subscriptions. Some focus on curated model access, others on credits and request allowances.
I've put together a comparison so you can check the plans and pricing in one place.
Full comparison: https://inferencedirectory.xyz/coding-plans/
I'm keeping the listings updated as pricing and usage limits change.
Are there any other AI coding subscription providers worth adding?
r/opencodeCLI • u/Fickle-Connection851 • 1d ago
Shipped v0.3.2 of CacheSurgeon (open-source proxy for MCP rug-pull protection, schema-tax cache fixes, and tool-call filtering)
Been seeing a lot of threads here lately about the same handful of MCP headaches: connecting 4 or 5 servers dumps a huge tool list into every turn and quietly wrecks prompt caching when keys/order shift, remote servers mutating tool descriptions mid-session (rug pulls), and agents sneaking secrets or blocked commands out through encoded tool args.
I've been building an open-source local proxy called CacheSurgeon (MIT, Python/FastAPI) to deal with this stuff in flight, and just pushed v0.3.2.
What changed in 0.3.2:
- Split `provenance_guard_mode` away from `tool_firewall_mode` so you can block encoded secret exfil without having to tie it to your destructive-command firewall rules.
- Added Unicode escape decoding for OpenAI Chat tool calls. Previously, obfuscated Unicode escapes inside tool arguments could slip past pre-execution checks.
- Fixed a Windows SQLite WAL sidecar unlink race on startup, plus a small Cockpit UI bug where MCP tool-pin buttons could get stuck.
If you haven't seen it before, it sits in front of OpenAI, Anthropic, or Ollama (`OPENAI_BASE_URL` / `ANTHROPIC_BASE_URL`) and does a few things locally (~2ms overhead):
- Pins MCP tools individually by SHA-256 (so deferred/dynamic tool loading still works) and quarantines shady mid-session mutations while letting normal benign edits through.
- Canonically sorts tool arrays/JSON keys, moves shifting timestamps out of the cached prefix, and adds Anthropic `cache_control` breakpoints so your MCP schema tax doesn't nuke your prompt cache.
- Scrubs `.env` keys, PEMs, JWTs, and DB URLs before they leave your machine and restores them on the way back across SSE streams.
- Blocks destructive tool calls (`rm -rf`, `DROP TABLE`, force pushes, etc.) before execution and stops runaway retry loops.
If you want to poke at it locally:
bash
pip install cachesurgeon
cachesurgeon start --port 8787
You can also open `http://127.0.0.1:8787` and hit the simulate button to watch the MCP rug-pull guard and secret vault trigger without hooking up an API key.
Repo: https://github.com/jsumpter415/cachesurgeon
Demo / cache bleed calculator: https://cachesurgeon.com
Let me know if you run into any weird edge cases with your MCP setup or deferred tool loading.
r/opencodeCLI • u/rizal72 • 1d ago
[Plugin] oc-budget now shows your Claude limits, without touching your token
Quick update on my opencode-plugins suite: small plugins for OpenCode v2, each doing one thing, in Desktop and CLI.
oc-budget now shows your Claude 5-hour and weekly limits (via Claude Agent), next to OpenCode Go and your other balances. Desktop and CLI, as usual.
What's different: there are plenty of usage plugins around, some really nice, but most of the ones I looked at, grab your subscription's OAuth token and call Anthropic themselves. Anthropic's terms say third-party developers must not do that, and I like my account ;)
So mine never reads your token: it just asks the official claude CLI for /usage. Zero tokens spent, and a much safer way to do it (though I can't promise anything on Anthropic's behalf).
Needs Claude Code 2.1.325+. Tested on macOS only.
The rest of the suite:
- oc-models-pro: every model with price, speed and intelligence
- oc-tps-meter: tokens per second, step by step (Desktop only)
- oc-notify: a push to your phone when a turn ends
- oc-git: branch and working tree at a glance
- oc-coffee: keeps your Mac awake while the agent works
- oc-ponytail-widget: the ponytail level
- oc-session-search: search your past sessions
- oc-plugin-updates: (deprecated in favour of OpenCode's new built-in updates)
Install any of them (@latest keeps it updated):
opencode plugin add @rizal72/oc-budget@latestAll in one repo: https://github.com/rizal72/opencode-plugins
r/opencodeCLI • u/FlatStill2540 • 1d ago
Two weeks of running OpenCode on a local Qwen on a DGX Spark
For two weeks I've run OpenCode against a local model on a DGX Spark instead of the API for the long test fix loops. Magnitude has a one click connect for opencode so I used that.
I settled on Qwen 3.8 27B at 4-bit. It writes at about 67 tok/s and reads prompts at around 840, so a loop with a fat context still starts answering within seconds. The 35B MoE is faster but it lost track of the task more often in long loops.
Tool calls have held up as long as I keep the tool list short. With every MCP server I have turned on, it started picking the wrong tool around turn 20.
I still plan with the API model and let the local one grind through the loops.
anyone found a local model that stays on task past 30 tool calls?
r/opencodeCLI • u/BlueberryEffective94 • 1d ago
Hola alguien sabe cómo integró Open Code en hermes y con una sólo API tengo acceso a todos los modelos que tiene Open Code? Grax
reddit.comr/opencodeCLI • u/warpaint_james • 1d ago
Minimax M4 and GLM 5.4 now available in OpenCode Go
reddit.comr/opencodeCLI • u/No-Individual159 • 1d ago
Prefixwise: see why opencode's prompt cache misses, and what each miss costs
reddit.comr/opencodeCLI • u/SirRobinBlibs • 2d ago
OpenCode 2.3.2 fixed GPT-6.2 re-billing the system prompt every step. How I'd check my own setup
The v2.3.2 release note says GPT-6.2 models don't cache a system prompt sent in the Responses instructions field, so every step re-billed it as uncached input. OpenCode now sends it as a leading developer message. On GitHub Copilot gpt-6.2-sol the note says uncached input per step went from about 14,000 tokens to 3.
OpenAI's caching guide explains why: on GPT-6.2 and later, top-level instructions are appended after the input and billed at the uncached rate every request. Reusable instructions belong in the first developer message.
What I took from it: a session hit rate can look fine (70% in my worked example) while the biggest stable block is never cached. Check cached and uncached tokens per step, at step 2 and at step 10.
I wrote up the arithmetic, a ten-minute audit and a small script that prints the numbers per step: https://medium.com/@r3dtuxedo/your-system-prompt-was-never-cached-77c7bebe41fd
I wrote the article.
r/opencodeCLI • u/phosphorhouse • 2d ago
Built a local SQLite memory layer for OpenCode CLI (0 MB idle daemon, read_file packs, diff-locked rules)
When you run OpenCode CLI across multiple providers and repos, flat AGENTS.md files or Obsidian folders start breaking down fast: fixes from one repo bleed into unrelated sessions, models occasionally overwrite rules you already verified by hand, and MCP memory servers add constant schema overhead on every turn.
I built Slipdex (v0.4, MIT) on Node 22+ built-in node:sqlite (or Bun bun:sqlite) with zero external npm dependencies and no background daemon.
How it works inside an OpenCode CLI workflow:
slipdex init --no-mcpwires a compactSKILL.mdandAGENTS.mdpack index so OpenCode reads only the matchingpacks/<domain>.mdviaread_filewith zero MCP tool clutter.- Even on a fresh session, a tiny startup radar gives OpenCode your active context and domain pointers without dumping a giant global markdown file, and
slipdex recallpulls older slips on demand via FTS5 BM25. - Separate local SQLite WAL vaults isolate
engineering,project:<slug>, gatedon-demandvaults behind short-lived leases, an optional Identity Card, and an encrypted write-only journal. - Human-verified notes are diff-locked at the SQLite layer: agent edits open reviewable proposals with append-only history instead of silently mutating head.
- On-demand local Studio (
slipdex ui) gives you a draggable domain graph, token-budget preview, and 1-click import from existingAGENTS.md,CLAUDE.md, Obsidian vaults, and session logs, then shuts down cleanly when idle.
GitHub (MIT): https://github.com/phosphorhouse/slipdex Browser demo (sample data, no install): https://phosphorhouse.github.io/slipdex/demo/
Quick setup: npm install -g git+https://github.com/phosphorhouse/slipdex.git && slipdex init --no-mcp
r/opencodeCLI • u/Ok-Community-7121 • 2d ago
One prompt, and your OpenCode models work next to Claude and Codex
I like having lots of models to choose from. I just got tired of choosing one for every single task.
So I built Quota Boss (mine, free, MIT). You type one prompt, and Claude Code or Codex becomes the boss. It splits the task, gives each part to a fitting model and checks every result. OpenCode is how it reaches the free and API models you add, like DeepSeek through OpenCode Zen or models from OpenRouter. OpenCode Go works as a custom API too.
What I like most: the small stuff doesn't have to eat my paid limits anymore. A free model that's about as likely to get a part right goes first. Independent parts run at the same time, and the boss reads the changes and runs the tests again before it says done.
Your API keys stay in OpenCode, Quota Boss never reads them. Free offers are off until you pick them, and each one shows its limit and whether it trains on your data.
Try it: npx quota-boss@latest, then /boss-setup and /boss on
https://github.com/CrazyToto/quota-boss
You probably know these models better than I do. Which ones would you trust with real work, and for what? I'd love to hear where it picks wrong.
r/opencodeCLI • u/Few-Cartographer7156 • 2d ago
I made an OpenCode plugin that puts a diff in front of me before applying an edit
I built Mirage because I wanted a small review step for edits I care about. In OpenCode 2 CLI, I can ask the agent to send one edit through Mirage, look at the diff, then approve that proposal. A quick way to try it is to pick one tracked text file, ask for a small change through Mirage, and compare the approved preview with `git diff` afterward.
The plugin is opt-in. OpenCode’s native write tools are still there, so the review only covers edits sent through Mirage. If you use OpenCode, would you bother with this for config and migrations, or is reviewing the final Git diff enough for you?
r/opencodeCLI • u/mattatabi • 2d ago
Help me decide between OpenCode go and Command Code GOAT...
galleryr/opencodeCLI • u/Longjumping_Bad_879 • 2d ago
Does MCP code mode introduce a trade-off between token efficiency, context retention, and error recovery?
reddit.comA doubt regarding trade-offs associated with code mode in mcp. Please refer to the original post.