by mozilla-ai
A single interface to use and evaluate different agent frameworks
# Add to your Claude Code skills
git clone https://github.com/mozilla-ai/any-agentany-agent is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by mozilla-ai. A single interface to use and evaluate different agent frameworks. It has 1,265 GitHub stars.
any-agent's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/mozilla-ai/any-agent" and add it to your Claude Code skills directory (see the Installation section above).
any-agent is primarily written in Python. It is open-source under mozilla-ai on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh any-agent against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
A single interface to use and evaluate different agent frameworks.
[!IMPORTANT]
any-agentis in soft deprecation. It started as a research project to compare agent frameworks and refine a minimal common surface. That distillation has graduated to its own package:mozilla-ai-tinyagent(PyPI:mozilla-ai-tinyagent). For new projects we recommend usingtinyagentdirectly.
any-agentcontinues to be published and we'll take security/bug-fix PRs, but no new features are planned. Reach forany-agentwhen you specifically need to run or evaluate agents across multiple frameworks (Agno, Google ADK, LangChain, LlamaIndex, OpenAI Agents SDK, smolagents) under one API. If you only need the core agent loop,mozilla-ai-tinyagentis the leaner path.
Open Github tickets for new frameworks
Refer to pyproject.toml for a list of the options available. Update your pip install command to include the frameworks that you plan on using:
pip install 'any-agent'
To define any agent system you will always use the same imports:
from any_agent import AgentConfig, AnyAgent
For this example we use a model hosted by Mistral, but you may need to set the relevant API key for whichever provider being used. See our Model Configuration docs for more information about configuring models.
export MISTRAL_API_KEY="YOUR_KEY_HERE" # or OPENAI_API_KEY, etc
from any_agent.tools import search_web, visit_webpage
agent = AnyAgent.create(
"tinyagent", # See all options in https://docs.mozilla.ai/any-agent/
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)
[!TIP] Multi-agent can be implemented using Agents-As-Tools.
Get started quickly with these practical examples:
The AI agent space is moving fast! If you see a new agentic framework that AnyAgent doesn't yet support, we would love for you to create a Github issue. We also welcome your support in development of additional features or functionality.
If running in Jupyter Notebook you will need to add the following two lines before running AnyAgent, otherwise you may see the error RuntimeError: This event loop is already running. This is a known limitation of Jupyter Notebooks, see Github Issue
import nest_asyncio
nest_asyncio.apply()