Skip to main content
The gateway is a long-running daemon. You start it once and leave it running. Channels (Telegram, HTTP clients) connect to it as needed.

Starting the Gateway

This starts the gateway as a background daemon and returns immediately. The gateway process continues running after you close the terminal. To start in the foreground instead (useful when debugging or inspecting startup logs directly):
In foreground mode, logs stream to stdout and the process exits when you press Ctrl+C.
On first run, make sure you have run beige setup first to create the config file and pull the Docker image. See the installation guide.
For all flags and options, see the CLI Reference.

Checking Status

Shows whether the gateway is running and the PID of the process. Example output:

Viewing Logs

Logs are stored at ~/.beige/logs/gateway.log. Each line is a structured JSON record (tool calls, errors, startup events).

Stopping and Restarting

restart performs an in-place graceful restart — it shuts down the running process and starts a new one. Use this after changing your config or installing new plugins. You can also restart via the HTTP API if you have a client that uses it:

Key File Locations


Config Changes

The gateway reads its config once at startup. After editing ~/.beige/config.json5:
Changes to agent definitions, tool lists, and channel settings all require a restart to take effect.

Troubleshooting

Gateway won’t start Run in foreground mode to see the full error output:
Common causes: Docker is not running, the config file has a syntax error, or a port is already in use. Gateway starts but agents don’t respond Check that the Docker image was pulled during setup:
If missing, re-run beige setup. Tool calls are being rejected Check the audit log for "decision": "deny" entries:
The error field in the log entry will explain why the call was blocked. Most likely the tool is not listed in the agent’s allowedTools config. Port 7433 is already in use Change the gateway port in ~/.beige/config.json5:
Then restart the gateway.