Based Mdels

Agent Loop docs

agentloop.providers

Built-in provider integrations convert vendor requests and responses to the shared LLMClient interface. All four support local tools. Hosted web search is available only with Anthropic Messages and OpenAI Responses.

ProviderDirect clientAPIHosted web search
AnthropicAnthropicClientMessagesYes
OpenAIbuild_openai_clientResponses by default; Chat Completions optionalResponses only
OpenRouterbuild_openrouter_clientChat CompletionsNo
Modalbuild_modal_clientChat CompletionsNo

Use Settings and build_client for provider selection and automatic retries. Import a direct client from its module when you need provider-specific options. The agentloop.providers package initializer exports no constructors.

Modules whose names start with an underscore, such as _common and _openai_compat, are internal implementation details. To add another provider, implement the LLMClient interface; see the custom providers guide.