Synopsis
Description
operator gateway starts the long-running gateway process. It connects all enabled messaging channels (Telegram, Discord, Slack, WhatsApp, etc.), starts the cron scheduler, initialises the heartbeat service, and exposes HTTP health endpoints — then routes incoming messages to the agent loop.
The gateway runs in the foreground. Press Ctrl+C to trigger a graceful shutdown. All active connections are closed with a 15-second timeout before the process exits.
Startup sequence
When you runoperator gateway, the following services are started in order:
- Config loaded — reads
~/.operator/config.json(or$OPERATOR_CONFIG) - Provider initialised — creates the LLM provider from
model_list/providers - Agent loop created — tools and skills are loaded and counted
- Cron service started — loads
<workspace>/cron/jobs.jsonand schedules any enabled jobs - Heartbeat service started — sends periodic prompts to the agent on the configured interval
- Device event service started — monitors USB and other device events (if enabled)
- Channel manager started — connects each enabled channel and registers webhook routes
- HTTP server started — exposes
/healthand/readyendpoints on the gateway host/port - Agent loop running — begins processing the message bus
Channels supported
The gateway supports the following messaging channel integrations (configured inconfig.json):
- Telegram
- Discord
- Slack
- WhatsApp (bridge and native)
- LINE
- DingTalk
- Feishu (Lark)
- WeCom (Bot, App, and AI Bot variants)
- OneBot (v11)
- MaixCam
Health endpoints
While the gateway is running, two HTTP endpoints are available on the configuredgateway.host and gateway.port:
| Endpoint | Description |
|---|---|
GET /health | Returns 200 OK when the server is up |
GET /ready | Returns 200 OK when channels have finished starting |
http://127.0.0.1:18790
Options
Enable debug-level logging. Prints verbose output for all internal events including message routing, tool calls, and channel activity. Shorthand:
-d.Examples
Start the gateway with default settings:Gateway host and port
The host and port are configured inconfig.json under the gateway key:
Related commands
operator onboard— create the config file before running the gatewayoperator status— inspect config and provider key status without starting the gatewayoperator cron— manage scheduled jobs that run while the gateway is activeoperator agent— interact with the agent directly without starting the gateway