LiteLLM router-based LLM provider for AgentForge — 100+ underlying providers through one interface
Project description
agentforge-litellm
LiteLLM router-based LLM provider for AgentForge.
Wraps LiteLLM's unified interface so a single AgentForge agent can route to 100+ underlying providers (OpenAI, Anthropic, Bedrock, Vertex, Azure, Mistral, Groq, Fireworks, Together, ...) by changing the model string — no per-provider sister package needed.
When to use this vs. a native sister package:
- Prefer native (
agentforge-anthropic,agentforge-openai, ...) for production paths where you want first-class capability surface (caching, thinking, streaming with full type-checked stream events). - Use LiteLLM as a unified gateway, for tail providers AgentForge doesn't ship native packages for yet, or to experiment with new models behind a single config.
Install
pip install "agentforge-litellm[litellm]"
Use
from agentforge import Agent
# Model string is "litellm:<litellm-model-string>". The second
# half is whatever LiteLLM accepts.
agent = Agent(model="litellm:gpt-4o-mini")
agent = Agent(model="litellm:anthropic/claude-sonnet-4-7")
agent = Agent(model="litellm:bedrock/anthropic.claude-sonnet-4-7")
Capabilities
{"tools"} only. LiteLLM normalises tools across underlying
providers but doesn't expose a uniform caching / thinking /
vision / streaming surface — those vary per backend. If you
need those, use the matching native sister package.
License
Apache-2.0. See LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agentforge_litellm-0.2.3.tar.gz.
File metadata
- Download URL: agentforge_litellm-0.2.3.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
679a3050385fb6932719b871f1517866e9f5de127714862c9546db0b1e77228b
|
|
| MD5 |
49cbfa6bd38aa4aaaf8dfcf43e740cf6
|
|
| BLAKE2b-256 |
83e072d3e102b0b6bfe99b45cac897a31f281a5770cbbbaba0c2cc708179d1ce
|
File details
Details for the file agentforge_litellm-0.2.3-py3-none-any.whl.
File metadata
- Download URL: agentforge_litellm-0.2.3-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b25d6c61b2de139b8aeb2f168cc0fd860d290160850147f924b0b8f468e20ebc
|
|
| MD5 |
6fa59ab38bc485370123417de5b01503
|
|
| BLAKE2b-256 |
214b832d6b11ceef1af5201bb7a93c7c00011077d2bd1d0f0a6167ab536d6e79
|