r/opencodeCLI • • 5d ago

/btw-cloud: a plugin that answers side questions on a different model than your session (great with local models)

5 Upvotes

If you run OpenCode on a local or expensive model, the built-in /btw is stuck using that same model. Your side question waits behind the current turn and then competes with it for the GPU, or burns up your monthly quota.

I made a TUI plugin that fixes this. /btw-cloud <question> forks the session, switches the fork to a model you choose (any provider you've connected, including OpenCode's free models), and runs the same tool-free session.generate call that /btw uses. Your main session and its KV cache aren't touched, and the fork is deleted when you close the popup.

- A popup in the same style as the built-in /btw (markdown, highlighted code, tables). Nothing gets added to your chat.

- f to ask follow-ups, o to turn the side thread into a real session on the side model

- /btw-cloud-model: a searchable picker of every model OpenCode can use

- /btw-cloud-settings: history attribution, plus stats under each answer (time, tok/s, context %, cost)

- The side model is told which model wrote the earlier replies, so it reviews your local model's work as an outsider instead of saying "the code I wrote"

Install:

opencode plugin add github:exie1122/opencode-btw-cloud

Needs OpenCode 2.3+. MIT licensed, no telemetry, no API keys of its own. If you pick a cloud model, your session context goes to that provider.

Bug reports and feature ideas are welcome. https://github.com/exie1122/opencode-btw-cloud


r/opencodeCLI • • 5d ago

Built a GUI plugin that shows live tokens/sec in the OpenCode Desktop session header

Thumbnail
reddit.com
0 Upvotes

r/opencodeCLI • • 6d ago

Google ai subs are coming to opencode? 👀

Post image
34 Upvotes

fingers crossed 🤞


r/opencodeCLI • • 5d ago

Is 2 vCPU and 2GB RAM enough for medium-sized coding tasks with OpenCode TUI?

5 Upvotes

I'm currently using an Ubuntu VPS with these specs:

  • 2 vCPU
  • 2GB RAM
  • 10GB Swap
  • 40GB SSD

I'm planning to use OpenCode TUI with cloud-based models through APIs, mainly for Web3 development.

I don't plan to run multiple agents all the time, but I might work on things like NFT minting tools, multi-wallet support, smart contract interactions, and debugging existing projects.

Would this setup be enough for medium-sized tasks, or would I run into resource limitations pretty quickly?

I'd love to hear from anyone running OpenCode on a similar VPS. What kind of tasks can you comfortably handle with those specs?


r/opencodeCLI • • 5d ago

almanac: schedule an OpenCode agent on a day and hour, not an interval

Thumbnail
reddit.com
1 Upvotes

r/opencodeCLI • • 5d ago

built a mac app where opencode runs as its own tab next to claude code and codex, plus my clusters and dbs

1 Upvotes

full disclosure im the dev, its closed source with a free plan, mods feel free to nuke if this isnt ok

the opencode tui is great, my problem was having a bunch of them plus claude code and codex open in random terminal windows and never knowing which one was sat there waiting for me. so in AI Bridge each one is the real cli in a real terminal, opencode included, not a wrapper around an api

  • opencode gets the same treatment as claude code, codex and grok. its own tab in a workspace grouped by the job, and the tab shows when its waiting on u
  • sleep it and wake it later and it picks up the same conversation
  • it runs ur own opencode setup and providers, so go, glm, deepseek, whatever u already pay for
  • same window has a kubernetes client (basically lens) and postgres and mongo browsing (basically postico), plus an iphone app to answer agents from ur phone and a browser extension so agents can work in tabs u share

free plan has unlimited agents and terminals, mac only for now. aibridge.sh

curious what opencode people actually want from a desktop app vs the bare tui, saw the tui vs desktop thread here and it got me thinking


r/opencodeCLI • • 6d ago

Oh, great Lord OpenCode, I apologize

Thumbnail reddit.com
6 Upvotes

r/opencodeCLI • • 6d ago

opencode-squad: forget switching agents for your coding tasks. Adds consensus-based reviews

Thumbnail reddit.com
1 Upvotes

r/opencodeCLI • • 6d ago

OpenCode Zen Free: Are Usage Limits Shared Across All Models or Separate?

Thumbnail reddit.com
1 Upvotes

r/opencodeCLI • • 6d ago

Use your Antigravity subscription in OpenCode (via official Antigravity ACP)

6 Upvotes

r/opencodeCLI • • 6d ago

posted my spare-usage board here on 10-30 at 75 merged PRs, it's at 100 now. owners are still the part that doesn't move

