Agentor logo

Agentor

Organization
CelestoAI

Open source version of Claude Managed Agents. Fastest way to build and deploy reliable AI agents, MCP tools and agent-to-agent.

PublisherCelestoAI
Repositoryagentor
LanguagePython
Forks
45
Stars
211
Available tools
0
Transport typestdio
LicenseApache-2.0
Links
  • Connect tools to AI workflows

    Agentor exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    211 stars and 45 forks from the linked repository.

PyPI version Tests PyPI - Downloads License: Apache 2.0

Features

FeatureDescriptionDocs
🚀 MCP & tool securityThe only full FastAPI compatible MCP Server with decorator APILink
🦾 Agent-to-agentMulti-agent communicationLink
📊 ObservabilityAgent tracing and monitoringLink
💾 Durable runsPersist, resume, and fork agent runsDurable runs docs
🔍 Tool Search APIReduced tool context bloatLink

🚅 Quick Start

Installation

The recommended method of installing agentor is with pip from PyPI.

bash
pip install agentor

This installs the v0.1.0 line, built on Agentor's own agent engine — durable, forkable runs included.

Tools with heavy or vendor-specific dependencies ship as extras, so the base install stays small:

bash
pip install "agentor[google]"   # GmailTool, CalendarTool
pip install "agentor[all]"      # every optional tool

Available extras: google, exa, git, github, slack, postgres, scrapegraph, all.

You can also install the latest bleeding edge version (could be unstable) of agentor, should you feel motivated enough, as follows:

bash
pip install git+https://github.com/celestoai/agentor@main

Build and Serve an Agent

Build an Agent, connect external tools or MCP Server and serve as an API in just a few lines of code:

python
from agentor.tools import GetWeatherTool
from agentor import Agentor

agent = Agentor(
    name="Weather Agent",
    model="gpt-5-mini",  # Use any LLM provider - gemini/gemini-2.5-pro or anthropic/claude-3.5
    tools=[GetWeatherTool()]
)
result = agent.run("What is the weather in London?")  # Run the Agent
print(result)

# Serve Agent with a single line of code
agent.serve()

Any OpenAI-compatible provider

Point base_url at any provider that speaks OpenAI's /chat/completions — OpenRouter, Groq, Together, Fireworks, DeepSeek, vLLM, Ollama, or Anthropic's and Gemini's compatible endpoints — with no extra dependency:

python
agent = Agentor(
    name="Assistant",
    model="openrouter/auto",
    base_url="https://openrouter.ai/api/v1",
    api_key=os.environ["OPENROUTER_API_KEY"],
)

Run the following command to query the Agent server:

bash
curl -X 'POST' \
  'http://localhost:8000/chat' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "input": "What is the weather in London?"
}'

agent.serve() gives you an ordinary ASGI app, so host it wherever you already run Python services.

Durable Runs

Give the agent a store and every run becomes an append-only event log that survives process death. Resume an interrupted run, or fork any persisted run — even a completed one — into a new, independent run that keeps the full trace, the model's reasoning included when the provider returns it:

python
from agentor import Agentor
from agentor.engine.store import FileStore

agent = Agentor(name="Assistant", model="gpt-5-mini", store=FileStore("runs"))

result = agent.run("Draft a launch plan")   # persisted under result.run_id
# Interrupted mid-run? agent.resume(result.run_id) picks up where it left off.

fork = agent.fork(result.run_id, "Make it punchier")  # fork.run_id is a new run; parent untouched

fork and resume have async twins, afork and aresume.

Tracing

Tracing is off unless you ask for it. A trace carries prompts, tool arguments, tool results, and the model's reasoning when a provider returns it — so nothing leaves your process by default.

Turn it on for an agent:

python
agent = Agentor(name="Assistant", enable_tracing=True)   # needs CELESTO_API_KEY

Or decide per run:

python
agent.run("public question")
agent.run("contains customer data", tracing=False)  # this run sends nothing
agent.run("debug this", tracing=True)               # trace just this one

tracing= is accepted by run, arun, chat and stream_chat. View traces at celesto.ai/observe.

Agent Skills

Skills are folders of instructions, scripts, and resources that Claude loads dynamically to improve performance on specialized tasks.

