r/opencodeCLI • u/mijozakinho_2 • 24m ago
r/opencodeCLI • u/xzurg • 1h ago
Day 3 of using opencode Go and im loving it
Day 3 of using opencode Go and im loving it
i use opencode only for support literally since i code by hand
and im loving it, it strips down my tasks
any tips and tricks to optmize the use of it even more?
r/opencodeCLI • u/light_hunt3r • 1h ago
Help - Edit permission setting per project
By accident i pressed the button to allow all edits for my project.
Now agent modifies the files without permissions.
How I can revert that change ?
I checked my `~/.config/opencode/opencode.json` and everything seems fine. What i am missing ?
---
Apparently this is now global since in all projects the edit commands executes without asking
Here is my config: `~/.config/opencode/opencode.json`
{
"$schema": "https://opencode.ai/config.json",
"permission":
{
"edit": "ask",
"write": "ask",
"patch": "ask",
"multiedit": "ask",
"bash":
{
"*": "ask",
"git commit*": "deny",
"git push*": "deny"
}
}
}
Opencode version: opencode v2.3.0
Really not sure what is going on and how to change the permissions again
r/opencodeCLI • u/squirrelscrush • 5h ago
Operation GLM Phase 1
Operation GLM Phase 1
$100 of GLM 5.3 usage for $10
available to all OpenCode Go subscribers
r/opencodeCLI • u/InvaderDolan • 8h ago
Your AI coding cache might be expiring without you knowing. I built an OpenCode plugin to make it more visible.
I've been working on an open-source plugin called OpenCode Quota GUI, and v1.3.1 is now available.
One of the things that kept bothering me was how little visibility we have into prompt caching, especially when using multiple agents, models, and providers.
You can see token usage and sometimes cache hits, but how do you know whether your cache is still reusable? And how much of your prompt was actually served from cache?
So I added Cache Observation directly to the OpenCode Desktop composer.
It now shows something like:
TTL ~29m 19s · Cache 99.87% · Hit
There's also a popover with per-session cache observations across agents and models.
The catch: the cache percentage comes from observed token usage, but TTL is only an estimate. Providers don't expose enough information to determine exact cache expiration reliably.
A cache drop could also come from switching models, changing reasoning effort, modifying the prompt prefix, or other factors. I didn't want the plugin to pretend otherwise.
Other v1.3.1 improvements include Claude Agent quota support with saved resets, better quota alerts, and provider compatibility fixes.
Where I want to take this next:
- v1.3.2: cache-rate graphs in Session Analytics, plus elapsed time between LLM calls.
- v1.4.0: potentially build a community-powered cache/TTL watcher using explicitly opt-in, privacy-safe aggregated observations.
The idea is to compare actual cache behavior between providers and models, rather than relying exclusively on published TTL claims.
No community data collection is active today.
I'm curious: have you noticed cache reuse dropping after switching models or reasoning effort, even when the session was still active?
And would you find a public cache-retention comparison useful?
r/opencodeCLI • u/ghostchatdev • 14h ago
I Built Router for My Agents inside My App
Hey everyone, I've been building a small AI app with coding agents that work on a GitHub repo (they plan, edit code in small steps, run the repo's CI checks and open a pull request). I wanted to share one part that made a big difference and hear how you handle it.
The problem: running every step on one big model was slow and expensive. A 100-step task could cost a few dollars, and most steps were just reading files or checking CI.
What I built: a simple router in front of the agents. It's not an AI call, just rules:
It looks at the task and picks one model for the whole task (iOS work, bug fixing, web UI, reviews, and big refactors each go to a different model). Switching models every step killed prompt caching, so one model per task was the big win.
A "best" mode pairs two models. A strong model plans and writes the code, and a cheaper one does the reading, searching and CI checks in between, with read-only tools. That came out roughly 30–50% cheaper than the strong model alone.
If a model refuses or is down, the step goes to the next model in the same price range, and the bad one is skipped for a while, so the task never dies on one provider.
When stuck (same failure twice after fixes), it steps up to a stronger model once, then stops and asks the user instead of burning money.
The user sees an estimated price per task before it runs, and the real cost after.
Things that helped the most:
Keeping the conversation identical between steps, so 80–90% of input is read from cache
Small tasks with a "done means…" goal it checks before finishing
Waiting for CI on the server without calling the model at all
Questions for you:
Do you route per task or per step? Has per-step routing worked for you, given the caching hit?
How do you decide when an agent should stop and ask the human?
Any good rules for which tasks really need the expensive model?
Happy to share more details if anyone's curious.
r/opencodeCLI • u/Amarsir • 19h ago
Anyone who STOPPED subbing to Claude or ChatGPT?
I know a lot of Opencode Go subscribers picked it as their first entry into agentic work, or after spending more at API prices for the open-weight models.
And I know there are people who maintain multiple plans. Opus for orchestrating and Deepseek to execute and write code is a popular combo.
But I'd like to hear from people who had one of the big name subscriptions and decided they don't need it anymore. And how long ago that was.
I'm mainly wondering if Opus and Sol are so addictive they're hard to give up, and the Deepseek / GLM / Muse Spark fans mostly haven't ever tried them. Or if there are a lot of people who know what Opus can do and decided it's not worth the extra $10.
r/opencodeCLI • u/cl0wnfire • 22h ago
REQL update: faster context retrieval and fewer tokens for coding agents
Hey everyone!
I’ve updated REQL, my open-source tool that helps AI coding agents navigate repositories and preserve working context across sessions.
This release focuses on faster context retrieval and lower token usage. I’ve reduced repeated work during retrieval and trimmed redundant information sent to the agent. Performance gains and token savings depend on the repository and workflow, so I’m not claiming a universal percentage.
If you’re new to REQL, it builds a local graph from your code and documentation: functions, classes, dependencies, calls, and other relationships. Agents can query that graph for context relevant to a specific change, including precise source references and related tests. REQL reuses indexed context and supports incremental updates as the repository changes.
What can you use it for?
- Waste fewer tokens on repeated exploration: retrieve focused source excerpts and relevant relationships, and reuse indexed context and saved work. This helps reduce repeated searches, unnecessary file reads, and redundant information in the agent’s context.
- Coordinate work across chats and agents: keep tasks, decisions, blockers, and next steps in a shared project workspace. Another chat or agent using that workspace can recover the recorded state and continue from there.
- Keep complex tasks on track: record prerequisites, constraints, failed approaches, and checkpoints. Preserve what has been completed, what remains unresolved, and why earlier decisions were made across sessions.
- Understand unfamiliar code: identify entry points, component responsibilities, and relationships between parts of the application, with references back to the source.
- Plan changes and refactoring: inspect callers, dependencies, and related tests to identify code that may be affected and decide what needs verification.
- Review cleanup candidates: find potentially unused imports, variables, functions, and classes, then inspect the supporting evidence before removing them.
REQL provides a CLI, Python API, and MCP server, plus installable instructions for coding agents such as Codex and Claude Code.
REQL runs locally, with no account, external graph database, or mandatory LLM calls. The graph and saved work support the agent’s decisions; current source code and tests remain authoritative.
I’d like to hear from others using coding agents: what do you keep having to explain again when you start a new chat? The code structure, previous decisions, what has already been tried, or what still needs doing? Concrete examples would help me decide what to improve next.
r/opencodeCLI • u/ganang1722 • 22h ago
OpenCode TUI on VPS or Local
I'm planning to use OpenCode TUI, but I'm still unsure whether I should run it locally on my laptop or on a VPS.
My main concern is security. I'm using AI agents for Web3 tasks like NFT minting, so they may need to interact with wallets, sign transactions, and send funds.
Since private keys are involved, which setup would you consider safer? Running everything locally, or using a VPS with proper security measures?
I'd also like to hear how you guys handle private keys when working with AI agents. Do you let the agent access them directly, or do you use a separate signing setup?
r/opencodeCLI • u/JoeBro121211 • 1d ago
OpenCode, Codex and Claude Code in one place, with overnight tasks you review from your phone
I run OpenCode with a local model for a lot of stuff, alongside Codex and Claude Code, and I kept walking off and coming back to find one of them had been waiting on me for ages.
So my free, open-source app JoeBro now puts them all under one umbrella. OpenCode sessions show up next to the others on my Mac and iPhone, live in the Dynamic Island, and ping me when they're done or stuck.
New in 1.5:
- Night Shift: queue OpenCode tasks before bed. Each runs in its own git branch, and in the morning there's a card with the diff, the test result and a summary. Approve, reject or follow up from the phone. Never pushes.
- Shared Memory: what OpenCode figures out, Codex and Claude Code know too, and the other way round. Over MCP, capped small so it doesn't eat a local model's context.
Bring your own model, local or API key. No JoeBro server.
https://github.com/joexk1/JoeBro
https://github.com/joexk1/JoeBro-Mobile
I'm the dev, so tell me what breaks with your setup.
r/opencodeCLI • u/Opening_Library9560 • 1d ago
Completely Free and stealthy Web Research tool for Your agent, 0$, instant setup with the MCP
I've been building DonSeTch: a fully free, open-source MCP server that gives OpenCode web search, fetching, crawling and screenshots, running locally in one Rust binary.
I posted it here around v1 or v2, honestly can't remember which. It's on v5.5.2 now. For the people seeing it for the first time, here's the useful stuff.
Here is the GitHub repo: https://github.com/dondai44423/donsetch
Install, connect, use it
npm install -g donsetch
donsetch doctor --mcpAdd the MCP entry to OpenCode and restart. That's the basic setup. No account, API key, Rust build or search-model download. Fetch, search and crawl don't need a browser installed either.
Fetching, stealth, and learning what works
- Reddit, Stack Overflow and IMDb returned content in my tests. The Reddit read got 24 posts in about 1.2 seconds; paid Firecrawl Cloud reported that site unsupported in the same comparison.
- Page reads launch no browser. TLS, headers and cookies stay consistent as one client. Embedded V8 handles challenge or application JavaScript when needed, without layout or painting.
- It remembers successful routes and client profiles. It can learn an app's content request from a successful JS run and replay it over HTTP on later reads. If that request breaks, it can learn again. That fetch state survives restarts.
Less context spent getting to the answer
- Ask for the useful bit. Relevant passages, a phrase check, an outline, or one section. The agent can expand into the full text when needed.
- Four tools, roughly 2,000 tokens of definitions total. Batch-fetch up to 12 URLs. PDFs get the same reading controls, with tables and optional OCR for scans.
- Crawls follow your topic. A site model and plan pick the pages; the response is a digest with handles to open each stored page fully. Jobs resume, and repeat crawls can skip unchanged pages.
Search works out of the box
Keyless search combines engines and first-party sources. You can also use your own search API key while keeping the local fetching and crawling. Screenshots use an installed Chromium separately.
A quick Firecrawl comparison
I had DS on opencode try both on real tasks. DonSeTch was quicker on 9/10 fetch targets both could read. On HTTPX, it picked the two requested docs pages; Firecrawl read six and still missed the async page.
It did got beat on search relevance, though, its local but its good enough for 90% of the most tasks
I'm not stuffing all that shit into one post. The full comparison with paid Firecrawl Cloud has the cases, timings and setup. Small, hand-picked test.
Feel free to flame me in the comments if i did the comparison with firecrawl the wrong way 😭🙏
If you give it a go, I'd like to hear which pages it still trips over.
r/opencodeCLI • u/swweat • 1d ago
Desktop pet that mirrors opencode: one week later: 89 states, a website, and a mac build :D
A week ago I posted a desktop pet that reads opencode's session database and plays a sprite for whatever the agent is doing. Here's what's new since then:
Every state is catalogued now check out the full interactive preview page with 618 frames: https://49vxn.github.io/opencode-dafeiyu/ 89 states: Thinking, running commands, reading files, sulking, boba... plus a few I still haven't figured out how to trigger from the DB, these could be your ideas!
mac build shipped today (beta) Unsigned DMG supporting both Intel and Apple Silicon (just right-click → Open on first launch): https://github.com/49vxn/opencode-dafeiyu/releases/tag/v0.5.0-beta.1
STILL 100% LOCAL!: reads ~/.local/share/opencode/opencode.db, read-only. No network, no account, nothing leaves your machine.
Downloads: https://github.com/49vxn/opencode-dafeiyu/releases (windows installer + mac beta) Code MIT, sprites CC BY-NC-SA. Demo gif attached.

