Gateway & API
The gateway is DragonClaw's control plane.
It exposes a REST API and a WebSocket server, then routes validated requests into the agent loop.
Request path
External traffic reaches Nginx first.
Nginx proxies approved requests to the gateway on
127.0.0.1:18789.The gateway checks authentication before any agent work begins.
The gateway applies rate limits and validates the request payload.
Valid requests continue into the agent loop for prompt building and execution.
Security layers
Nginx handles TLS, payload limits, and edge rate limiting.
Bearer token auth protects all endpoints except
/health.Rate limiting applies per-user and global quotas.
Input validation enforces JSON and message-size limits.
CORS can be configured for browser clients.
Endpoints
GET /healthGET /skillsPOST /messageWebSocket session for real-time bidirectional traffic
Default configuration
Production guidance
The gateway binds to 127.0.0.1 by default.
That keeps it off the public internet unless you deliberately proxy traffic to it.
Last updated