Skip to main content
The LiteLLM Agent Platform exposes a REST API for managing runtimes, agents, and sessions. All endpoints require a Authorization: Bearer <key> header (or ?key=<key> for SSE streams).

Base URL

EnvironmentURL
Productionhttps://litellm-rust.onrender.com
Local (Docker Compose)http://localhost:4000

Authentication

All endpoints require your master key:
curl https://litellm-rust.onrender.com/api/agents \
  -H "Authorization: Bearer $MASTER_KEY"
The default master key for local Docker Compose is sk-local.

Live Swagger UI

The full interactive Swagger UI is available at: The raw spec is at /openapi.json — import it into Postman, Insomnia, or any OpenAPI-compatible client.

Endpoint groups

GroupDescription
SystemHealth check and capabilities
ModelsList available model aliases
MessagesAnthropic-compatible chat completions
AgentsCreate and manage agents
SessionsCreate sessions and stream events
RuntimesConfigure built-in runtime credentials and manage custom runtime harnesses
API KeysIssue and revoke gateway keys
MCPProxy requests to MCP tool servers