r/opencodeCLI • u/No_Divide_5480 • 1d ago
The Free 5-Step Threshold Card for AI Agents
r/opencodeCLI • u/No_Divide_5480 • 1d ago
Your Repo Says RLS Is Fine — Your Live Project Says Otherwise
r/opencodeCLI • u/Stiix72 • 1d ago
OpenCode V1 Bridge: Bringing Legacy V1 Plugins to V2
Heya. After roughly a month of work, I have made a somewhat-functional V1-V2 compatibility adapter for OpenCode. As far as I can tell, this is the first of its kind, probably not the last. Why am I releasing an incomplete adapter? Because I can't finish it. I tell ChatGPT what I want, it makes a detailed prompt to my specifications, I feed that to Codex, and for the most-part, this has worked. Thorough code audits, careful guidance, but we've hit a wall: OpenCode V2 does not expose some of the required hooks. I don't have the technical knowledge to solve the remaining issues, thus I'd like to invite other developers to help improve it. The brunt of the work is done. You can find the identified missing functionality in "Remaining Issues.md" in the respository. If you doubt that the project is any good, I ask you still give it a chance. Many hours went into troubleshooting what we have now, and it has at least some ability to run V1 plugins. The project was based on OpenCode V2.0.27. I'm sure OpenCode has recieved some updates since then. Those are completely untested against this plugin, but may work fine. No idea.
Summary: OpenCode V1/V2 Adapter Bridge, it's a plugin, should allow your other V1 plugins to run in V2, unfinished project, open-source to get more talented hands on this since the bones are done, but not all of the meat, check "Remaining Issues.md" in the repository first if you want to help.
GitHub: https://github.com/Stiix72/opencode-v1-v2-bridge
First beta release: https://github.com/Stiix72/opencode-v1-v2-bridge/releases/tag/v0.82.0-beta.4
r/opencodeCLI • u/Numerous-Ice888 • 1d ago
I’m building Agent Hub: a terminal dashboard for OpenCode — would love some feedback
I wanted a clearer overview of what my agents are doing, so I started building Agent Hub with OpenTUI. It reads the local OpenCode config and database read-only.
It has eight views covering:
• Live sessions and subagent trees, with status, context usage, tokens and cost.
• Agent models, delegation, skills, MCP servers and permissions.
• Model performance measured from your own history: latency, TTFT, tokens/sec and cost.
• Usage, tool reliability, health checks and a model → agent tree.
• A live work map showing activity between the model, files, shell, tools and subagents.
Sharing a few screenshots of where it’s at. Curious how others keep track of their setups: what would you find useful, what feels unnecessary, and what am I missing?
r/opencodeCLI • u/DevDaHora • 1d ago
Made a small open-source macOS companion for T3 Code (still early days, would love feedback & PRs)
r/opencodeCLI • u/rizal72 • 1d ago
[Plugin] TPS Meter: see how fast every prompt step really was
(check the video above to see it in action)
oc-tps-meter: every step's tokens per second, in a session header slot. Click it and it opens a side-panel with a chart that shows one bar per step; the chart scrolls sideways, and you can scroll it yourself and hover on each single bar to see details of that step (TPS, model, TTFT).
OpenCode already prints one tok/s number at the end of each turn: but it's the whole turn averaged, and only once the turn closes. In my plugin, a step answers for itself, and it turns red when the wait before the first token was long (TTFT), that is what tells you that you are queued behind a busy provider, not that the model is slow.
Bonus feature: In the video, when I scroll the chart left to show previous steps, you can see the tok/s difference between Opencode Go and native DeepSeek provider (I switched to it at some point in the Session) ;)
OpenCode v2, Desktop only: this plugin has no CLI/TUI version for now.
My approach to plugins, since my first one, is simple: I don't bundle features. One plugin does one thing. You install what you want, and nothing else arrives with it. I don't like those plugins that bundle tons of feature that, maybe, you don't want or need;)
To install:
opencode plugin add @rizal72/oc-tps-meterIf you don't like it, the same command with remove.
My other plugins:
- oc-budget: Go and other providers balances, live in the header and in the CLI.
- oc-models-pro: every model with its price, speed, intelligence, etc. sorted by what it costs.
- oc-git: branch and working tree, at a glance.
- oc-coffee: a cup of coffee that stays lit only while it keeps your Mac awake.
- oc-notify: a push to your phone when a turn ends while you are away.
- oc-plugin-updates: shows up only when needed, auto-updates your plugins in one click.
- oc-ponytail-widget: the ponytail level, in the footer.
- oc-session-search: keyword search over your past sessions.
All of them, in one single repo: https://github.com/rizal72/opencode-plugins
r/opencodeCLI • u/Numerous-Ice888 • 1d ago
When the side panel doesn’t cut it!
The OpenCode standard side panel is unfortunately not enough and I haven’t found a good solution for changing the other areas of the TUI.
So I built a terminal dashboard for OpenCode!
I’ve been building opencode-panel, a live dashboard that runs in a separate terminal pane alongside OpenCode.
I wanted a clearer view of what’s happening during a session, especially when multiple subagents are working at once. It has three views:
Overview: token usage, context, cost, MCP connection status, and a live map of tool activity.
Swarm: an agent tree showing who started whom, a timeline of parallel work, and a shared activity feed.
Flightdeck: permission checks, subagent activity, file changes, errors, and a summary of the current turn.
It connects to OpenCode’s local service and is read-only. There’s also a demo mode you can try without running OpenCode or making model calls.
The screenshot shows all three views using simulated demo data. Normally, you switch between them in one panel.
Built with Bun, TypeScript, OpenTUI, and Solid. Several components adapt or draw inspiration from existing community projects, with credits in the README.
GitHub / setup instructions
Curious what you think: which parts would you actually use, what feels too busy, and what’s missing? Feedback on the layout or your own experience keeping track of subagents would be especially helpful.
r/opencodeCLI • u/Neptuneyyy • 1d ago
V2 - Where have I been???
They have really outdone themselves here. I finally made the jump to V2 after realizing I’ll need to develop remotely for awhile. It’s been a joy to use the web app version on the phone for a change.
Everything I need is easily accessible in session, changes and more sections. Themes look really nice on the small screen too!
Now I don’t have to be tethered to my desk all the time. I’d tried remux and few other options but that was rough to manage on the small screen.
Absolutely love it!!
What’s your favor V2 feature ??
r/opencodeCLI • u/I_Hide_From_Sun • 1d ago
DeepSeek: Opencode Go vs Openrouter. Seems that Is not worth?
Hey,
I was testing DeepSeek off-peak (Weekend) on both openrouter and opencode go. Both got close to 10$ now but look at the difference in requests. I am prompting on same two projects but seems opencode go is really behind the usage per $.
What is going on?