Skip to content

feat(tui): switch between OpenCode servers #37667

Open

Description

@opencode-agent

Goal

Allow one OpenCode V2 TUI process to switch between a local server and remote development servers.

Scope

  • Open a server picker from a configurable keybind.
  • Treat the selected server as an isolated TUI context: client, event stream, route, location, sessions, permissions, and caches.
  • Show only the selected server's current project and sessions.
  • Keep one server connected at a time; do not merge cross-server session lists.
  • Persist endpoint URLs client-side without persisting credentials.
  • Require no server or protocol changes.

Proposed flow

  1. Press the server switch keybind.
  2. Select the local or remote endpoint, or add an endpoint URL.
  3. Validate the endpoint and remount the server-scoped TUI providers.
  4. Land on that server's home view.

Source: https://slack.com/archives/C0BE69AHCQP/p1784399919188419

Activity

  1. bbartels commented on Aug 26, 2026

    @bbartels
    Contributor

    It would be really useful to additionally allow for a TUI plugin so this can be done programmatically, say i spin up a remote workspace I want my local TUI to automatically connect to it without having to manually type out the endpoint. Supporting multiple remote session simultaneously via the same TUI

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions