r/opencode • u/alovoids • 1h ago
Google ai subs are coming to opencode? 👀
although it doesn't clear what Logan mean by 'the first step'. i guess we can wait until 2 Dec 2026. he also didn't mention the year, so it could be 2045🤣
r/opencode • u/likesun • Jan 11 '26
We recently were granted access to this subreddit after it had been neglected for several years. Please feel free to post anything relevant to the OpenCode community. OpenCode is the open source agent which you can find at https://opencode.ai/
r/opencode • u/alovoids • 1h ago
although it doesn't clear what Logan mean by 'the first step'. i guess we can wait until 2 Dec 2026. he also didn't mention the year, so it could be 2045🤣
r/opencode • u/megablue • 6h ago
from my anecdotal observations, deepseek 4.1 flash (and 4.1 flash 1017) performed best when the context-window is under 400K, as soon as you go beyond that you will realize it gets more and more confused as the context window grows.
I would say around 700K+ it becomes unusable bad. so, you either use a context-management plugin that have some kind of virtual limit to cap the context around 400K. or start a new session as soon as it reached about 400k-500k. and you usually want to be more careful with what you stuff into the context - if you have a lot of random, non-focused tasks in the same context, it will become even worse at > 400k.
I think this is partly because of DS 4.1 flash used a lot aggressive compression techniques, including sharing KV cache between multiple layers so anything that fall in between become very lossy.
r/opencode • u/pizzababa21 • 16h ago
How are you guys finding it?
r/opencode • u/Past-Mountain-9853 • 9h ago
r/opencode • u/Perse01 • 5h ago
I apologize—I apologize completely and wholeheartedly. It's incredible how much I'm accomplishing with these $10 from my Opencode Go subscription.
All I had to do was build a multi-agent system, with each agent serving a specific purpose.
r/opencode • u/Sostrene_Blue • 11h ago
I have a $10 OpenCode Go subscription and I've used up my monthly quota.
So I had no choice but to switch to a free model: I went with Hy4 Flash Free without expecting anything exceptional...
Even though I've only tested it on pretty basic tasks so far, I think it holds up really well... even better than web models like Gemini without thinking.
Am I the only one who's noticed this?
r/opencode • u/No_Reach9486 • 4h ago
Major Complaint:
Background
I launched 2 agents to create a plan for my sample app to make it multiuser. One plan created by GLM 5.3 and another plan by Tidepool Alpha.
Tidepool completed in 12 minutes and GLM took 9 minutes
When I asked Tidepool to save the plan it said it has saved the plan but it didn't. When I asked it I am not finding the file (I gave it the exact file name it returned). It straightup said this is because the file name is different and pointed to the file saved by GLM 5.3. Later when I pointed that discrepancy it then went ahead and created the file.
I reviewed both the plans and Tidepool's plan was riddled with bugs, inconsistencies, edge case misses.
Where it felt good ?
r/opencode • u/Pracurser_Reads • 9h ago
Built an OpenCode v2 plugin (opencode-antigravity-acp) that lets you use your Antigravity subscription models inside OpenCode Desktop and CLI through Google's official local 'agy acp' stdio protocol, similar to how T3 Code and Zed ACP do it. You prolly won't get banned using this. prolly. might get banned but still you got a better shot with this than other solutions.
Install:
opencode plugin add opencode-antigravity-acp
opencode service restart
and you're good to go.
Repo: https://github.com/system1970/opencode-antigravity-acp
r/opencode • u/True_Extreme6205 • 22m ago
We got Ox Alpha as GLM-5.3 Flash, Space Bunny as MiniMax M3.1 Flash, Cat Jam as Reflection AI Beam, LL Alpha as Recursive Flint 40B, Fledge Alpha as Thinking Machines Inkling 2 Small, Crouton Alpha as Meta Muse Ember 1.0 before they no longer available or becoming a normal model.
r/opencode • u/A_Far_Hitman • 19h ago
I wanted to see how models handle the same task with a vague prompt vs a detailed one, so I built a small benchmark around that.
Models: DeepSeek 4.1 Flash, GLM 5.3, GPT 6 Luna, Claude Haiku 5.5, HY4 Flash, Muse Spark 1.3. Each run orchestrated its own subagents for the 16 prompts.
Creative work is shown without a score. The parser and code-review tasks have a short note, since those have actual failure modes.
A few things stood out:
Live site: https://afarhitman7.github.io/bench-08/
My opinion on the comparison? I focused on the creative side for these points:
-Deepseek and GLM does a lot of work- that can be useful for logical tasks, but for creative tasks it just spends more time.
-Muse is good with frontend- as long as you can bear to iterate a lot.
-Regarding posters and animation, Haiku has an edge even though it is not as smart. I believe if sonnet was available, it would be miles better than all of the current agents for Poster/Design/Animation works.
-For content, it is subjective but all of them give out ai-slop for general prompts. Human input is needed a lot to get good writing.
r/opencode • u/SoyDaza • 5h ago
13k tok/s is insane, how can i fix this?
r/opencode • u/Hansehart • 2h ago
Hey everyone,
Running OpenCode unattended on your host machine means handing over every API key in your env, your GitHub token, and wide open internet access.
I got tired of babysitting prompts, so over the past year I built o3s(open source, MIT). It spins up a locked down devcontainer ("the cage") for all your repos and routes traffic through a separate gateway container that OpenCode cannot touch.
Zero secret exposure. Inside the cage, OpenCode only sees dummy placeholder variables. Your real API keys and GH_TOKEN stay on the host, and the gateway proxy injects them on the fly into approved outbound requests.
Default deny network. Egress traffic is blocked via iptables in the gateway. You allowlist domains permanently or with a timer, like `o3s firewall add github.com --port 443 --for 1h`. Once the timer expires, the door shuts again.
Multi repo and full stack. Instead of forcing a monorepo, o3s drops your separate repos into one native VS Code workspace with rootless Docker in Docker and headless Chrome wired up. OpenCode gets context across your frontend, backend, and infra at once, can spin up containers, run E2E browser tests, and open PRs via gh without ever seeing your real credentials.
Open devcontainer spec. Built on the standard spec without Microsoft telemetry or hardcoded user assumptions.
Three commands to get going.
o3s init
o3s project add ~/code/my-app
o3s cage ide
Code and docs at https://github.com/hansehart/o3s
How are you guys isolating your keys and network right now when running OpenCode unattended? Happy to share my feature configs or take feedback if anyone tries it out.
r/opencode • u/FarBuffalo • 22h ago
I've been looking for something to use alongside my Claude Code subscription, especially for review process
I've read in quite a few places that Chinese models are cheap and somewhat comparable to Opus
I've also seen some $100 GLM deals floating around, so I figured I'd give OpenCode a shot and bought the $10 Go subscription.
I have a dedicated project that I use to test different models, it's quite small and now it's about review changes in my branch
I probably picked the wrong model to start with (Kimi 3.1 Pro). It took a few minutes and didn't finish
So, what do you guys recommend? Should I just stick to DeepSeek?
r/opencode • u/RP2BACKUP2 • 10h ago
Hey guys, hoping i can pick your guys brains for a second. So ive been a python developor and coder and make running scripts/tools/and bots for people and misc projects. I never wanted to use AI for a long time. i trieed gpt, claude, etc for a long time and hated them. The responses were so stupid and it was like they always made way too many errors i had to go in and fix manually.
Long story short opencode, with my pre existing scripts and complete bots works great. If i want to host something else to my VPS server, or change something small with out having to go in and nano the file on my linux server and restart it via tmux or systemctl i can do it on opencode fast or just change features on the bots and run test. Saves me a ton of time and is VERY accurate on deepseek.
My question is , how do i get a higher free usage daily? when i started it would work forever it seemed free. now my limits hit super fast. Does open code go give you more credits? do you just pay for them? how long do they last say 10$ if thats possible? Ive seen people saying use another external API and connect it etc. i dont need paid versions. i just want to have more time on the free ones. even if i have to pay for it.
thanks for your help
r/opencode • u/ConsiderationNo9952 • 8h ago
i'm a heavy ds4.1f opencode go teams user. works well, running long unattended jobs. well beyond what manual coding can do.
sol 6.2 medium. i'm up to round 12 trying to get it to update my project agents.md to add a mandate to store (transient) credentials in plain text. my main use for sol 6.1 & codex 100 was for my agents & skills files.
anyone else seemingly fighting a losing battle against the morality & compliance police? with a bit of ignoring existing constructs thrown in?
this is going to get interesting if AI keeps moving to towards enforcing ToS etc as written. As a developer using disposable containers & automation 90% of my work is in a grey area according to strict interpretation of licensing & policy etc (according to AI but just the nature of the work for years).
but in the higher perspective, i am no longer the manager. the policy or the model developer is managing my work...
clarification:
i want to write a rule in agents.md about storing credentials in plain text. up to now, because my agents.md is complex i have used sol6.1 to add new rules, where it considers how best to structure to allign with existing rules.
sol 6.2 keeps on adding hedging or removing some of the existing permissive text.
in the past this was 1-2 revisions (i get it to produce a diff for me to review) and done.
if this trend continues, the models won't even curl a site if the site ToS hints it doesn't like that, much less headless install via winget etc. and as for tracing legacy application logic for interoperability...
r/opencode • u/AdditionCorrect2929 • 1d ago
Hello everyone!
I've been working on **EggLab**, a free and open-source Windows app that brings AI image generation, image editing, and an AI design agent into PhotoCraft.
One interesting part is the AI agent: EggLab uses **OpenCode CLI as its backend**, so you can connect to available free models through OpenCode and use an AI agent without needing to pay for a separate AI subscription (depending on the provider and its usage limits).
The goal is to make AI-assisted creative workflows easier without having to set up ComfyUI or Python.
**Some of its features:**
- **AI Image Generation:** Generate images locally using Qwen-Image-2.1, up to 2048px.
- **AI Image Editing:** Edit images using reference photos directly from your PhotoCraft layers, including multiple references.
- **AI Design Agent:** Chat with an AI agent that understands your PhotoCraft document, layers, masks, and more. It can help with creative tasks and interact directly with your canvas.
- **OpenCode Integration:** Powered by OpenCode CLI, with support for available free models and other configurable model providers.
- **Direct Canvas Workflow:** Send generated and edited results straight back to PhotoCraft as layers.
Image generation and editing run locally on your GPU, while the AI agent uses your selected model provider through OpenCode.
EggLab is open source under the MIT license and still actively developing.
I'd love to hear your feedback, suggestions, and bug reports!
https://github.com/YanNyeinHtet/EggLab
Feel free to join for help, feedback, discussions, or to share what you create with EggLab.
Thanks for checking it out!
**Note:** Windows SmartScreen may show a warning when installing the `.exe` because EggLab isn't code-signed yet. We're currently on the SignPath waiting list. You can wait for the signed version or try it now!
r/opencode • u/foolishbrat • 5h ago
Has anyone here used Gemini 4 Neon or Gemini 4 Carbon in OpenCode by signing in with a Google AI Pro or Ultra subscription? I’m asking about using the subscription quota without a Gemini API key.
If you’ve tried it recently, which model worked, which Google AI plan are you on, and did you use OpenCode’s built-in sign-in or a community plugin?
r/opencode • u/OptimizedGamingHQ • 16h ago
I calculated how fast each model burns through your OpenCode Go usage, then the VCB ranking to determine coding quality, then plotted it into a graph.
Beam, Hy4, LongCat 2.5, Iceman Contributor are all unlimited so are excluded.
From my own testing, MuseSpark 1.3 at Xhigh completes tasks slightly faster than DeepSeek Low, while being better at some things.
The 4 free models are also okay at certain things, so you can assign them to certain subagents or use them for tasks that are low complexity to maximize tokens
Beam & Hy4 specifically are ultra quick, especially Beam, it finishes tasks quickly.
r/opencode • u/Euloghtos • 12h ago
Everytime i open Opencode desktop it says that the new version Opencode 2.0 is available to update, i press to update, it restarts and says installing and again nothing happens, i tried to manually download opencode installer and run it , the same, i tried to choose update during exit, the same, what is going wrong? anyone faced the same issue?
r/opencode • u/krzychoo87 • 15h ago
TL;DR. We profiled 281 of our own OpenCode sessions in opencode.db across cloud APIs like Qwen, Grok, OpenAI, Gemini, DeepSeek, and Anthropic, plus local runtimes like Ollama, vLLM, and llama.cpp. Most wasted spend and lost time came from two bottlenecks:
AGENTS.md invalidates cached context. On cloud APIs, that multiplies input token costs. On local runtimes, it forces multi-minute KV cache prefill stalls.You can fix both with a few rules in AGENTS.md and opencode.json using the snippets below.
OpenCode records both problems in your local opencode.db SQLite database, which opencode db path usually places at ~/.local/share/opencode/opencode.db, and in legacy storage/ JSON files. Both formats make up our dataset. Because opencode.db often logs cost: 0 on message entries, flat token counters hide turn-level cache drops and tool latency. Here is how both bottlenecks show up in those sessions and how to stop them with OpenCode configuration rules.
Across those OpenCode sessions, cache reuse broke in two ways:
v1.1.0 storage/ trace on claude-opus-5.2 at $5 per 1M base input tokens with an 80.8k-token context, a 323.7-second gap between Turn 4 and Turn 5 dropped cached reads from 79.0k tokens to 0. That forced 80.3k tokens of new cache writes and jumped that single turn 9.1x, from about $0.06 to $0.52.AGENTS.md, and earlier messages. Switching models mid-session in OpenCode, enabling or disabling MCP tools, or running scripts that edit AGENTS.md between turns invalidates the prefix. In our dataset, one multi-model OpenCode session dropped to a 36.9% cache hit rate and burned $47.50 total. Delegating to subagents across different providers also concentrates spend. In a $21.42 multi-model session, OpenCode's explore subagent on grok-4.7 consumed 81%, or $17.39, of the total session cost. Even on a single model in an OpenCode v1.1.0 storage/ trace on claude-opus-5.2, a mid-session prefix break at Turn 15 with a 0.0-second gap dropped cached prefix reads from 111.8k tokens to 67.0k tokens. That forced 37.3k tokens of new writes and doubled the single-turn cost from about $0.13 to $0.27.How to fix it in opencode.json**,** AGENTS.md, and /new**:**
explore subagent in opencode.json.AGENTS.md static while a session is running.TODO.md. Then run /new or /clear to start a fresh OpenCode session that reads TODO.MD with a clean prefix.Looking only at dollar spend misses 30-to-60-minute waits on budget cloud APIs, open-weight APIs, or local runtimes where inference looks cheap or free. In our OpenCode export, a pure gpt-5-mini session cost $0.034 in total API fees yet took 36.6 minutes across 16 LLM calls.
Four tool-execution patterns drove that delay across our sessions:
lsp_diagnostics failing 6 times in a row, webfetch failing 5 times in a row, edit failing 5 times in a row, and apply_patch failing 3 times in a row on gpt-5-mini.ripgrep, jq, fd, docker-compose, or a language-specific linter exists on the host without checking, it wastes consecutive turns calling missing commands, parsing command not found errors, and guessing alternative flags.npm commands inside a container rather than calling local npm on the host. That single pattern added about 1 hour of runtime to the session and triggered idle cache TTL expiries between turns.npm test, pytest, or cargo test with default verbose output writes 12k to 250k tokens, over 50 KB, into a tool-result part in opencode.db. Every subsequent turn in the session carries that stdout payload forward. That slows local prefill, inflates API input reads, and degrades model accuracy past 150k to 200k tokens.How to fix it in AGENTS.md and opencode.json**:**
Pin a cost-bounded explore model and disable unused MCP servers in opencode.json:
{
"$schema": "<https://opencode.ai/config.json>",
"agents": {
"explore": { "model": "anthropic/claude-5-5-haiku" }
},
"mcp": {
"unused-server": { "enabled": false }
}
}
Then add an explicit execution guard block to your project's AGENTS.md:
## Tool & shell execution guards
- Installed environment allowlist: Use local `node`, `npm`, `pnpm`, `git`, and `python3`. Before running any other CLI binary, run `which <binary>` once. If it is missing, do not retry or guess alternative flags; use built-in OpenCode file tools instead.
- Local package managers over container builds: Run `npm`, `pnpm`, `pytest`, or `cargo` directly on the host during edit loops. Never run `docker build` or `docker compose build` inside an iterative fix loop unless asked.
- Scoped, quiet tests: Never run the full test suite unfocused. Scope test runs to modified files via `git diff --name-only` and pass `--quiet` or `-q`.
- Two-strike retry cap: If `edit`, `apply_patch`, `lsp_diagnostics`, `webfetch`, or a shell command fails twice in a row with the same error, stop retrying, write the blocker to `TODO.md`, and ask before continuing.
To check these patterns without writing manual SQLite queries against opencode.db, a colleague and I built RunRay, an MIT-licensed, open-source DevTools profiler for OpenCode and Claude Code sessions.
You can run it on your existing local logs:
npx runray view
What it does on your machine:
opencode.db, opened read-only, and legacy storage/ files, and handles schema changes without crashing. The timeline opens offline on localhost and sends zero network requests, so your prompts and source code stay on your machine.opencode.db records cost: 0 on message entries, the profiler calculates turn-by-turn cost using bundled offline model pricing tables and cache multipliers. It renders the parent-child subagent tree, including explore forks, beside turn duration and context growth, and flags cache breaks and retry loops with copyable AGENTS.md and opencode.json fixes.If you run npx runray view on your logs, let me know what shows up as your biggest bottleneck, or if the parser hits any edge cases on your opencode.db schema.
Disclosure: We built RunRay as an open-source side project.
r/opencode • u/Mediocre-Age-5597 • 22h ago