Production

Deployment

Run the Antraft control plane as a service — it exposes the governance endpoint, fleet control, the observability dashboard, and the approval inbox.

Run the control plane

shell
pip install "antraft[all]" "uvicorn[standard]"
antraft serve --host 0.0.0.0 --port 8000

Endpoints

RoutePurpose
POST /guard/evaluateLanguage-agnostic governance (used by the TS SDK).
GET /agentsList active agents.
POST /agents/{id}/approveApprove a paused action.
POST /agents/{id}/signalPAUSE / RESUME / STOP.
GET /observabilityLive governance dashboard.
GET /inboxHuman-in-the-loop approval inbox.

Docker

shell
docker build -t antraft .
docker run -p 8000:8000 antraft

MCP server

Expose Antraft itself as an MCP server for Claude Desktop or an IDE:

shell
antraft mcp # stdio MCP server

In-process vs sidecar

For Python apps, the runtime governs in-process — fast and embedded. For other languages (or a central control plane), run antraft serve as a sidecar and call/guard/evaluate. Both paths use the same engine, so decisions never diverge.