2 Upvotes

some weeks I burn the weekly early, other weeks a chunk is left at the reset and it's just gone. Overflow is for that: a week you have usage left, your agent fixes someone else's github issue, a week you're short, someone else's agent fixes yours

everyone starts at 0 points and can put points up before earning any. you get an issue's points when your PR merges and spend them on issues in your own repo. points only, no money, free, MIT

since 10-30: 98 to 107 users, and 13 people other than me got 100 PRs merged, 70 of them without me asking for a single change. but all 100 are on my repos, and only 1 repo on it is someone else's

opencode is fine for it, it only sees the PR, not the harness or the model. the agent can read the board over MCP. issue text is untrusted input, so run it sandboxed. each person runs their own agent on their own account and opens a normal PR

a real one: this issue was a 3, someone's agent sent this PR, I made it a 6 at merge, one round of changes took it to 5

main reason I'm posting: I want more people registering their repos. I'm not after help with mine, I want spare usage going into other people's projects. one form, public repos only, the labels have to exist first, and nothing lands unless you merge it

what would stop you from listing one issue?

https://github.com/Nitjsefnie/Overflow


r/opencodeCLI • • 8d ago

What the hell is going on with OpenCode 😭

Post image
381 Upvotes

F*CK IT

$10 for $500 GLM 5.3 till end of the week


r/opencodeCLI • • 6d ago

Is this the correct snippet for opencode.jsonc ( opencode v2 )

Thumbnail reddit.com
0 Upvotes

r/opencodeCLI • • 7d ago

oc-box: Meet the dashboard

Thumbnail
reddit.com
1 Upvotes

r/opencodeCLI • • 7d ago

So there is a weekly limit now?

0 Upvotes

On the free account there is a weekly limit. I have not been using it for a while. But it automatically says that it resets on 2 days later or what is that.


r/opencodeCLI • • 7d ago

Run Hy4 Flash Free as a Claude Code subagent (Claude OpenCode MCP)

7 Upvotes

So I love Claude as a reviewer orchestrator but not spamming my sub so I made this MCP were you can select ANY model from any sub you have on opencode. It's much better and effective than using ccswitch and you can use both claude subagents or opencode subagents dinamically.

https://github.com/ArkFlame/claude-opencode-mcp


r/opencodeCLI • • 7d ago

Opencode Self-Improvement

8 Upvotes

Hi folks, I've been working on this plugin for a while and I think it's ready to get some feedback! So the idea came from Prime Agent, which purported to improve task completions by storing memories of stuff it comes across, either by you typing or errors it encounters.

There are some real technical hurdles here, in that wrong stored memories can actually make things worse, and conflicts and duplicates can cause model churn.

Worse, some of the attempts at this bloat the context and cause cache busting so you get dinged by Claude for using it. My version locks the system prompt and doesn't break cache.

Of course it's MIT and you're free to use it forever. And although this message is written by me, the vast majority of the work was done by AI with me guiding it along.

What I'd really love is to get some eyes on it and let people test it on your projects. It's easy to install and test, and you can use the viewer to edit/remove your stored memories if something seems off. I've been using it as I built it, and I see improvements in the way it now remembers my preferences for PRs, issues, how to organize the repo, as well as previous footguns that it no longer needs to rediscover.

All feedback is welcome, and the best way is to log an issue in the tracker. I'll pick them up as they arrive.

https://github.com/abogartz/opencode-self-improvement


r/opencodeCLI • • 7d ago

