Skip to content

[FEATURE]: Let the browser pane use the desktop's network instead of the connected server's #60476

Open

Description

@BAYUNZIYUE

This is not #50476. That issue asks the browser tunnel to honor the server's proxy settings. This request asks for page traffic to bypass the server entirely and leave from the desktop.

Request

Add an egress choice for the browser pane:

  • server — current behavior, default
  • local — page requests leave from the desktop host directly, without the tunnel

Scenario

The server runs in the cloud, while Desktop runs on a laptop that moves between networks.

Sometimes I need the agent to work with things on whatever LAN the laptop is currently attached to: a router admin page, a NAS, a local dev server, a service spun up on the same network. Those addresses are unreachable from the cloud server, but perfectly reachable from the laptop.

Chromium already runs on the laptop and can physically reach that network — the requests are simply forwarded to the server.

Why not just run OpenCode on Windows?

Two reasons, plus one practical one.

Isolation. The agent runs shell commands and edits files. Keeping it on a server I control, with the desktop client connecting over the network, keeps execution away from my personal machine.

Tooling. The utilities, runtimes and containers I depend on live on that Linux box. Rebuilding them on Windows means maintaining a second environment.

The reachability problem does not go away anyway. The LAN I need access to requires an authenticated VPN client that only ships for Windows. A container cannot join it, but the laptop can.

The obvious workaround — install a second OpenCode on Windows just for these cases — splits the setup in two: two servers, two configs, two sets of sessions, and context carried between them by hand. That is worse than the problem it solves.

So the ask is one client with two egress paths.

Expectation

A way to switch egress in settings or in the pane. In local mode Chromium connects to targets directly and skips the tunnel. Default behavior stays unchanged.

Activity

  1. opencodejr commented on Oct 30, 2026

    @opencodejr
    Contributor

    Thanks for the clear write-up and for spelling out how this differs from #50476!

    To restate the request: add an egress option for the browser pane. server would stay the default and keep today's tunnel. local would let Chromium connect directly from the desktop, so it can reach whatever LAN the laptop is on (router admin pages, a NAS, local dev servers) while the OpenCode server runs in the cloud.

    Right now the pane deliberately sends every connection, including localhost, through the server's browser tunnel, and there's no setting to change that. Maintainers will consider this request.

    Related:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions