Skip to main content
agtOS exposes three protocol interfaces. Each serves a different use case — pick the one that fits your integration.

REST API

Port 4102 — 40+ endpointsHealth, chat, memory, scheduling, devices, configuration, and Prometheus metrics. Used by the CLI, dashboard, and external integrations.

WebSocket

Port 3000 — Real-time audioBidirectional PCM audio streaming with session management, transcripts, word timestamps, and TTS playback.

MCP Tools

Port 4100 — 10 built-in toolsVoice, system, memory, workflow, and scheduling tools via Streamable HTTP. Connect from Claude Desktop, Cursor, or any MCP client.

Authentication

All API endpoints support opt-in authentication via the AGTOS_API_KEY environment variable.
When AGTOS_API_KEY is set, all /api/* endpoints require a Bearer token:
Health endpoints (/health, /metrics) remain open for monitoring.

Rate limiting

All API endpoints use token bucket rate limiting per client IP: Rate limit headers are included on every response:

Quick examples