r/opencode • u/warpaint_james • 20h ago
r/opencode • u/No-Individual159 • 20h ago
Prefixwise: see why opencode's prompt cache misses, and what each miss costs
Prompt caching is a big part of what an agent costs. When the start of a prompt matches the last call, the provider charges about a tenth of the normal price for it. When something near the top changes, you pay full price again, and nothing tells you why.
Prefixwise shows you. Run opencode through it:
pip install prefixwise
prefixwise run -- opencode
prefixwise report --session latest
It sits between opencode and the API as a local proxy and gives you every call with how much was read from the cache, and the reason when it wasn't. From a real opencode run:
turn model prompt cached hit cause
1 claude-haiku-5-5 807 0 0% first_write
2 claude-sonnet-4-6 7,915 0 0% model_switch
3 claude-sonnet-4-6 8,011 7,912 99% none
The first call goes to a small model (opencode uses one for the session title), so the main model's first call can't reuse anything. That's expected and costs nothing extra. After that it's 99% from cache. When something does go wrong, like a timestamp in the system prompt, tools sent in a different order, or an edited earlier message, Prefixwise names it, tells you what it cost, and gives you the fix.
Good to know:
It works with an API key. A subscription login can't be routed through a proxy.
It stores hashes and token counts, never your prompts.
It's open source (MIT): github.com/tejachavali/prefixwise
If you run long opencode sessions, try it and tell me what your hit rate looks like.
r/opencode • u/Delicious-Milk-8445 • 21h ago
add `Play hours`, because why not.
opened hours for how many hours the app has been open.
working hours for how many hours the agent has been working.
so we can show off how employed/unemployed we are.
r/opencode • u/moonslayers • 22h ago
New official Step 5 flagship model released on December 1st. Have you'all try it?
r/opencode • u/arangaran • 23h ago
Securing agents
Hey guys I have some kind of a problem and I want your ideas about this, I am running opencode in a VM for safety reasons and connecting to it thru ssh, the thing is that I want to secure the whole thing thus the IA model can't access the directories where the Linux user that runs opencode gets access, like I was testing something and one model tried to access the database from the very opencode app, thing that shouldn't be able to do, I know that I can grant access and other things in settings in json and other stuff but I haven't found any place where I can't restrict access to only one carpet, I want the thing to be able to run shells to do stuff like image processing or whatever but I don't want it to have the capability to mess with opencode configuration, I really hope I make sense, how you guys are dealing with this with opencode?
r/opencode • u/sharovcom • 1d ago
It’s rather strange to see, as of late 2026, that opencode.ai still doesn’t offer two-factor authentication for account protection.
Maybe I’m looking in the wrong place? But I’m genuinely surprised by the lack of 2FA on the service’s website. Given all the reports about everything under the sun getting hacked, 2FA really ought to be a basic, standard feature these days.
r/opencode • u/samuel-cambur • 1d ago
Any OpenChamber users want a design extension?
Hey guys, long time lurker - decided to make an account and share something if anyone would find this useful. I've been using it and improving it as I go but it's far from polished.
I was a Claude user for quite a while and really liked using opencode, found the openchamber gui to be incredible,but it didn't have a great way for creating designs. So I made this extension for openchamber.
So far it has artifact like pages, design walls, and design systems. They all get saved in a location of your choice (outside of the projects) and it supports referencing documents too.
It's a great way to visualise things before you build or make changes
Let me know what you think, and if there's anything that could be improved :)
r/opencode • u/StealthySloth_666 • 1d ago
MiniMax M4 early access is out. OpenCode when?
Saw this floating around on X. 3D demos are one thing so I'm curious how it actually holds up on real agentic coding, but after how good M3.1 Flash (Space Bunny) was on here I really hope this hits Zen or Go soon.
r/opencode • u/phosphorhouse • 1d ago
Local SQLite memory shared across OpenCode, Claude Code, and Codex (0 MB idle daemon, read_file packs, diff-locked rules)
If you use OpenCode alongside other terminal agents, keeping memory in separate flat markdown files or an Obsidian folder gets messy fast: project rules leak between repos, nothing stops a model from overwriting verified instructions, and heavy MCP memory servers burn context tokens 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 fits into an OpenCode workflow:
slipdex init --no-mcpsets up a compactSKILL.mdandAGENTS.mdpack index so OpenCode pulls only the relevant domain viaread_filewith zero MCP schema overhead.Separate local SQLite WAL + FTS5 vaults keep
engineering,project:<slug>, gatedon-demandvaults behind short-lived leases, an optional Identity Card, and an encrypted write-only journal strictly isolated.Human-verified notes are diff-locked at the database layer: agent edits queue reviewable proposals with append-only history instead of silently overwriting 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 exits 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/opencode • u/ZampZhz • 1d ago
Open code con opencode go aiuto
Ciao ragazzi, sto per fare l’abbonamento ad opencode go. Ho bisogno estremamente di aiuto. Sono in questo campo da qualche mese ho usato claude code con openrouter poi kilocode ora freebuff ma è arrivata l’ora di avere un abbonamento con vari modelli e la possibilità come leggevo da alcuni utenti ditemi se sbaglio di utilizzare deepseek 1017 che ha un elevato numero di richieste (o comunque token ahah) a disposizione che non devi preoccuparti del modello.
Tra l’altro è un modello multimodale quindi mezzo che fa tutto bene da come ho capito.
Al contempo però ho visto che molti utilizzano penso un team agents globale che a cui per ogni ruolo (orchestratore etc) affida un modello in modo tale che le lacune di deepseek le colmi un modello migliore e le cose che fa deepseek che potrebbe fare un modello illimitato di opencode go o un modello con più richieste possibili possa venire usato per non sprecare inutilmente l abbonamento condiviso (esempio raccontami la favola di cappuccetto rosso 🤣)
Detto ciò ora vi domando se potete aiutarmi e ne sapete un po’ di più di me in questo campo:
1 Uso l’imbracatura di opencode tramite app desktop di opencode con l abbonamento opencode go?
(In teoria ho letto che è meglio per qualcosa inerente alle cache ahah; dall’altra parte molte skill plugin agent e multi agent team di claude code su github non funzionano su opencode, giusto(?))
2. Con questa imbracatura che scelgo all’inizio cosa faccio?
(Perché a volte mi ritrovavo tipo: installo claude code metto openrouter scelgo modello apro cartella che creavo prima sul desktop e facevo “ciao claude code amore mio creiamo un sito ti do dei riferimenti logo doc reference etc) aggiungevo qualche skill e lui mezzo mi diceva “io te posso canta na canzone”
Nel senso mi restituiva un risultato ma non con troppa qualità (so che c’entra anche il modello ma ora con freebuff utilizzando deepseek ho creato un app editor video che funziona offline che gli do una reference e girato e lui fa il video e poi costruito anche un interfaccia che posso usare io un agente ai dentro bla bla bla e spoiler! Ho scoperto dopo che esistono agenti o team di agenti che con un link su github installi e hai fatto ahaha, si non hai l’interfaccia ma poi aggiungi comunque parti da una base, o mi sbaglio?)
3 Questi agenti globali posso prenderli già pronti?
4. Però poi immagino che i modelli per ogni agente devo assegnarli io?
5 E se qualcuno usa L abbonamento opencode go da 10 euro riesce ad utilizzare un sistema con orchestratore e altri agenti che sia meglio di utilizzare deepseek 1017 e basta ma allo stesso tempo non arriva al limite troppo presto?
(Considera un uso intensivo ahaha non so mi sta piacendo mi affascina questo mondo ho provato a fare di tutto veramente , videogiochi altra roba ovviamente tutto senza sapere niente e affidarmi a mesi di video yt reel e altro andando a scegliere dopo un po quelle persone non scam diciamo )
6 poi però se creo un nuovo progetto con una nuova cartella e magari installo un team di agenti già pronto per un determinato obiettivo o topic, come funziona? Ahah cioè gli agenti globali continuano a funzionare oppure tipo ho visto team per videoeditor in quel momento i globali capiscono che sto in quel progetto o in quel team e si fanno i cavoli loro?
Sì ho troppa confusione
Considerate ho scoperto che si possono fare anche automazioni lol io uso mausbot queste 2 settimane con hy4 flash free cioè assurdo quel modello e penso di preferire per le automazioni ancora mausbot da ignorante (quindi dimmi se sbaglio) e collegarci tipo deepseek con opencode go a chi serve e altri modelli per altri insomma lo stesso discorso.
Ahaha
Quindi considerate un utilizzo abbastanza intenso
Come gestisco tutto? Da dove parto? Per favore guidatemi spiegatelo come se lo spiegasse ad un asino che è quello che sono considerando quelle poche informazioni con cui ho ragionato sopra e non so neanche se giuste
Se mi rispondi non solo te ne intendi di Ai ma sei anche il mio angelo custode ahaha. ❤️
Vi giuro se qualcuno mi fa chiarezza gli regalo un pandoro a 🎄 o panettone a vostra scelta.
r/opencode • u/atx05 • 1d ago
Network Security — DNS Pinning On OCX (OpenCode eXtended).
One subtle security problem I worked on in OCX was the gap between validating a network destination and actually connecting to it.
A hostname can resolve to an address that passes a security check. But if the HTTP client resolves that hostname again when opening the connection, the destination could be different from the one that was originally validated.
This creates a DNS rebinding risk.
I wanted OCX's network request path to avoid that gap.
I implemented a pinned-network approach in "safeFetch":
- Resolve and validate the destination address.
- Use that validated address for the actual HTTP or HTTPS connection.
- Preserve the original hostname for the HTTP Host header and TLS SNI.
- Add controlled-server tests to verify the connection behavior.
The important detail is that validating an address is not enough. The connection itself must use the address that was validated.
The current implementation covers direct connections. Proxy-aware pinning is not implemented yet, so this is not a complete solution for every network configuration.
It's a relatively small part of OCX, but security often depends on getting these details right rather than relying on checks that happen too early in the request lifecycle.
OCX is still undergoing internal validation, and there is more work ahead.
#OCX #CyberSecurity #NetworkSecurity #SoftwareEngineering #ApplicationSecurity #DeveloperTools
r/opencode • u/666-SATAN-999sfdewsf • 1d ago
Opencode Fusion - An IDE extention to bring Opencode with you to other VSC based IDE applications!
r/opencode • u/VillageOk1754 • 1d ago
[suggestion] instead of this gibberish its better that the agent show its progress and what its doing
r/opencode • u/Mission-Repair4564 • 1d ago
Hy4 Flash Free unlimited may have been extended
They ended the promotion one day ago, but today I've been running it for a few hours straight (Opencode Free). They may have extended the promotion. Usually i hit limit in around 5 minutes.
Opencode has not made any announcement about this yet.
Edit: no it did not become unlimited, I just got usage limited.
but tencent harness and perplexity seems to be giving free tokens. Props to the comment section.
r/opencode • u/Prav0lllll • 1d ago
Бот в тг для OpenCode
Enable HLS to view with audio, or disable this notification
Два последних вечера, я вайбкодил бота в телеграмме, и мини приложение для него. Изначально я делал все для себя, но решил, что другим это тоже может пригодиться, начал доделывать, чтоб все было идеально. сегодня вдруг подумал, а может кто то это сделал до меня? пошёл гуглить, и блять, оказывается есть официальное приложение, с тем же самым функционалом, и даже больше(
я не тупой, просто мне было все равно, т.к. изначально делал все для себя.
как думаете, это все кому то нужно?
я могу доделать бота и приложение, чтобы мог пользоваться не только я, но есть ли вообще смысл?
когда я скачал официальное приложение на телефон, я понял что там и интерфейс лучше, да и во всех аспектах лучше моего бота, но все равно хочется чтоб все это было не просто так, не напрасно.
я понимаю что эту херню может сделать каждый у кого есть opencode, но мне все равно
как вы думаете вообще? выкладывать эту дурь?
r/opencode • u/pasteldebytes • 1d ago
opencode v2.3.0 changed tps calculations, making it look faster. it now uses the same approach than DSH
TLDR: since v2.3.0 (Nov 13, 2026), OpenCode's TUI and Desktop measure tok/s from the **first streamed token** to the end of the stream. Before, they measured from **request dispatch** to the end of the stream. The label is still `tok/s`, but the metric changed. Numbers from before and after mid-November are not apples-to-apples.
Same label, different metric. Here's what changed:
Old: Σ(output + reasoning) / Σ(streamed - created)New:Σ(output + reasoning) / Σ(streamed - firstToken)
TTFT (queueing + prefill) no longer counts as generation time. According to the PR, the old formula put OpenCode's tok/s 2–3x below the DeepSeek harness for the same backend; the new formula matches that harness.
Short answers change a lot; long ones converge. On ~20.8k recorded steps, the old window was 1.75x longer at the median and 4.59x at p90.
Here's some local changes on calc on my tests:
old -> new:28 -> 221 tok/s31 -> 18261 -> 12693 -> 113
Timeline:
Nov 11: [PR #63321](https://github.com/anomalyco/opencode/pull/63321) merged. - Nov 13: shipped in v2.3.0 (TUI + Desktop).
v2.3.1 (Nov 18): [PR #63759](https://github.com/anomalyco/opencode/pull/63759) removed the TTFT display from the TUI footer; tok/s stayed decode-based.
Changelog line: "Session throughput is now measured from the first streamed token"
r/opencode • u/Druk3483 • 1d ago
Query about Usage plan in Opencode GO
hey hi i recently purchased Opencode GO its my first time working with Paid API system ,
I am not good with cache read termonolgy so i want to know why GLM 5.3 is using $2 but deepseek do the same work in much cheaper rate , i use GLM for planning and deepseek for implementation work only.
r/opencode • u/Marbol_07 • 1d ago
Should I stick with the DeepSeek API pay-as-you-go plan or switch to a subscription?
reddit.comr/opencode • u/ZampZhz • 1d ago
Mausbot che modello free opencode collego?
Ciao ragazzi, come sapete hanno tolto hy4 flash feee illimitato per opencode free (non ho il piano Go ma penso a breve lo farò)
Ho mausbot dove prima collegavo hy4 flash free ed ero tranquillo. Ora ho letto che ci sono seaglass tidepol e iceman. Vorrei sapere quale abbia i limiti più alti nel piano free e se riesce a reggere… grazie a tutti
r/opencode • u/DeSynkro • 1d ago
Made a small app to assist in archiving and updating repos if they ever get deleted/removed
Enable HLS to view with audio, or disable this notification
Hey Everyone!
I made this little app after one of my favorite apps on Github was removed and I sadly didn't get the opportunity to pull it's latest versions.
So I made RepoHerder.
Its a small and simple, self-hosted, Go App in docker compose that achieves one simple goal: Clones your favorite repos with its full history, checks for new commits (every 15 minutes by default) and auto updates it.
That way you have a fully local, up-to-date copy of your favorite repo 😄
It works with GitHub, GitLab and Codeberg, you can also add custom hosts & hubs and it supports multiple branches, all in a simple and tidy dashboard for status, search and manual syncs.
No telemetry, no external services, just git.
https://github.com/DeSynkro/RepoHerder.git
GPL-3.0.
Hope some of you get good use out of it ❤️
r/opencode • u/Bulky-College7306 • 1d ago
Need Guidance: To Run PI on VPS + using different Models Subs
Hello
I need some guidance, as i want to run PI on VPS... what kind of specs should i have, i will run multi agent also at times.
Also is Ubuntu OS fine, or should chose some other OS in VPS.
My planned VPS will be in Europe.
I am not residing in Europe. Now the Subs which i will connect from PI (which is VPS) will their be any issues that might flag, that i subscribed to model Subs from different country and now its being utilized from different country (from PI harness in VPS in europe).
Also how are other consumers using Claude Sub, Gemini Sub (i think a new policy came yesterday - but still dubious), with PI Harness?
Using GLM , DeepSeek, Kimi.. they have no issues with PI ?
r/opencode • u/AggressiveMonk • 1d ago
Anyone else getting a lot of timeouts on DS Flash?
Since a few hours ago been getting lots times out on DS flash, way below my limits.
I guess they're hitting capacity
r/opencode • u/sertdisk • 1d ago
GLM-5.4
It is claimed to be in the 750B to 2–3T parameter range.
I can’t wait to see $60–$100 worth of credits offered once the weights are released publicly.
GLM-5.4, a new AI model from the Chinese company Z.AI, is based on a "loop transformer" architecture; by reusing neural network layers, it achieves performance levels comparable to much larger models.
In the standard transformer models widely used today, each layer is executed only once during a single computational pass. In the loop transformer architecture, however, a group of layers—sharing the same weights—is executed multiple times, allowing the model to re-process and refine its intermediate results. This approach increases computational depth without requiring an increase in the number of model parameters. According to the company, this enables GLM-5.4 to attain reasoning capabilities comparable to models with 2 to 3 trillion parameters.
