Skip to main content
The gateway is the heart of Beige — a single long-running Node.js process that coordinates everything: agent lifecycle, Docker sandbox management, tool routing, policy enforcement, and audit logging. Every agent runs inside a Docker sandbox that the gateway creates and owns. Every tool call an agent makes passes through the gateway before anything executes. The gateway is always the single source of truth.

Core Responsibilities


Configuration and Storage

The gateway reads its configuration from ~/.beige/config.json5 on startup. Key runtime files: See the Config Reference for the full configuration schema.

In This Section

How Tool Calls Work

What happens from the moment the LLM calls a tool to when the result comes back

Operating the Gateway

Starting, stopping, monitoring, and troubleshooting the gateway process