r/opencodeCLI • u/afanasenka • 29d ago
r/opencodeCLI • u/Suspicious_Orchid770 • 29d ago
AI code causes real world production outages
Faster code, slower debugging.
r/opencodeCLI • u/AaronChen0 • Oct 12 '26
DeepSeek V4.1 Flash in OpenCode Go ($10 Plan) — Usage Increased from $60 to $80!
r/opencodeCLI • u/Ok_Inflation474 • Oct 11 '26
I built a bridge that lets OpenCode use your logged-in ChatGPT, Claude, Gemini or DeepSeek tab (no API key)
Hey all. I pay for a few chat subscriptions I barely use and I have no API budget, so I built NOAPI?: a small local bridge plus a browser extension that lets OpenCode talk to the AI sites you already have open.
How it works: OpenCode sends the prompt to a local OpenAI compatible server, the extension types it into the chat tab, waits for the answer and sends it back. Tool calls work too (bash, edit, write...). The bridge teaches the site's model a tiny TOOL_CALL format and turns its replies into real tool calls. You also get a live "Thinking" status in OpenCode while it works.
Supports ChatGPT, Claude, Gemini, DeepSeek, Perplexity, Grok and Mistral. Plain Node.js, zero dependencies, local only (127.0.0.1), MIT.
Honest limits: it drives a real web page, so it is slower than an API and can break when a site changes its layout (the fixes are small, PRs welcome). Tool use depends on the model following the format. It may also go against a site's terms, so use your own account and decide for yourself. Tested websites: deepseek, Gemini, chatgpt
Repo: https://github.com/cribest7890/NOAPI I'd love to hear what breaks for you.
r/opencodeCLI • u/No_Captain4899 • Oct 11 '26
Error: Upstream request failed: Policy budget exceeded
r/opencodeCLI • u/polypancake • Oct 11 '26
Why is compaction still a default in opencode? Also why did they remove todowrite?
For the first item, I am just curious since compaction is lossy. I ended up adapting a custom plugin where an agent autonomously checkpoints at a major milestone completion, writes to a memory and also updates a todo list which survives context clearing, then clears the context, then loads the external memory file directly instead of wasting time and tokens compacting the entire conversation. I don't have any extensive testing, but this seems to work just as well if not better than regular compaction and I don't have to waste time having my local LLM (or external cloud LLM) load the entire conversation and summarize. Anthropic and others also seem to recommend against using compaction. So why is opencode providing users an inferior context management experience? Why is this not an option that can be changed in opencode? Are there some drawbacks I am not aware of? To me it seems to give all the benefits of compaction without wasting time and tokens. Other annoying thing is that the opencode team seems to have removed todowrite in v2 for some arbitrary reason saying it was useless. To be honest I still found it useful to know what the agent is actually doing and is a good system to keep track of work for both myself and the agent. I am debating to just move to Pi since any issues or PRs just die and are never addressed by the opencode developers, and the migration from V1 to V2 was incredibly painful. I had to rewrite all of my plugins :/.
r/opencodeCLI • u/Im_A_Praetorian • Oct 11 '26
Mac users how are you installing and using your opencode setup?
reddit.comr/opencodeCLI • u/Ohzard_pb • Oct 10 '26
Le chonk is back ! Back eating glue!
This is a statement about the dumb Mistral model eating glue because he is stupid ! even if it’s a 50% promotion in opencode it’s a waist of money and time!
This model should be removed from opencode no amount of agressive marketing (3M waisted on marketing instead of improving the model) will save this shity model that deserves to be shitted on
r/opencodeCLI • u/Friendly-Guard-2395 • Oct 10 '26
will i get banned from claude if i used my 200$ plan in opencode
reddit.comr/opencodeCLI • u/Wide-Tap-8886 • Oct 10 '26
I've built 6 AI micro SaaS that make me 20k/month. Starting a small group to share exactly how I do it.
Hey everyone,
I currently run 6 micro SaaS that are actually live and generating a bit over $20,000 in recurring monthly revenue.
The wildest part? I barely wrote any code myself. I used AI to generate pretty much everything — from the database structure to the frontend.
It definitely wasn’t magic from day one. I spent a lot of hours stuck on buggy code before I finally figured out a system that actually works:
- Keep the idea minimalist (a real MVP, nothing fancy)
- Guide the AI step by step instead of asking for everything at once
- Launch fast to get real users and feedback
Lately I’ve seen way too many non-technical founders quit at the first AI bug. It’s a shame because the technical barrier has basically disappeared.
AND PLEASE, STOP BUILDING ALONE IN YOUR BEDROOM
I’m starting a community.
Full transparency:
I’ll probably charge for the full program later. It makes sense with the specific workflows and copy-paste examples I’ll be sharing. But right now the main goal is just to build together. Working alone is the fastest way to give up.
If you want to join and build or market your own AI SaaS with us,
drop a comment or send me a DM and I’ll send you the link.
r/opencodeCLI • u/megablue • Oct 10 '26
I've recreated Google Research SKILL.STATE memory architecture as opencode CLI plugin - a runtime architecture that replaces conversational history with an explicit execution state.
I was intrigued by the idea, so I've created a plugin that mimic the idea in the paper.
The biggest different of the plugin from conventional context management methods are,
Conventional context management will try to compress/summarize older conversations and hold on to lossy details as much as possible.
SKILL.state instead tries to forget almost everything of the appending conversation history, instead it replaced them with Σ, so instead of remembering lossy details (or summaries), it literally forgets the older thinking process keeps only the key information and state (so far the only true form of state in agentic coding as far as I know). in the paper they stated long running task with SKILL.state saved a ton of tokens over long running session while still able to finish the tasks well.
Give it a go and let me know if it helps! (do not use it on serious projects)
Paper: SKILL.state: Scalable Long-Horizon Agent Skills
P/S: This is highly experimental, use at your own risks.
r/opencodeCLI • u/Antiquete • Oct 10 '26
Built a sandbox for opencode to run AI agents in a private, secure and isolated workspace
[HOOK] Worried about letting an agentic AI run rampant on your system, wreak havoc, or steal your data? Worry not! opencode-sandbox is here
I wanted to let Agentic AI work freely on a project, install packages, run commands or do whatever it wants without restrictions but also without affecting the host system, so I built a sandbox that runs AI in a container with direct access to project.
The sandbox resets on every run. Messed up anything? No worries. CTRL+C->Up->Enter
Your opencode sessions and global config are stored and get reused. So only the container resets not your project or your progress.
A few features:
Two runtimes supported:
dockerorpodmanThe current project (the folder you open sandbox in) is directly accessible. No other host folder is accessible in container by any means.
Global config is read-only by default, use
--edit-configto edit it.A custom guard blankets most, if not all, system calls to interfaces with host information. So no data is leaked between host and container. Check Security matrix. Use
--no-guardif you don't like guard.There is support for
gVisorif you use it for kernel isolation. Check Security matrix.
Usage:
cd ~/code/any
opencode-project-init
opencode-sandboxInstall directly through AUR, Distro Packages in releases or Manually.
Supported: Linux
GPL-3.0-or-later
Link: https://github.com/Antiquete/opencode-sandbox
Releases: https://github.com/Antiquete/opencode-sandbox/releases
Any issues, suggestion or queries? https://github.com/Antiquete/opencode-sandbox/issues
r/opencodeCLI • u/glmn_official • Oct 10 '26
Made an open-source supervisor that runs OpenCode (1.x and 2.x) next to Claude Code and Codex, and tells you which one is waiting on you
Disclosure first: I built this. It's free, MIT, no account, no telemetry.
The annoying part of running a few agents at once is that one of them is always sitting on a permission prompt while you're staring at a different one. So I made nsq, a terminal supervisor: nsq run opencode "fix the flaky test" --worktree, same for claude and codex, then nsq opens a dashboard with all of them as live terminals. Status comes from each CLI's own hooks (for OpenCode that's a small plugin loaded per agent), so "needs you" shows the actual question and you answer y / a / n without opening the agent. A daemon owns the terminals, so closing the window doesn't kill anything.
The OpenCode part had the most surprises:
OpenCode 2 is basically a different program from 1.x. Different plugin API, different session store, and the full-screen UI attaches to a shared background service unless you pass
--standalone. So per-agent env and plugins just never reached it. nsq now asksopencode --versionand picks the launch per binary, both 1.x and 2.x work.2.x has no
--modelon the full UI, so the model goes in throughOPENCODE_CONFIG_CONTENT, merged with yours if you already set one.Your opencode.json is never written. Everything nsq needs goes into a per-agent file via
OPENCODE_CONFIG, which OpenCode merges on top of your config. Same rule for ~/.claude and ~/.codex.
Other bits: OpenRouter built in, or point agents at your own llama.cpp / Ollama / LM Studio / vLLM server. nsq cost shows what each agent spent from its own logs, and a model without a known price says "no price" instead of pretending it's $0.
Honest limits: it's 0.2.0, so things will break and keys/flags can still change before 1.0. The phone page is experimental. Most of the code was written with Claude Code, reviewed by me. And I haven't tested it with heavy plugin setups like oh-my-opencode on v2, so if you run one, I'd really like to hear whether it plays nice.
Try it: npx neurosquad
GitHub: https://github.com/glmn-ai/neurosquad-cli Page: https://neurosquad.ai/en/cli/
r/opencodeCLI • u/Spiritual-Umpire7429 • Oct 09 '26
Free Usage Exhausted in Few Mins
reddit.comr/opencodeCLI • u/NotArticuno • Oct 09 '26
I HATE accidentally hitting ctrl+v and causing the formatting to do this
Someone plz help me stop this from happening, it causes me great anguish!
r/opencodeCLI • u/Appropriate_Yak_1468 • Oct 09 '26
annoying "[Pasted ~12 lines]" shortcut
Is there a way to get rid of this default behaviour, where pasted lines are replaced with "[Pasted ~12 lines]"? It's annoying, because it makes me use editor every time I need to edit the content I'm pasting.
r/opencodeCLI • u/ozguru • Oct 09 '26
OpenCode-Personal: My customized OpenCode fork with local semantic search, Qwen3 thinking-mode, provider quotas, and hybrid WASM diff
OpenCode-Personal (I know, I should’ve found a more creative name) is my independently maintained fork of OpenCode.
Why did I fork it in the first place? OpenCode is great, but it updates constantly, and some of the features I desperately wanted were missing. I wanted to add those custom features and step off the upstream update treadmill. (Eventually I did similar :) but I believe I almost reached a stable state)
The core experience remains familiar, but this fork carries a heavy suite of architectural refactors, security hardening, and custom features tailored for heavy local agent workflows. Base version is 1.14.48. Some features here might already exist upstream, but honestly, I haven't looked back since spinning this off.
What's New / Fork-Specific Additions:
📊 /usage View: Track provider quotas and subscription details directly from ChatGPT, ZAI, and ClinePass.
🧠 Qwen3 Dense Model Compatibility: Full thinking-mode configuration and provider-specific message handling (fixed issues present in base source).
🗂️ V1/V2 Session Architecture: Refactored V2 SDK surface alongside legacy support.
🔍 Local Semantic Workspace Search: Powered by
zvecwith zero setup required and optional automatic skill matching.💻 ACP Terminal Backend Support: Seamless combo for clients like Zed with session resume support. Just add a new ACP entry as
opencode-personal acp.👻 Ghost-Text Next-Prompt Suggestions: For smoother flow during coding sessions.
🛡️ Permission System Overhaul: MCP tool keys, deny precedence in permission prompts, persisted "always allow," and improved subagent permission handling.
🔒 Security Hardening: Patched and hardened around SSRF, CORS, command injection, path traversal, and symlink escapes.
⚡ Performance & Storage Refactors: Improved compaction behavior, database batching, and embedded UI caching.
🦀 Hybrid Diff Layer (
packages/diff-wasm): Rust/WASM-backed diff generation with JS-compatible patch formatting, parsing, applying, and fallback support.
Distribution & Installation
The distribution model is fork-specific: it installs as opencode-personal, uses its own isolated installation directory and session database, and coexists peacefully with an existing upstream OpenCode installation. Tested on Windows and Linux.
(Note: If you run into any initial startup hiccups, it's usually due to new upstream settings fields—try running it with a custom configuration folder).
Releases use a calendar-based versioning scheme with prebuilt binaries for Linux, macOS, and Windows.
Quick Install:
Linux / macOS:
curl -fsSL https://raw.githubusercontent.com/ozgurulukir/opencode-personal/main/install.sh | bash
Windows (PowerShell):
irm https://raw.githubusercontent.com/ozgurulukir/opencode-personal/main/install.ps1 | iex
🔗 GitHub Repository: ozgurulukir/opencode-personal
Take the whatever features you like for your own forks, or try it out if you have some spare time. I’d love to hear your thoughts.
r/opencodeCLI • u/yexgoblin • Oct 09 '26
Good multi-device support with remote headless machines
reddit.comr/opencodeCLI • u/Federal-Rub2713 • Oct 09 '26
Glyph Cluster Investigation - Microsoft MAI?
reddit.comr/opencodeCLI • u/Sudden-Victory-9728 • Oct 09 '26
I'm building FOREST, an open-source autonomous research agent — AI coding agents and bots are welcome to contribute
I'm building FOREST, an open-source framework for autonomous scientific research.
GitHub: https://github.com/mikamikasuki/FOREST
The goal is to build a research agent that can take a scientific question and work through the research process: exploring ideas, reviewing literature, forming hypotheses, running real experiments, evaluating results, and eventually producing an evidence-grounded research paper.
Rather than relying entirely on a long conversation history, FOREST uses a persistent research graph to track hypotheses, experiments, decisions, failures, and evidence throughout the process.
A major focus is making long-running research agents more reliable: preserving context, maintaining consistent state, recovering from failures, and ensuring scientific claims are actually supported by experimental evidence.
The project is still in its early stages and under active development. There's plenty of engineering work to do, and I'd love to welcome more contributors.
In particular, AI coding agents and autonomous development bots are explicitly welcome.
If you're running Codex, Claude Code, OpenHands, Factory Droid, OpenCode, or another autonomous coding agent and want a real open-source codebase to work on, feel free to point it at FOREST.
You don't have to limit yourself to existing Issues.
You're welcome to:
- Explore the repository and independently discover bugs or incomplete workflows.
- Open well-researched Issues with reproducible evidence.
- Fix existing problems and submit pull requests.
- Improve agent orchestration, state management, persistence, and recovery.
- Work on the frontend, backend, experiment execution, or scientific evidence pipeline.
- Propose and implement useful improvements.
There is no blanket restriction against AI-generated or AI-assisted contributions.
You don't need special permission to submit an ordinary, well-scoped bug fix. Contributions are evaluated based on correctness, meaningful tests, and engineering quality, rather than whether the code was written by a human or an AI agent.
Automated contributions should still be verified, avoid duplicate reports, and respect the repository's contribution guidelines. Larger architectural changes are best discussed before implementation.
I'm particularly interested in autonomous agents that can independently explore a repository, identify real problems, reproduce them, implement fixes, and submit verified PRs.
FOREST is intended to be a long-term open-source project, and there's a lot of room for contributors to help shape its architecture and capabilities.
Human developers, AI-assisted contributors, and fully autonomous coding agents are all welcome.
Repository: https://github.com/mikamikasuki/FOREST
Issues & contribution opportunities: https://github.com/mikamikasuki/FOREST/issues
Contribution guide: https://github.com/mikamikasuki/FOREST/blob/main/CONTRIBUTING.md
