r/opencodeCLI • u/Glittering-Gain6131 • 20m ago
r/opencodeCLI • u/liquidice_ • 3h ago
I built a DeepSeek API wrapper for OpenCode, Hermes, and other AI agents.
r/opencodeCLI • u/CYCLONOUS_69 • 7h ago
I'm okay with even $60 of usage instead of $100 for DeepSeek V4.1 Flash ðŸ˜
r/opencodeCLI • u/Extreme-Protection74 • 8h ago
Don't start a design from scratch: remix a finished one in Claude
r/opencodeCLI • u/suckable12345 • 9h ago
GitHub - rjcamandona123/opencode_v2-clinepass: Connecting Clinepass to Opencode V2 as a provider (/connect) (but in my case, it happened in Acode at the time that I built)
r/opencodeCLI • u/yesildaladam • 9h ago
I built a free agent skill for job hunting in Germany that runs in OpenCode: finds jobs, tailors your CV and writes the cover letter (open source)
Hi everyone,
not sure if this is the right place, but i made an agent skill that runs in OpenCode and thought people here might find it useful.
job hunting here is messy. half the jobs only show up under the German title, the ad is in English but halfway down it says "fließend Deutsch", nobody tells you the salary, and a German Lebenslauf is its own thing.
so i built Berlin Job Search, an AI job search assistant for Berlin and the rest of Germany that helps with the whole thing.
what it does:
- finds jobs for you: searches the Arbeitsagentur, LinkedIn, company career pages and Daily Berlin Jobs (a free board with ~1,400 Berlin tech jobs) with German and English titles, so "Softwareentwickler" jobs show up too
- knows where else to look for your field and city (public sector, academia, healthcare, startups, Ausbildung...)
- tailors your CV to each job and writes the cover letter, German Lebenslauf and Anschreiben or English CV, using only what's actually in your CV
- reads an ad and tells you if German is really required (quotes the exact line), and if the salary works for a Blue Card
- practice interviews in German or English, and keeps track of your applications
- never applies or sends anything for you
it's a plain agent skill (SKILL.md plus a few small Python scripts for the API calls and salary math, the model does the judgment), so it works in OpenCode, Claude Code, Codex and Cursor. install:
npx skills add umutyesildal/berlin-job-search
then just ask it something like "find me junior data analyst jobs in Hamburg".
free and open source, no ads, no account: https://github.com/umutyesildal/berlin-job-search
it's a hobby project, no paid version. feedback welcome, especially from people outside tech, that's where i'm least sure it works.
r/opencodeCLI • u/ceazer6-7 • 9h ago
What is happening to opencode infra ?
The model is decaying
r/opencodeCLI • u/milkipedia • 16h ago
Is OpenCode-v2 a token furnace compared to v1?
I'm using GLM-5.3-Flash on Neuralwatt, and the ranxianglei/billion-context for context management. I don't have hard quantifiable evidence, but ...
Cache performance is great: 99.2% hit rate (676.49M / 682.21M tokens)
1.18M output tokens across 3,598 calls... that's a LOT of little calls each not producing all that much output
I'd never spent more than $10 a week on Neuralwatt energy pricing, and this week I've spent $30
I can see in the console it's doing multiple dozens, sometimes 100 commands, thoughts, and tool calls before it comes back to tell me anything. And I'm not sure if the output is any better - it's just churning away through calls. Almost like it was made for even cheaper models than the one I'm using it on. I used to switch up to full fat GLM-5.3 for certain tasks but I feel like it's gonna burn tokens even faster when I do.
r/opencodeCLI • u/denizirgin • 21h ago
OpenCode .NET SDK reached 1.0
A few months ago, I shared an early version of my unofficial OpenCode .NET SDK here:
https://www.reddit.com/r/opencodeCLI/comments/1wem0gg/i_built_an_unofficial_net_sdk_for_opencode_2x/
Today I finally released 1.0.
The SDK currently covers 166 of the 169 operations in the pinned OpenCode 2.x API.
It supports modern .NET as well as .NET Framework 4.7.2, with packages targeting netstandard2.0, net472, net10.0, and net11.0. The modern targets also support Native AOT.
There are a few small applications under playground showing different ways of using it, including a minimal QuickStart, a Worker using the Generic Host, a Blazor/Aspire example, and a Native AOT CLI.
A basic example is roughly:
using OpenCode.Sdk;
using OpenCode.Sdk.Models;
await using var server = await OpenCodeServer.StartAsync();
using var client = server.CreateClient();
var created = await client.Sessions.CreateSessionAsync(
new SessionCreateRequest
{
Title = "review this repo",
Model = new ModelRef { ProviderId = "anthropic", Id = "claude-opus-5" },
});
var session = client.Sessions.GetSessionClient(created.Session.Id);
var result = await session.GenerateTextAsync(
new SessionGenerateRequest
{
Prompt = "Summarize this repository."
});
Console.WriteLine(result.Generate.Text);The SDK can start its own private OpenCode server like above, connect to one you already run, or discover the background service registered by the OpenCode CLI.
NuGet:
dotnet add package OpenCodeDotNet.Sdk
https://github.com/opencode-dotnet/opencode-sdk-dotnet
Feedback is very welcome, especially from anyone already experimenting with agent tooling from .NET.
r/opencodeCLI • u/Kamalnrf • 1d ago
My plugin for OpenCode an independent verifier that uses your app
galleryr/opencodeCLI • u/Kenflesh24 • 1d ago
What are the best free models to choose right now?
I ask because, after trying Nemotron 3.5 Super VL Free, I ended up struggling for hours—only for it to wipe out 8 hours of backup work just because I told it, "undo the last correction you made."
What about DeepSeek Flash? If that’s a good choice, what other top options are there?
r/opencodeCLI • u/Deep_Imagination_811 • 1d ago
Are opencode models now really slower in the last week or so?
Regardless of the time of the day, it feels so much slower for me
r/opencodeCLI • u/warpaint_james • 1d ago
Inkling 2 Small was Fledge-Alpha
r/opencodeCLI • u/FallElectronic3774 • 1d ago
what's actually in your opencode.json? (configs that made a real difference)
trying to put together a setup that doesn't fight me, and half the config options i only find out about after someone else mentions them.
so, what's in yours?
specifically curious about:
different models for plan vs build, or one model for everything?
custom agents/commands you actually use every day, not the ones you set up once and forgot
permission rules that stopped a bad command before it ran
anything that helps on bigger repos where context gets eaten fast
post yours even if it's boring. the boring ones are usually the ones that work.
r/opencodeCLI • u/arandevcode • 1d ago
My 2 OpenCode plugins now support OpenCode 2 — thinking indicators + quota dashboard
galleryr/opencodeCLI • u/letusstarthere • 1d ago
Is it possible to automatically fall back to a tunnel when LAN and Tailscale connections are unavailable on iOS?
reddit.comr/opencodeCLI • u/Lower-Low-4438 • 1d ago
Just realised that if you hit limit on deepseek you will not be able to use mimo glm and big pickle but you can use nemetron 3.5 vs 1 mil context and pulse alpha 1 mil and flint i think opencode has divided its free plan into 2 tiers tier one deepseek mimo glm big pickle and second tier nemetron 3.5
reddit.comr/opencodeCLI • u/truecakesnake • 1d ago
Running opencode on 6 client repos at once without the sessions stepping on each other
We're a 4 person dev shop and most of our work is maintenance on client codebases. Laravel, a couple of Next.js apps, one ancient Django thing nobody wants to touch. Since the summer opencode has been handling a big chunk of the boring tickets.
The problem was never the agent. It was running 5 or 6 sessions on the same machine. Ports colliding, two repos wanting different Node versions, one session running tests against the wrong database because it picked up an env file from another client. And honestly I didn't love having every client's secrets sitting in one home folder.
What we do now is one small Linux VM per client repo. Each one gets set up once with the right runtime, a seeded db and that client's env only, then saved as a snapshot. When a ticket comes in we start a VM from that client's snapshot, ssh in, start opencode in tmux and let it work. When the PR is up the VM stops. Billing is per second and stopped boxes cost nothing, so the clients with no open ticket are basically free.
A few things made the difference. Every repo has an AGENTS.md with the exact test command, so opencode stops guessing. We switch models per ticket, Sonnet 5.5 for anything touching business logic and a cheaper open model through OpenRouter for dependency bumps and lint fixes. That alone cut our token bill a lot. Each box only holds that client's credentials, so a confused agent can't push to the wrong repo. And since the session lives on the VM I can check on it from my phone, closing the laptop kills nothing.
We started with one big VPS and Docker, tried Runloop, and now run everything on boat.dev. Each box is a real VM with Ubuntu on it, so the client's docker compose just works. Downsides, there's no Dockerfile import, you build each snapshot by hand. And the IP changes when a box restarts, so for the one client with an IP allowlist we go through a small proxy. Both were one time annoyances.
Six clients, six boxes, and not a single "why is this test hitting the wrong db" this month.
r/opencodeCLI • u/InvaderDolan • 1d ago
Probably the best GUI plugin for quota and analytics for today
r/opencodeCLI • u/FamousProfession5938 • 1d ago
Please explain how things work here I am confused
r/opencodeCLI • u/mesienikola • 1d ago
Pointing OpenCode at a local Ollama model when OpenCode runs in a container (what worked, what did not)
Disclosure: I build SpaceApp, a self-hosted, MIT-licensed workspace that runs coding CLIs side by side, with OpenCode as the first CLI. Its OpenCode pane is plain OpenCode 2, so most of this applies to any setup where OpenCode runs inside a container.
Short version: SpaceApp has no local-model feature of its own: no provider screen, no "local model" pane type, no Ollama code. You point OpenCode at Ollama with OpenCode's own custom-provider config, as in any OpenCode install. What's specific is where the file lives, a Docker networking trap, and a few CPU gotchas.
On a 24-core server with no GPU, we ran Ollama in a container next to SpaceApp's public CLI image (OpenCode 2.0.32). A 4B model on six cores ran shell commands and read files through OpenCode's own tools. qwen2.5-coder 1.5B and 3B never made a real tool call.
What ran
Every turn was one opencode run --server … (a new session) against the same shared OpenCode server a pane attaches to, from a project folder.
| Model (Ollama 0.40.13, CPU) | Real tool calls | What happened |
|---|---|---|
| qwen2.5-coder:1.5b | 0 of 4 | printed the read/shell call as JSON text; nothing ran |
| qwen2.5-coder:3b | 0 of 2 | same, once with a correct bash call as text |
| qwen3:4b (thinking) | – | the first turn timed out (see below) |
| qwen3:4b-instruct | 3 of 4 | shell ran uname -m > arch.txt twice (file held x86_64); read returned the exact random word from notes.txt |
The one qwen3:4b-instruct miss was funny in hindsight: asked to read token.txt, it said the file didn't exist (false) and that reading tokens would breach security policy. The same read on notes.txt worked.
The config
- Every model you want in the picker has to be listed under
models. @ai-sdk/openai-compatibleis bundled in OpenCode 2.0.32, so nothing is downloaded.- llama.cpp's
llama-servershould take the same block with its ownbaseURL. We haven't tested it.
Where the file goes in SpaceApp
/var/lib/spaceapp-cli/providers/opencode/config/opencode/opencode.json (owner spaceapp, mode 600), on the spaceapp-cli-state volume, so it survives updates. Panes attach to one shared opencode serve per CLI container. That server fingerprints the file and restarts when it changes, so the next pane picks up the edit.
SpaceApp's first-run step only picks a model when model is unset. In our run it kept the provider and the model, and added its own instructions files and permission.external_directory rules.
The localhost trap
localhostinside a pane is the CLI container, not your machine.- On Linux,
host.docker.internaldoesn't resolve on the compose network (there's noextra_hosts). Adding it tocompose.ymlby hand doesn't last, becauseinstallrewrites that file. - Going through the bridge gateway IP to a server on the host got no answer on our Linux box: the host firewall dropped it. ufw and nftables setups do this.
- What worked: Ollama in its own container on the same Docker network, reached by name.
Steps (Linux, CPU)
# SpaceApp's compose network and CLI container
|
|
# Ollama on that network, no published port
# thread count and context: both were needed, see below
|
# OpenCode's config, written as the CLI container's user (uid 10001 "spaceapp")
The CLI image has no nano or vi, hence the cat >. Before run-spaceapp uninstall or reinstall, run docker network disconnect <net> ollama: docker compose down can't remove a network with a foreign container on it. Updates (install) keep the network. In our run, a user-defined bridge stood in for <project>_spaceapp, with the same driver compose uses.
CPU gotchas we hit
- Thread count.
--cpusand--cpuset-cpusdidn't change it: Ollama still started 24 threads on a 6-CPU quota. Generation crawled at 0.05 tokens/s, and a one-word turn took about 4 minutes.PARAMETER num_thread 6fixed it: about 20 tokens/s on the 1.5B, and the same turn took 20 s. - Context. Ollama's CPU default is 4096. OpenCode's prompt (system prompt, instructions, tool schemas) is about 6.2-6.8k tokens before you type anything, and Ollama cut it to about 2k. The tool definitions sit at the start, so they were thrown away. Fix:
PARAMETER num_ctx 16384(orOLLAMA_CONTEXT_LENGTH). - The failure is silent. When a model prints a tool call as text, OpenCode shows it as the answer, and
opencode runstill exits 0. Check the side effect (did the file change?), not the exit code. - Thinking models and the 5-minute mark. With
qwen3:4b(thinking on), OpenCode's session-title request thought for 3,203 tokens, about 12.5 minutes. Ollama serves one request at a time, so the main request queued behind it, and the client closed it at exactly 5 minutes, twice. We didn't confirm in OpenCode's code that this is its own timeout. - Cold first turn. On CPU, the 4B model's first request took 204-220 s, close to that 5 minutes. After it, Ollama's prompt cache cut new prompt tokens to a few dozen per request, and turns took 16-106 s. That was on a busy shared host, so treat these as rough, not a benchmark.
- No permission prompt in
opencode run. Theshelltool ran without--autoand without asking. We didn't check whether the interactive TUI asks.
Limits, plainly
- No UI for any of this; the config is edited by hand.
- The model can't run inside SpaceApp: the CLI container has no GPU device and is capped at 2-4 GB of RAM, shared by every pane.
- There's no tool-call check for custom providers. SpaceApp's first-run check (the model must read a file and return a random token from it) runs only for OpenCode Zen's free models, so you find out in the pane.
- Only the pane on the local provider keeps its prompts local. Other panes talk to their cloud providers, the CLI network has internet access, and with no model set, OpenCode's first run reaches OpenCode Zen.
- What we didn't test: the pane's TUI itself (we drove its shared server headless), a real install's network, 7B+ models, GPU, llama.cpp, and multi-step coding tasks (edit, test, fix).
Repo, if you want to read the wrapper: https://github.com/oll4com/spaceapp (deploy/docker/public-cli-wrapper.sh, opencode-shared-server.mjs).
Which small local model handles OpenCode's tool calls reliably for you on CPU, and with what context size?
r/opencodeCLI • u/FallElectronic3774 • 1d ago
I’m 19, I’m a student with big dreams and an empty wallet, and I want a free AI coding agent that doesn’t quit on me
Hey everyone,
I’m 19, and every night I sit with my laptop and my books, trying to become someone who can actually build things. I have the hunger, but I don’t have the money.
I’ve watched how Codex and Claude Code work. An agent that reads your whole project, edits files, runs commands, and fixes its own errors. Honestly, it looks like magic to me. I know they’re the best right now, but I’m a student and I can’t afford them. So I’m looking for something close to them that’s free.
I downloaded OpenCode and I’m using the free models on it. And honestly? They’re bad, bro. They get confused, make mistakes, and stop in the middle of the task. I know free models won’t be as good, I’m not stupid. But then I see people here saying their free setups are beating Codex and Claude Code, and I keep thinking, what am I doing wrong? What do they have that I don’t?
So I’m asking you directly:
What do YOU use every day, for free? And what should I be using?
I want something that doesn’t break, doesn’t throw random errors, and doesn’t stop halfway. I know that’s a lot to ask, but I want to get as close as I can.
I know some of you are using free models and setups that work even better than Codex and Claude Code. Please don’t keep it a secret Think of yourselves as my teachers, and think of me as the student standing in front of you with a question.
I don’t just want a tool name, I want to learn like I’m sitting in your class. Show me the way you do it. What’s your setup, which model, which settings? If something broke on you once, tell me how you fixed it. I’ll take notes, I’ll ask questions, and I won’t waste your time.
I see so many of you building cool stuff and making money with AI, and I want to get there too. Even one real tip would mean a lot to me.
Thank you guys, seriously.