AnyAgent
A unified Python interface for running and evaluating several agent frameworks.
- Source repo
- mozilla-ai/any-agent
- Stars
- ★ 1.3k
- Last updated
- 1mo ago
- License
- Apache-2.0
- Primary language
- Python
- FA score
- 58/100 · Major gaps
At a glance
- How it runs
- Works with
- Portable with changesOpenAI API (Partial support)
- Cost
- Free software; you pay for model usage
- Setup effort
- Low · running in minutes
- You'll need
- Typical use
- A Python team that needs one creation and execution pattern across supported frameworks such as TinyAgent, Google ADK, and LangChain.
- Not a fit if
- Teams needing active feature development; the project is in soft deprecation
- Developers committed to one framework who don't need cross-framework comparison
- Website
- docs.mozilla.ai/any-agent ↗ set on GitHub
- Maintenance
- Commits in the last 6 monthslast commit 2026-09-21latest release 1.18.0 (2026-02-18)
- Source review
- 58/100 · Major gaps 2 safety controls not found
What does this agent do, and when should you use it?
AnyAgent is a Python library for using and evaluating multiple agent frameworks through one interface. Its main entry points are AgentConfig and AnyAgent: developers select a framework with AnyAgent.create() while supplying models, instructions, and tools through a common configuration pattern. The README lists TinyAgent, Google ADK, LangChain, LlamaIndex, OpenAI Agents SDK, smolagents, and Agno as supported frameworks. A call to agent.run() produces an agent_trace, and the project includes an example for creating an agent evaluation. It also documents entry points for MCP agents, A2A serving, and multi-agent patterns, although the project is softly deprecated and has no planned new features.
After installation, code imports AgentConfig and AnyAgent from any_agent, then creates a framework-specific agent with AnyAgent.create("tinyagent", AgentConfig(...)). AgentConfig can carry a model_id, instructions, and a tool list; the example uses mistral:mistral-small-latest with search_web and visit_webpage. The application then calls agent.run("Which Agent Framework is the best??") and prints the resulting agent_trace. The project also exposes documentation and cookbook entry points for evaluation, tracing, serving, MCP, and A2A.
- A Python team that needs one creation and execution pattern across supported frameworks such as TinyAgent, Google ADK, and LangChain.
- A developer building an evaluation workflow for a web-search agent and comparing three evaluation methods.
- An application developer who needs to integrate Model Context Protocol tools into an agent.
- A team that wants to serve an agent with A2A or use one agent as a tool for another agent.
- A researcher who still needs cross-framework execution or evaluation while planning a move to
tinyagent.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
pip install 'any-agent'
- Environment variables
MISTRAL_API_KEYYOUR_KEY_HEREOPENAI_API_KEY- Runtime
- Python 3.11
How do you install or deploy this agent?
Python 3.11 or newer is required.
pip install 'any-agent'Then set credentials for the selected model provider. The README example uses:
export MISTRAL_API_KEY="YOUR_KEY_HERE"Set the relevant provider credential instead when applicable, such as OPENAI_API_KEY.
How do you use this agent?
The README's minimal invocation is:
from any_agent import AgentConfig, AnyAgent
from any_agent.tools import search_web, visit_webpageagent = AnyAgent.create("tinyagent",
AgentConfig(model_id="mistral:mistral-small-latest",
instructions="Use the tools to find an answer",
tools=[search_web, visit_webpage])
)
agent_trace = agent.run("Which Agent Framework is the best??")
print(agent_trace)In Jupyter Notebook, if RuntimeError: This event loop is already running occurs, run import nest_asyncio followed by nest_asyncio.apply() first.
What are this agent's strengths and limitations?
- Uses
AnyAgent.create()andAgentConfigas a common creation and execution surface across several listed frameworks. - Explicitly includes agent evaluation; the starter material covers evaluating a web-search agent with three methods.
- Provides cookbook entry points for MCP, A2A serving, and an agents-as-tools multi-agent pattern.
- The project is in soft deprecation: security and bug-fix pull requests are accepted, but no new features are planned.
- It requires Python 3.11 or newer.
- Model calls require credentials for the chosen provider; no credential-free execution mode is described.
- The supplied material does not enumerate framework installation options or give complete evaluation API configuration details.
How does this agent compare with similar options?
For new projects, the repository explicitly recommends mozilla-ai-tinyagent. AnyAgent is the better fit when you specifically need to run or evaluate agents across frameworks including Agno, Google ADK, LangChain, LlamaIndex, OpenAI Agents SDK, or smolagents.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| AnyAgent This agent | 58 · Major gaps | Library / SDKFree + model costs | ★ 1.3k | 1mo ago | Python | — |
| Youtu-Agent | 53 · Major gaps | CLIFree + model costs | ★ 4.6k | 3d ago | Python | OpenAI API |
| Solace Agent Mesh | 51 · Major gaps | CLIFree + model costs | ★ 4.9k | 7d ago | Shell | — |
| Agentic AI Engineering Course | 40 · Major gaps | FrameworkFree + model costs | ★ 6.6k | today | Jupyter Notebook | OpenAI API |
How does FollowAgents rate this agent?
Why each dimension lost points
The README shows model API keys configured through environment variables and advises against committing secrets. Its example also calls web search/browsing tools, and MCP, A2A, and Composio integrations can have external effects; the supplied material does not describe permission scoping, sensitive-data controls, or user confirmation, so evidence for these safeguards is limited. Dependencies have version ranges, but the packet provides no verifiable vulnerability review or mitigation process. It does not describe rollback. Source attribution is limited to repository files and dependency names; publisher identity is treated as unknown as instructed.
The factory, framework adapters, callbacks, tracing, and evaluation architecture described in the contributor guidance fits the README's multi-framework purpose; Python and dependency constraints are reasonably clear. Development instructions and test configuration show test paths, but the packet gives little evidence about user-facing failure handling; integration tests require API keys, and no tests were executed for this review.
The README clearly targets projects that need to run or evaluate agents across frameworks and lists supported frameworks. Its soft-deprecation notice clearly narrows the recommended use for new projects versus cross-framework evaluation. Optional framework dependencies, Python requirements, and the stated Jupyter limitation help users assess fit, though framework-specific capability differences and boundaries are described only generally.
The README, project configuration, and contributor guide cover installation, structure, development commands, and examples; Apache-2.0 metadata is backed by a license file. Soft-deprecation status, security and bug-fix-only maintenance, the upstream tinyagent boundary, and contribution channels are stated. The supplied material has no separate FAQ or complete changelog; framework names and version constraints are readable, while long-term compatibility and maintenance arrangements remain limited.
A shared API for running and evaluating agents across Agno, Google ADK, LangChain, LlamaIndex, OpenAI Agents SDK, smolagents, and TinyAgent offers clear comparative value, and the README provides a compact configuration-to-run example. Costs include Python and provider credentials plus framework-specific optional dependencies; soft deprecation makes it less attractive as the foundation for a new project.
The main product claims are stated in the README, the project configuration supplies Python and dependency constraints, and the AGENTS/CLAUDE material explains architecture and maintenance status. Test configuration identifies test types and integration credential requirements, but this review did not run tests and cannot confirm their results. The packet generally distinguishes product use, limitations, and contributor guidance, while leaving several security and compatibility behaviors unspecified.
- Not found in source: confirmation before actingTurn on (or add) a confirmation step before it acts, and try it in a sandbox or test environment before real data.
- Not found in source: rollback or recovery pathBack up first, or work on a git branch or snapshot, so its changes can be undone.
- The example enables web search and browsing. Before authorizing external tools or MCP/A2A integrations, check their access scope and possible side effects.
- The project is soft-deprecated and plans no new features; new projects should first consider the recommended tinyagent package. Users supply model API keys, and the provided material does not show more detailed key-protection controls.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
Release notes excerpt
What's Changed * feat(tinyagent): Allow messages as input to agent.run. by @daavoo in https://github.com/mozilla-ai/any-agent/pull/906 Full Changelog: https://github.com/mozilla-ai/any-agent/compare/1.17.0...1.18.0View on GitHub ↗ -
Release notes excerpt
What's Changed * feat: Add any-llm-args to config. by @daavoo in https://github.com/mozilla-ai/any-agent/pull/905 Full Changelog: https://github.com/mozilla-ai/any-agent/compare/1.16.1...1.17.0View on GitHub ↗ -
Release notes excerpt
What's Changed * fix(tests): Clear ANY_LLM_KEY env var in unit tests by @peteski22 in https://github.com/mozilla-ai/any-agent/pull/903 * fix(smolagents): Reuse AnyLLM client instance to avoid event loop errors by @peteski22 in https://github.com/mozilla-ai/any-agent/pull/902 * fix(callbacks): Handle coroutines in before/after_agent_invocation by @daavoo in https://github.com/mozilla-ai/any-agent/pull/904 Full Changelog: https://github.com/mozilla-ai/any-agent/compare/1.16.0...1.16.1View on GitHub ↗
FAQ
Should a new project choose AnyAgent or tinyagent?
tinyagent for new projects. AnyAgent is most appropriate when cross-framework execution or evaluation is a specific requirement.What credentials are required?
MISTRAL_API_KEY and also mentions keys such as OPENAI_API_KEY.Does it support MCP or A2A?
How is the Jupyter event-loop error handled?
nest_asyncio and calling nest_asyncio.apply() when RuntimeError: This event loop is already running appears.Is AnyAgent free?
Is AnyAgent open source?
Is AnyAgent safe to use?
Is AnyAgent still maintained?
Who makes AnyAgent?
What is AnyAgent's official website?
Thanks — we use this to improve the page.