AgentRoute SDK
Build agents in Python.
The AgentRoute SDK turns plain Python functions into AI agents with tools, memory, and structured output — on any OpenAI-compatible model. Start with three lines.
weather.pypython
from agentroute import Agent
agent = Agent("weather-bot", model="claude-sonnet-4")
@agent.tool
def get_weather(city: str) -> str:
"""Get the current weather for a city."""
return "Sunny, 22C"
print(agent.run("What's the weather in Zurich?"))Explore the docs
Everything you need to ship.
Getting started
Install the SDK and ship your first agent in minutes.
Concepts
Agents, tools, memory, history, structured output, and models.
Guides
Task-oriented walkthroughs for real-world agents.
SDK reference
Complete reference for every public class and function.
CLI reference
Authenticate, deploy, and inspect agents from your shell.
Examples
Runnable example agents you can copy and adapt.
Resources
Changelog, FAQ, and what's on the roadmap.
Ready to build?
Install the SDK and have a live agent answering in five lines of Python.