Skip to content

ui

ui

Launch interactive user interfaces

agentpool ui [OPTIONS] COMMAND [ARGS]...

--help

Flag Show this message and exit.

opencode

Launch OpenCode TUI with integrated server or attach to existing one.

By default, starts an OpenCode-compatible server in the background and automatically attaches the OpenCode TUI to it. When you exit the TUI, the server is automatically shut down.

With --attach, only launches the TUI and connects to an existing server (useful when running the server separately or connecting from multiple clients).

Examples: # Start server + TUI agentpool ui opencode

# Use specific config and agent
agentpool ui opencode agents.yml --agent myagent

# Custom port
agentpool ui opencode --port 8080

# Attach to existing server (no server startup)
agentpool ui opencode --attach
agentpool ui opencode --attach --port 8080
agentpool ui opencode [OPTIONS] [config]

config

Path to agent configuration (optional, not used with --attach)

-h, --host

Default: 127.0.0.1 Host to bind/connect to

-p, --port

Default: 4096 Port for server to listen on / connect to

--agent

Name of specific agent to use (not used with --attach)

--attach

Flag Only attach TUI to existing server (don't start server)

--help

Flag Show this message and exit.

toad

Launch Toad TUI for ACP agents.

By default uses stdio transport where Toad spawns the agentpool server. With --websocket, starts a WebSocket ACP server in the background first.

Examples: # Direct stdio (Toad spawns server) agentpool ui toad

# Use specific config
agentpool ui toad agents.yml

# WebSocket transport
agentpool ui toad --websocket

# WebSocket with custom port
agentpool ui toad --websocket --port 9000
agentpool ui toad [OPTIONS] [config]

config

Path to agent configuration (optional)

-w, --websocket

Flag Use WebSocket transport (otherwise stdio)

-p, --port

Default: 8765 Port for WebSocket server (only with --websocket)

--help

Flag Show this message and exit.

desktop

Launch OpenCode desktop app with integrated server or attach to existing one.

By default, starts an OpenCode-compatible server in the background and configures the desktop app to connect to it. The desktop app will run independently and you can close the terminal.

With --attach, configures the desktop app to connect to an existing server without starting a new one.

Note: This command requires the OpenCode desktop app to be installed. The app will be configured to use the specified server URL via its config.

Examples: # Start server, configure desktop app, and launch it agentpool ui desktop

# Use specific config and agent
agentpool ui desktop agents.yml --agent myagent

# Custom port
agentpool ui desktop --port 8080

# Configure desktop to attach to existing server
agentpool ui desktop --attach
agentpool ui desktop --attach --port 8080

# After using --attach, reset to default (spawn local server)
agentpool ui desktop --attach --port 0  # port 0 clears the setting
agentpool ui desktop [OPTIONS] [config]

config

Path to agent configuration (optional, not used with --attach)

-h, --host

Default: 127.0.0.1 Host to bind/connect to

-p, --port

Default: 4096 Port for server to listen on / connect to

--agent

Name of specific agent to use (not used with --attach)

--attach

Flag Connect desktop app to existing server (don't start server)

--help

Flag Show this message and exit.