freshcrate
Home > MCP Servers > any-agent

any-agent

A single interface to use and evaluate different agent frameworks

Description

A single interface to use and evaluate different agent frameworks

README

Project logo

TinyAgent Google ADK LangChain LlamaIndex OpenAI Agents Smolagents Agno AI

Planned for Support (Contributions Welcome!)

Open Github tickets for new frameworks

Requirements

  • Python 3.11 or newer

Quickstart

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://mozilla-ai.github.io/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.

Cookbooks

Get started quickly with these practical examples:

Contributions

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.

Running in Jupyter Notebook

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()

Release History

VersionChangesUrgencyDate
1.18.0## 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.0Low2/18/2026

Dependencies & License Audit

Loading dependencies...

Similar Packages

agentic-codingAgentic Coding Rules, Templates etc...main@2026-04-21
npcpyThe python library for research and development in NLP, multimodal LLMs, Agents, ML, Knowledge Graphs, and more.v1.4.21
mcp-scannerScan MCP servers for potential threats & security findings.4.6.0
aiA productive AI coworker that learns, self-improves, and ships work.main@2026-04-21
comfy-pilot🤖 Create and modify workflows effortlessly with ComfyUI's AI assistant, enabling natural conversations with agents like Claude and Gemini.main@2026-04-21