Agent Loop docs
agentloop documentation
agentloop is a synchronous Python agent loop for Anthropic, OpenAI, OpenRouter, Modal/vLLM,
and custom clients. It supplies shared conversation types, tool execution, retries, limits,
and operational reporting. Your application chooses prompts, tools, approvals, and secrets.
Start here
- Install agentloop.
- Run Hello World with the included
FakeClientto see the loop work offline, then use the sameAgent.run()call with a live provider. - Configure a provider with an explicit mapping or
Settingsobject.
Guides
- Agents
- Tools and approval
- Conversations and transcripts
- Providers
- Hosted tools and web search
- Implement a custom provider
- Conversation summaries
- Event traces
- Observers
- OpenTelemetry tracing and metrics
- Installing
- Retries and errors
- Store transcripts
Reference and examples
The API reference describes the main public interfaces. Names beginning with _ are
internal and can change without notice.