Agent Skills help agents pull just the right context from simple Markdown files. The agent first sees only a skill’s name and short description. When the task matches, it loads the rest of SKILL.md, follows the steps, and can call a shell environment to run the commands the skill points to.

  • Starts light: discover skills by name/description only
  • Loads on demand: pull full instructions from SKILL.md when relevant
  • Executes safely: run skill-driven commands in an isolated shell

Skill layout example:

example-skill/
├── SKILL.md        # required instructions + metadata
├── scripts/        # optional helpers the agent can call
├── assets/         # optional templates/resources
└── references/     # optional docs or checklists

Using a skill to create a GIF:

python
from agentor.tools import ShellTool
from agentor import Agentor

agent = Agentor(
    name="Assistant",
    model="gemini/gemini-3-flash-preview",
    instructions="Your job is to create GIFs. Lean on the shell tool and any available skills.",
    skills=[".skills/slack-gif-creator"],
    tools=[ShellTool()],
)

async for chunk in await agent.chat("produce a cat gif", stream=True):
    print(chunk)

Create an Agent from Markdown

Bootstrap an Agent directly from a markdown file with metadata for name, tools, model, and temperature:

markdown
---
name: WeatherBot
tools: [get_weather]
model: gpt-4o-mini
temperature: 0.3
---
You are a concise weather assistant.

Load it with:

python
from agentor import Agentor

agent = Agentor.from_md("agent.md")
result = agent.run("Weather in Paris?")

Build a custom MCP Server with LiteMCP

Agentor enables you to build a custom MCP Server using LiteMCP. You can run it inside a FastAPI application or as a standalone MCP server.

python
from agentor.mcp import LiteMCP, get_token

mcp = LiteMCP(name="my-server", version="1.0.0")

@mcp.tool(description="Get weather for a given location")
def get_weather(location: str) -> str:

    # *********** Control authentication ***********
    token = get_token()
    if token != "SOME_SECRET":
        return "Not authorized"

    return f"Weather in {location}: Sunny, 72°F"

mcp.serve()

LiteMCP vs FastMCP

Key Difference: LiteMCP is a native ASGI app that integrates directly with FastAPI using standard patterns. FastMCP requires mounting as a sub-application, diverging from standard FastAPI primitives.

FeatureLiteMCPFastMCP
IntegrationNative ASGIRequires mounting
FastAPI Patterns✅ Standard⚠️ Diverges
Built-in CORS✅❌
Custom Methods✅ Full⚠️ Limited
With Existing Backend✅ Easy⚠️ Complex

📖 Learn more

Agent-to-Agent (A2A) Protocol

The A2A Protocol defines standard specifications for agent communication and message formatting, enabling seamless interoperability between different AI agents.

Key Features:

  • Standard Communication: JSON-RPC based messaging with support for both streaming and non-streaming responses
  • Agent Discovery: Automatic agent card generation at /.well-known/agent-card.json describing agent capabilities, skills, and endpoints
  • Rich Interactions: Built-in support for tasks, status updates, and artifact sharing between agents

Agentor makes it easy to serve any agent as an A2A protocol.

python
from agentor import Agentor

agent = Agentor(
    name="Weather Agent",
    model="gpt-5-mini",
    tools=["get_weather"],
)

# Serve agent with A2A protocol enabled automatically
agent.serve(port=8000)
# Agent card available at: http://localhost:8000/.well-known/agent-card.json

Any agent served with agent.serve() automatically becomes A2A-compatible with standardized endpoints for message sending, streaming, and task management.

📖 Learn more

🤝 Contributing

We'd love your help making Agentor even better! Please read our Contributing Guidelines and Code of Conduct.

📄 License

Apache 2.0 License - see LICENSE for details.


Use Agentor MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Agentor is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Agentor as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Agentor MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "agentor": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Agentor MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Agentor MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Agentor to help me with this task?
Agentor
Sure. I read it.
Here is what I found using Agentor.

Frequently asked questions

What is the Agentor MCP server used for?

Agentor is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Agentor MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Agentor with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Agentor MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Agentor connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Agentor MCP to TypingMind?

Agentor runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Agentor MCP provide in TypingMind?

Agentor exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Agentor MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Agentor requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