Prerequisites
- LiteLLM Agent Platform running (
docker compose upor deployed) - Anthropic API key
1. Add your Anthropic API key
Open Settings β Credentials in the UI and add your Anthropic API key. The platform stores it encrypted and injects it at the wire level. Or via the API:2. Select the built-in runtime
claude_managed_agents is a built-in runtime. You do not need to register a custom harness for it.
3. Create an agent
In the UI, click New Agent, chooseclaude_managed_agents as the runtime, select a model, and save.
Or via the API:
4. Start a session and stream events
Event kinds
| Event kind | Meaning |
|---|---|
session.status_running | Agent is processing |
agent.message | Text output from the agent |
agent.tool_use | Agent is calling a tool |
agent.tool_result | Tool result returned |
session.status_idle | Turn complete |
session.error | Runtime error |