Top
Best
New

Posted by rbanffy 1 day ago

OpenCode – Open source AI coding agent(opencode.ai)
1203 points | 597 commentspage 8
solomatov 1 day ago|
Do they have any sandbox out of the box?
l72 17 hours ago||
I use bubblewrap. This ensures it only has access to the current working directory and its own configuration. No ability to commit or push (since it doesn't have access to ssh keys) or try to run aws commands (no access to awscli configuration) and so on. It can read anything from my .envrc, since it doesn't have access to direnv or the parent directory. You could lock down the network even further if you wanted to limit web searches.

  exec bwrap \
    --unshare-pid \
    --unshare-ipc \
    --unshare-uts \
    --share-net \
    --bind "$OPENCODE_ROOT" "$OPENCODE_ROOT" \
    --bind "$CURRENT_DIR" "$CURRENT_DIR" \
    --bind "$HOME/.config/opencode/" "$HOME/.config/opencode/" \
    --ro-bind /bin /bin \
    --ro-bind /etc /etc \
    --ro-bind /lib /lib \
    --ro-bind /lib64 /lib64 \
    --ro-bind /usr /usr \
    --bind /run/systemd /run/systemd \
    --tmpfs /tmp \
    --proc /proc \
    --dev /dev \
    --setenv OPENCODE_EXPERIMENTAL_LSP_TOOL true \
    --setenv EDITOR emacs \
    --setenv PATH "$OPENCODE_BINDIR:/usr/bin:/bin" \
    --setenv HOME "$HOME" \
    -- \
    "opencode" "$@"
jy-tan 13 hours ago|||
I built Fence for this! https://github.com/Use-Tusk/fence

fence -t code -- opencode

decodebytes 1 day ago||
nope - most folks wrap it in nono: https://nono.sh/docs/cli/clients/opencode
tallesborges92 1 day ago||
I’m happy with the one I built. (ZDX)
epec254 1 day ago||
Honestly I was a Claude code only guy for a while. I switched to opencode and I’m not going back.

IMO, the web UI is a killer feature - it’s got just enough to be an agent manager - without any fluff. I run it on my remote VMs and connect over HTTP.

caderosche 1 day ago||
I feel like Anthropic really need to fork this for Claude Code or something. The render bugs in Claude Code drive me nuts.
QubridAI 1 day ago||
OpenCode feels like the “open-source Copilot agent” moment the more control, hackability, and no black-box lock-in.
wagslane 1 day ago||
I've been using opencode for months with codex. best combo I've tried so far
avereveard 1 day ago||
isn't this the one with default-on need code change to turn off telemetry?
flexagoon 1 day ago|
No
avereveard 1 day ago||
https://github.com/anomalyco/opencode/issues/5554

https://www.reddit.com/r/LocalLLaMA/comments/1rv690j/opencod...

?

flexagoon 1 day ago||
You can scroll down literally two messages in the Github issue you linked:

> there isnt any telemetry, the open telemetry thing is if you want to get spans like the ai sdk has spans to track tokens and stuff but we dont send them anywhere and they arent enabled either

> most likely these requests are for models.dev (our models api which allows us to update the models list without needing new releases)

nacs 1 day ago||
You should really look at the 2nd link, its much worse than telemetry..

> opencode will proxy all requests internally to https://app.opencode.ai

> There is currently no option to change this behavior, no startup flag, nothing. You do not have the option to serve the web app locally, using `opencode web` just automatically opens the browser with the proxied web app, not a true locally served UI.

> https://github.com/anomalyco/opencode/blob/4d7cbdcbef92bb696...

flexagoon 21 hours ago||
That is the address of their hosted WebUI which connects to an OpenCode server on your localhost. Would be nice if there was an option to selfhost it, but it is nowhere near as bad as "proxying all requests".
singpolyma3 1 day ago||
OpenCode vs Aider vs Crush?
polski-g 1 day ago|
OpenCode, by reason of plugins alone, is better than all of them.
jedisct1 1 day ago||
For open models with limited context, Swival works really well: https://swival.dev
alsjdG19 1 day ago|
You do not "write" code. Stop these euphemisms. It is an intellectual prosthetic for feeble minded people that plagiarizes code by written by others. And it connects to the currently "free" providers who own the means of plagiarizing.

There is nothing open about it. Please do not abuse the term "open" like in OpenBSD.

andrekandre 19 hours ago|

  > Please do not abuse the term "open" like in OpenBSD.
this is such a pet peeve of mine; all these "open" products (except when they're not)
More comments...