Skip to main content
The beige CLI controls the gateway daemon, launches the TUI, and manages plugins.
Running beige with no arguments prints help and exits.

Gateway Commands

The gateway is the always-running process that manages sandboxes, routes tool calls, and enforces policies.

beige gateway start

Start the gateway as a background daemon.
On first run, if ~/.beige/config.json5 does not exist, the gateway automatically runs setup before starting. On startup, the gateway:
  1. Loads and validates config.json5
  2. Discovers installed plugins from ~/.beige/plugins/
  3. Loads plugins — calls createPlugin() and register() for each
  4. Validates agent tool references against registered tools
  5. Builds the sandbox Docker image if needed
  6. Creates a Docker container for each configured agent
  7. Starts socket servers and the HTTP API
  8. Calls plugin.start() for each plugin (background processes)

beige gateway stop

Stop the running gateway daemon.

beige gateway restart

Gracefully restart the gateway without losing state.
The gateway drains in-flight calls, stops all plugins, tears down infrastructure, reloads config, and starts fresh. Use this after editing config.json5.

beige gateway status

Check whether the gateway daemon is running.

beige gateway logs

View the gateway log file.

TUI Command

beige tui [agent]

Launch the interactive TUI, connecting to the running gateway.
The gateway must be running before starting the TUI. Flags:

Setup Command

beige setup

Initialize ~/.beige/ with the default config.
Setup is idempotent — existing files are never overwritten.

Plugin Commands

beige plugins install <source>

Install plugins from a source.
The installer discovers plugins by scanning for plugin.json files. After installing, review your config.json5 to fill in any required values (like API keys), add the plugin’s tools to your agent’s tools array, and restart the gateway.

beige plugins list

List all installed plugins.

beige plugins remove <name>

Remove an installed plugin.

beige plugins update [name]

Update a plugin or all plugins by re-fetching from the original install source.

Global Flags


Typical Workflow