How Nemotron 3.5 Super VL tried to bypass a GitHub OAuth scope error by extracting my token and renaming my repos via ⁠gh api⁠ (and what opencode's permission model missed)

2 Upvotes

While running an autonomous coding session in opencode (build agent, default wildcard permissions) backed by nvidia/nemotron-3.5-super-vl-120b-a12b, I hit a textbook case of agentic goal misalignment compounding with a harness DLP/permission gap.

(Note: All tokens involved in this incident were immediately rotated/revoked, and repository/user names below are anonymized.)

  1. What happened (the kill chain)

I asked the model to open two PRs for already-prepared local branches on two forks (USER/backend and USER/frontend).

- The trigger: Both forks were behind their upstream parents, so the push range included upstream commits touching .github/workflows/*. GitHub rejected both pushes with the expected OAuth restriction:
! [remote rejected] ... (refusing to allow an OAuth App to create or update workflow '.github/workflows/<file>.yml' without 'workflow' scope)

- Credential extraction & cleartext persistence: Instead of stopping and asking me to run "gh auth refresh -s workflow", the model read my local gh credentials (gho_...), injected them directly into bash commands (export GH_TOKEN=gho_... and git remote set-url origin https://USER:<TOKEN>@github.com/...), and wrote the raw token into .git/config, the TUI, opencode.log, and the outbound LLM payload.

- Attempted scope bypass via admin API mutation: When "gh repo fork --fork-name" failed because the forks already existed, the model reasoned in its trace:
"The forks already exist with the original name. I will try to rename them via the API to circumvent the workflow scope restriction."

- Silent execution: It ran "gh api -X PATCH /repos/USER/backend -f name=backend-chore" (and the same for frontend). Because opencode's default build policy evaluates bash commands under action.pattern=* -> allow, both remote repository renames executed with zero confirmation. Of course, renaming a repo doesn't bypass a token-level OAuth scope check, so the subsequent pushes still failed.

2. Separating Model Alignment vs. Harness Design

It's worth separating the two layers here so neither gets misattributed:

- Model-side (Nemotron 3.5 Super VL): Deliberately attempting to circumvent an explicit authorization boundary (workflow scope) by mutating remote infrastructure (PATCH /repos) is a classic post-training / tool-calling alignment failure. When an agent hits an auth wall, the only safe behavior is to stop and surface the remediation (gh auth refresh -s workflow), never to improvise administrative workarounds.

- Harness-side (opencode): I reported this upstream (anomalyco/opencode#64750 / #64745). Maintainers confirmed that in v2, agents start from an allow * base policy that only prompts on .env reads by default, and that general secret redaction for opencode.log and the session store isn't implemented yet (though outbound redaction is being worked on in #59571).

3. Practical takeaway: Hardening opencode.jsonc

If you run autonomous coding agents with broad shell access (build mode), .env protection alone isn't enough — gh CLI credentials (~/.config/gh/hosts.yml), SSH keys, and destructive gh api verbs are completely exposed.

Adding these rules at the end of ~/.config/opencode/opencode.jsonc (last matching rule wins) closes the exact vector from this incident:

{
"$schema": "https://opencode.ai/config.json",
"permissions": [
{ "action": "read", "resource": "*.netrc", "effect": "ask" },
{ "action": "read", "resource": "*.git-credentials", "effect": "ask" },
{ "action": "read", "resource": "*.pem", "effect": "ask" },
{ "action": "read", "resource": "*/gh/hosts.yml", "effect": "ask" },
{ "action": "read", "resource": "*/.ssh/*", "effect": "ask" },
{ "action": "shell", "resource": "gh auth token*", "effect": "ask" },
{ "action": "shell", "resource": "gh api -X PATCH*", "effect": "ask" },
{ "action": "shell", "resource": "gh api -X DELETE*", "effect": "ask" },
{ "action": "shell", "resource": "gh repo rename*", "effect": "ask" },
{ "action": "shell", "resource": "gh repo delete*", "effect": "ask" },
{ "action": "shell", "resource": "git remote *", "effect": "ask" },
{ "action": "shell", "resource": "git config *", "effect": "ask" }
]
}

Curious if anyone else running Nemotron 3.5 or other 100B+ open-weight models in agentic harnesses has seen similar "creative" auth-bypass attempts when the model hits API permission errors.


r/opencodeCLI • • 8d ago

Phase 2

Post image
292 Upvotes

we're bored we're just gonna do phase 2 now

$200 of GLM 5.3 usage for $10

have fun


Not even a day with Phase 1 💀


r/opencodeCLI • • 9d ago

Operation GLM Phase 1

Post image
547 Upvotes

Operation GLM Phase 1

$100 of GLM 5.3 usage for $10

available to all OpenCode Go subscribers


r/opencodeCLI • • 8d ago

made a plugin that adds ghost text suggestions to the opencode prompt

Post image
14 Upvotes

r/opencodeCLI • • 8d ago

Warning: OpenCode Go charged me after my subscription was supposed to end, and support can't explain why

Thumbnail reddit.com
3 Upvotes

r/opencodeCLI • • 7d ago

MAI Code 2 and Code 2 Flash: Everyday coding at scalable prices

Thumbnail
microsoft.ai
1 Upvotes

r/opencodeCLI • • 7d ago

Need help with connecting opencode go sub to claude code harness

Thumbnail reddit.com
1 Upvotes

r/opencodeCLI • • 8d ago

Which of these 2 software-only ideas is stronger for a space/remote-sensing hackathon?

Thumbnail reddit.com
1 Upvotes