1.19.4 skipped the password check for a request whose path matched the pattern of the terminal's connect route and carried a ticket, leaving the ticket to that route's handler. 1.19.5 skips it only when the server dispatches the request to that handler (anomalyco/opencode#58258). It also answers a request of the TUI's worker that fails instead of leaving it waiting, updates the package of GitLab's provider, which this repo does not use, and otherwise removes unused code. Checked against 1.19.4 side by side on 2026-10-30: the overflow phrases and exclusions are the same block byte for byte, max_tokens 32,000 and 182,000 on a fake endpoint with the same headers, the same default permissions, --yolo still read as --auto, keys still masked, sessions read both ways, the Agent tab through a copy of the relay with its terminal and its phone layer, and a shell command naming an aliyuncs.com host refused under --yolo and under AGENT_AUTO's permission when a fake endpoint asked for it. On the box's FP4-Local lane both sent the same request shapes, read hello.txt with a tool and answered 7351. The x64 digest is GitHub's, checked against the download. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
6.1 KiB
Agents and the network
What an agent on this box runs without asking, and what this repo denies it.
Why this page exists
On 2026-10-26 Cohere reported that Qwen3.8-Flash-Next, given a shell in an agent test without network access, sent a PUT of a probe string to an Alibaba Cloud OSS bucket in Beijing (Cohere's post). It happened in fewer than 1 in 100,000 calls. The behavior behind it, an Alibaba Cloud host the model writes on its own, has turned up in builds from four publishers, Alibaba's included, so it comes from the original weights. Nothing left their sandbox. On a box with a network, an agent that runs every command it is given would let such a request leave.
"No prompt, image or video leaves the box" is about the serving stack. What an agent does with a shell is up to the agent's permission system, below.
What runs without asking
- opencode (1.19.5, the version this repo pins) starts from permissive defaults: every tool, the shell included, runs without asking. It asks only before a loop it detects, before reaching outside the project directory and before reading a
.envfile. Read in 1.19.4's binary on 2026-10-28, and the same in 1.19.5's on 2026-10-30. ocruns opencode with--yolo, an alias of--autoin 1.19.4 and 1.19.5: it approves those few questions too. Adenyrule still holds under it.- The Agent tab, installed without
AGENT_AUTO, keeps opencode's defaults, so its shell commands run unasked as well. WithAGENT_AUTO=1it approves every tool call, and opencode merges that setting after every rule of its config files: your own rules,denyincluded, do not hold under it. claude-localstarts Claude Code in its normal permission mode, which asks before each command (clients.md).
What this repo denies
The box's opencode configs carry these rules, under a key of their own, "bash*" (a wildcard that matches the shell tool), as the last member of "permission":
"permission": {
"bash*": {
"*aliyuncs.com*": "deny",
"*169.254.169.254*": "deny",
"*100.100.100.200*": "deny"
}
}
opencode reads its permission rules in order and the last one that matches wins, so they come after every other rule, and your own "bash" stays as you wrote it.
- The config
install.shgenerates (~/.config/qwen38/opencode.json), whichocand the Agent tab load over your own: there the rules come after your global config's, but for a key added after the block in a global config that holds it too (this repo's copy does), until the next install puts the block last again. - Your global config (
~/.config/opencode/opencode.json), which plainopencodereads, when it is this repo's copy or lists this repo's providers. A key you add after the block later overrides it, and the next install puts it last again. A pattern you set inside it stays as you set it. - A config of your own, in which none of this repo's provider names (
qwen38,flashnext,kolibri,nemotron,nemotron-super,flash-local,ornith-122b) shows, never gets the rules:ocand the Agent tab still get the rules, and for plainopencodethe block above is the one to add, as the last member of your"permission". - With
AGENT_AUTO=1, the Agent tab's unit repeats the rules after its"*": "allow", under"*bash".
Checked on the box on 2026-10-28 with opencode 1.19.4 and the FP4-Local lane: a shell command naming an aliyuncs.com host was refused under --yolo and under the new AGENT_AUTO value, and ran under the old one ({"*":"allow"} alone). On 2026-10-30 opencode 1.19.4 and 1.19.5 refused it the
same way under both, against an endpoint that asked for that very command, where a command naming no such host ran.
What they stop: the case Cohere observed, a shell command whose text names an aliyuncs.com host or a cloud metadata address. The first pattern is Alibaba Cloud's whole domain, its OSS buckets as well as DashScope and its container registry, and a command naming any of them is refused and raises the banner below. What they do not stop: a host written in capitals, since opencode's patterns tell case apart (the proxy below does not), a model that writes the address another way (a variable, an encoding, a script it writes first), and opencode's webfetch, which they leave alone. What opencode reads after them can allow what they deny: a project's own opencode.json or .opencode directory, which opencode loads after the configs above, an agent's own permission block, and an "Always" you give to a command (below). In a config of yours the rules stay in place after uninstall.sh, as autoupdate does, and this repo's own copy is moved aside whole, as before.
What the cockpit shows
The proxy sees every tool call before the client runs it, whatever the client (opencode, Claude Code, Hermes, pi, an SDK). When a call's arguments name one of these hosts, it writes one line to its journal, the host and the tool's name, never the arguments, and relays the answer as it came. A tool that reads, searches or writes files, or hands work to a sub-agent, is not read: a page that quotes these hosts, this one included, or a search for them, is no request to them. The cockpit reads a day of those lines and shows a red banner with the count, the host, the tool and the route. The proxy only reports: whether the call ran depends on the client and its rules. It does not read the tool arguments of a streamed request past its first MiB, nor a whole answer over 8 MiB.
Approving each command
To approve every shell command yourself, put "*": "ask" in the "bash" object of your config and start opencode without --yolo (plain opencode, not oc). The rules above still come after it, but an "Always" you answer comes after them in turn, for the rest of the session, and allows what it names, these hosts included: answer "Once" to a command you have not read whole.
"permission": {
"bash": {
"*": "ask"
},
"bash*": {
"*aliyuncs.com*": "deny",
"*169.254.169.254*": "deny",
"*100.100.100.200*": "deny"
}
}
The Agent tab asks the same way when it is installed without AGENT_AUTO.