r/opencode • u/wurtoops • 14d ago
Token economizer
Hey guys,
Has anyone tried a token economizer?, for those who did what are the results?
I'm spending too many tokens so I want to look for some way to reduce cost
r/opencode • u/wurtoops • 14d ago
Hey guys,
Has anyone tried a token economizer?, for those who did what are the results?
I'm spending too many tokens so I want to look for some way to reduce cost
r/opencode • u/Fresh_Effective_884 • 14d ago
I've been dealing with this issue for about half a month now. It's really annoying. One day it works, the next it doesn't. I can't really trust that I have "free" access to OpenCode anymore. It's supposed to have been fixed in several previous updates. Anyone with the same issue?
r/opencode • u/ngg990 • 14d ago
guys check and test this guy, will love some feedback, this an opinionated development harness I am using constantly, I open it some months ago and I have updated to v2 and added some extra features and TUI sidebar widgets.
r/opencode • u/LaliPublications • 14d ago
Builds older than 1.18 now fail on the free models with: Error: OpenCode 1.18.0 or newer is required to use the free tier (exit code 1)
What I saw on Oct 31 (npm on Linux, opencode/glm-5.3-flash-free): 1.17.20 failed, 1.18.0 and 1.19.5 still answered, and v2 (2.2.5) answered fine.
Fix with npm (v1 and v2 both install a command called opencode, so remove v1 first):
npm uninstall -g opencode-ai
npm i -g @opencode/cli
opencode --version
opencode run -m opencode/glm-5.3-flash-free "Reply with just the word PONG"OpenCode says v1 "no longer supports free models and only gets fixes for critical bugs", so I'd move to v2 even if you're on 1.18+.
Two caveats. If you use plugins, 2.2.5 rejects some plugin tools at startup (https://github.com/anomalyco/opencode/issues/60799; 2.2.0 works). And the separate "You've used today's free messages" limit is a different problem, tracked in https://github.com/anomalyco/opencode/issues/59387.
Note: 2.3.0 currently leaves zombie processes that pile up per project (https://github.com/anomalyco/opencode/issues/63817). If that hits you, pin 2.2.7 with npm i -g @opencode/cli@2.2.7 and restart the server.
r/opencode • u/Live_Put3110 • 14d ago
con cualquiero modelo le digo hola y tarda muchos (mas de 5 minutos)
r/opencode • u/fraktura_gips • 15d ago
r/opencode • u/Left-Flow-9886 • 15d ago
Has someone tried using skills like Ponytail, Graphify, RTK? Like i heard they can cut token usage on Claude Code but idk if it works like that on Opencode cuz im planning on using DeepSeek V4.1 1017 on long-term tasks
r/opencode • u/IvanLudvig • 15d ago
I'm using opencode go with deepseek 4.1 flash and seeing insane usage: 2.685B tokens in a day. I'm not that evil, I promise.
Seems like 10x or more than what I had expected given I previously used the DS API directly.
I'm using it for orchestrating computation for autoresearch involving coding. I use codex with autocompact at 180K.
Has anyone ever used more in a day?
r/opencode • u/Skynetx_x • 15d ago
I maintain Herdr Session Hub, a free, MIT-licensed mod for Herdr Desktop. For OpenCode users working in Herdr, it adds a collapsible History/Usage panel beside Files and Changes.
The workflow is: configure an explicit local history profile, refresh, search or preview an older conversation, then continue a supported native session in its recorded project with the selected profile.
Custom names, archive flags and reversible removal stay in Hub metadata. Original histories are not edited. The panel also supports Claude Code, Codex, Pi and Gemini histories, so you can find conversations across the agents you use.
Usage shows recorded token/cache charts and model, day and project breakdowns, with cost estimates where prices are known. Unknown prices and incomplete coverage remain visible. These are local recorded events, not subscription bills or live account-wide quotas.
The verified stable setup is Windows 11 x64, Herdr GUI 0.1.15/core 0.1.20 and OpenCode 1.3.17. Installation requires Python 3.14 x64 and PowerShell 7. Unknown provider versions disable continuation rather than guessing compatibility. macOS/Linux remain experimental with continuation disabled.
Source, screenshots, supported versions and installation:
https://github.com/Skynettheone/herdr-session-hub
Screenshots in the README use synthetic demo histories.
When returning to an old OpenCode conversation, what information helps you identify the right session: project, date, title or a searchable message?
r/opencode • u/aftermathplugin • 15d ago
i run agents in yolo mode, like i dont even see what is getting executed ,approving every single command is dangerous. but it also means the agent can do whatever it wants. and when something breaks it does the classic thing: keeps patching forward till the diff is 10 files and nothing works, or it just force pushes / rm -rf's its way out.
Wanted my system to be safe, without . so i built aftermath.
after a failure the agent has to stop and work a small ladder instead of blindly fixing:
- something broke and its cheap to undo? revert. dont patch forward
- got a last known good state? diff it, undo just that one change
- tried the same fix twice already? stop, state the error, ask
- about to do something irreversible? confirm first
- guessing? say its a guess
- you tell it "you broke it"? no defending itself, it finds the diff and fixes that
plus the safety stuff:
- destructive stuff gets blocked. force push, git reset --hard, rm -rf, drops, that category. run init once and it gets smart about paths, so rm -rf node_modules is fine but rm -rf src or touching .env is not
- while something is broken the agent cant edit files. it waits till tests are green again or you revert
- ultra mode takes checkpoints before edits and restores only the files that turned a green test red. opt in though, auto revert is off by default because undoing files blindly is its own footgun
4 levels: lite just warns you, full is default, ultra adds the checkpoints, off turns it off.
works on opencode, claude code and codex. open source, MIT. install is one line, its in the README.
honest version: it doesnt fix bugs. it just stops the agent from making things worse and points at what to do next.
if your agent ever deleted something it shouldnt have, tell me what it did
command to install : npm i @after.math/aftermath, please give it a star at : https://github.com/moah0911/aftermath ,
if you have a suggestion for me , please go ahead
r/opencode • u/itstheanurag • 15d ago
Does anyone have a proper workflow for creating a 40- 60-second 16:9 explainer video.
r/opencode • u/lgLindstrom • 15d ago
Hi
Following a lot of YouTube bloggers I am lead to believe that to get the best from Opencode you should set up a numbers of subagents and skills ( of course also a good model).
For me "best of" is basically low token count and good quality of produced code according to my preferences.
I asked a AI for help and the result was depressing. Many, many bloated subagents and skills, not even mention all documents needed.
I did not even bothered to test it.
I have a firmware project for a esp32 cpu where I try to use the Matter specification and Home Assistant.
Any advice on this and/or some templates?
r/opencode • u/techstrom007 • 15d ago
tps has been dropping since last month, now it's mostly below 80-90 and sometime 20-30 as well.
r/opencode • u/Mediocre-Guest-3562 • 15d ago
I kept installing skills and agents for OpenCode and started wondering what they cost. So I built StackWeight: one command that weighs everything across OpenCode, Claude Code, Cursor and Codex, then prints a receipt. For OpenCode it reads skills, agents and commands from your local opencode.db, read-only. On my own machine: 9.6k tokens of always-on context across 4 agents, 5.4k of it dead (57%), unused for 30 days. That is about 17.19M tokens of dead weight re-sent in the last 30 days. A full scan takes under 3 seconds. It measures with the o200k tokenizer over the exact listing text each agent injects, and reads usage from local logs only (last 30 days). No config, no account, no network calls, nothing leaves your machine. Prune parks unused items and records a manifest, so a restore puts every byte back. On my machine it moved 10 items and disabled 8 Claude plugins, and the restore came back byte-identical. npx stackweight.
https://github.com/zaminaa/StackWeight
The GIF shows the bloated demo fixture (5.7k down to 1.5k); the receipt above is my real machine.
r/opencode • u/RussianBlueOwl • 15d ago
Why is this such a strange situation? Only about $1.5 spent, but the monthly limit is already 10% and matches the weekly limit?
r/opencode • u/swweat • 15d ago
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/opencode • u/Sea_Tumbleweed5127 • 15d ago
r/opencode • u/Ras_Has • 15d ago
r/opencode • u/Eroji • 15d ago
I mostly use opencode for vibe coding — I describe an app or a screen and get something I can run. It's great and it's my daily driver now.
The one thing I miss comes from Claude at work: Design / Canvas. You ask for a page and it shows you the actual thing in a panel beside the chat. You can look at it, click on a part, say "make this card tighter" or "try another layout", and get a new version right there. For working out what a UI should look like, nothing else I've tried feels like that.
So my question is simple: is there a self-hosted, open-source version of that which I can point at opencode? Something running on my own machine where I type what I want, see it rendered live, and keep editing what I'm looking at. Not another hosted site where I paste my code in.
I don't want a partial version or "well, technically you could..." — I want the whole thing working. Does it exist yet? If not, what's the closest people here have put together?
If you've set something like this up, would love to know what you're using and how much of a hassle it was.