Skip to main content
Get up and running with Agentor by building a simple weather agent and then exploring more advanced features.

Prerequisites

Before starting, make sure you have:
  • Python 3.10 or higher installed
  • An API key for an LLM provider (OpenAI, Anthropic, or Google)

Installation

1

Install Agentor

Install Agentor using pip:
2

Set up your API key

Set your LLM provider API key as an environment variable:

Build your first agent

Create a simple weather agent that can answer questions about the weather:
The get_weather tool is a built-in tool that uses the WeatherAPI.com service. You’ll need to set the WEATHER_API_KEY environment variable to use it.

Run with streaming

See agent responses in real-time with streaming:

Add custom instructions

Guide your agent’s behavior with custom instructions:

Use multiple tools

Combine multiple tools to create more capable agents:

Serve as an API

Turn your agent into a REST API with a single line:
This creates a FastAPI server with these endpoints:
  • POST /chat - Send messages to the agent
  • GET /.well-known/agent-card.json - A2A protocol agent card

Query the API

Use curl to interact with your agent API:

Deploy to production

Deploy your agent to Celesto AI’s serverless platform:
1

Install the Celesto CLI

The CLI is included with Agentor:
2

Create your agent file

Save your agent code to a Python file (e.g., agent.py):
3

Deploy

Deploy your agent with a single command:
Your agent will be available at:

Use different LLM providers

Agentor supports multiple LLM providers through LiteLLM:

Configure model parameters

Fine-tune model behavior with ModelSettings:

Next steps

Now that you’ve built your first agent, explore more advanced features:

Building agents

Learn advanced agent patterns and best practices

Custom tools

Create custom tools for your agents

MCP servers

Build MCP servers with LiteMCP

Agent communication

Enable agent-to-agent communication with A2A protocol
Last modified on May 28, 2026