AnyAgent

A unified Python interface for running and evaluating several agent frameworks.

Stars
★ 1.3k
Last updated
1mo ago
License
Apache-2.0
Primary language
Python

At a glance

How it runs
Library / SDKFramework
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
Python 3.11+Shell / CLINetwork accessMCP Server
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)

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.

  1. A Python team that needs one creation and execution pattern across supported frameworks such as TinyAgent, Google ADK, and LangChain.
  2. A developer building an evaluation workflow for a web-search agent and comparing three evaluation methods.
  3. An application developer who needs to integrate Model Context Protocol tools into an agent.
  4. A team that wants to serve an agent with A2A or use one agent as a tool for another agent.
  5. 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_KEY YOUR_KEY_HERE OPENAI_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_webpage
agent = 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?

Pros
  • Uses AnyAgent.create() and AgentConfig as 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.
Limitations
  • 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?

FollowAgents source review · FARS-2.1
Major gaps
58/ 100 5-point scale 2.9 / 5
Trust 7/29
Reliability 8/14
Adaptability 15/18
Convention 13/18
Effectiveness 10/13
Verifiability 5/8
Why each dimension lost points
Trust7 / 29 · 1.2/5

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.

Reliability8 / 14 · 2.9/5

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.

Adaptability15 / 18 · 4.2/5

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.

Convention13 / 18 · 3.6/5

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.

Effectiveness10 / 13 · 3.8/5

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.

Verifiability5 / 8 · 3.1/5

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.

Risks and how to mitigate them
  • 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.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision a469723ac4a0
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/any-agent.svg)](https://followagents.com/en/agents/any-agent)
<a href="https://followagents.com/en/agents/any-agent"><img src="https://followagents.com/badge/any-agent.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. 1.18.0
    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.0
    View on GitHub ↗
  2. 1.17.0
    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.0
    View on GitHub ↗
  3. 1.16.1
    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.1
    View on GitHub ↗

FAQ

Should a new project choose AnyAgent or tinyagent?
The repository recommends tinyagent for new projects. AnyAgent is most appropriate when cross-framework execution or evaluation is a specific requirement.
What credentials are required?
Set the API key for the model provider you use. The example uses MISTRAL_API_KEY and also mentions keys such as OPENAI_API_KEY.
Does it support MCP or A2A?
Yes. The README links to cookbooks for an MCP agent, serving an agent with A2A, and building A2A multi-agent systems.
How is the Jupyter event-loop error handled?
The README recommends importing nest_asyncio and calling nest_asyncio.apply() when RuntimeError: This event loop is already running appears.
Is AnyAgent free?
The software is free, but AnyAgent calls an AI model, and you pay that model provider for usage (or run a local model).
Is AnyAgent open source?
Yes. The source code is on GitHub (mozilla-ai/any-agent) under the Apache-2.0 licence.
Is AnyAgent safe to use?
FollowAgents' FARS review (Nov 08, 2026) scored AnyAgent 7/29 on trust and safety. The review did not find these safety controls in the source: confirmation before acting, rollback or recovery path. Before giving it real accounts or data: Turn on (or add) a confirmation step before it acts, and try it in a sandbox or test environment before real data.
Is AnyAgent still maintained?
Development has slowed: the latest commit on GitHub is from 2026-09-21, within the last six months but not the last 30 days. The latest release is 1.18.0 (2026-02-18).
Who makes AnyAgent?
AnyAgent is published on GitHub by the account mozilla-ai. FollowAgents has not verified which person or company is behind that account.
What is AnyAgent's official website?
The project's GitHub repository lists https://docs.mozilla.ai/any-agent as its website. That link is set by the repository owner; the source code itself is on GitHub (mozilla-ai/any-agent).
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.