Agno Self-Hosted Agent Runtime: Teams and Workflows Explained
Agno is a self-hosted agent runtime with teams and workflows. Learn its three primitives, the AgentOS server, and how to run your own agent platform.
By Galactic News Editorial · Published 2026-11-27T20:18:02+00:00 · Updated 2026-11-27T20:18:02+00:00
Agno is a Python SDK for building agent platforms that you run yourself. The Agno self-hosted agent runtime gives you three primitives, agents, teams, and workflows, plus a runtime called AgentOS that serves them over HTTP from your own infrastructure. This explainer covers the primitives, the self-hosted runtime, and when Agno fits.
Agno's pitch is control. The SDK builds the agents. The AgentOS runtime serves them as a FastAPI application. The data stays in your database. An optional control plane at os.agno.com manages the deployment through a browser, but it calls your AgentOS directly, so the data never moves to a vendor's cloud.
The project was previously known as Phidata. The current docs describe a framework and runtime for building, running, and managing production-grade agent platforms, with an SDK, an AgentOS runtime, and a UI for management.
Agno self-hosted agent runtime: the three primitives
Agno has three primitives. An Agent is a model-driven program with tools and instructions. A Team is multiple agents working together. A Workflow is orchestration across agents, teams, and functions with linear steps, loops, branches, and parallel work.
Use an agent when one model with tools can do the job. Use a team when a model should decide who does what. Use a workflow when the order of work is known in advance. In a workflow, control flow sits in your code, not in a model's decisions. That distinction matters for repeatable processes such as report generation or data pipelines.
Capabilities attach to any primitive. The docs list 30+ model providers behind one API, 100+ tool integrations, structured input and output with Pydantic schemas, memory, knowledge search, guardrails, human-in-the-loop pauses, background execution, evals, observability, and a scheduler. A capability ladder lets a team add features one at a time rather than adopting everything at once.
Teams and workflows in detail
Teams come in several modes. In coordinate mode, a leader delegates tasks to members. Other modes route work or share a task list in session state. The team decides at run time which member handles each part of the job.
Workflows are deterministic pipelines. Each step is an agent, a team, a Python function, or another workflow. Its output becomes the next step's input. Steps support Parallel branches, Condition branches with CEL expressions, Loop repeats until an end condition, and routers. A step that raises an error is retried up to three times by default. Any step can carry human review, which pauses the run until a person continues it.
A first workflow is a short list of steps:
from agno.agent import Agent
from agno.workflow import Step, Workflow
researcher = Agent(name="Researcher", model="openai:gpt-5.5")
writer = Agent(name="Writer", model="openai:gpt-5.5")
pipeline = Workflow(
name="briefing",
steps=[Step(agent=researcher), Step(agent=writer)],
)
AgentOS: serving agents from your own server
AgentOS turns agents, teams, and workflows into a FastAPI application. A minimal setup with one agent, one team, and one workflow exposes about 80 to 95 REST paths for runs, sessions, memories, knowledge, evals, traces, metrics, and schedules, with Server-Sent Events for streaming. The app is an ordinary FastAPI app, so it runs under uvicorn and its interactive docs live at /docs.
Run endpoints take form data, so files can be attached, and streaming is on by default. Agents, teams, and workflows share the same endpoint shapes under /agents, /teams, and /workflows. Runs can be paused, resumed, cancelled, and forked. Sessions and memories live in the database you configure, with SQLite available for local work and Postgres for production.
Optional extras on the same app include an MCP server, chat interfaces for Slack, Telegram, and WhatsApp, JWT authorisation with per-user isolation, a background job queue, and a cron scheduler. Interfaces also cover AG-UI front ends and A2A agents. Authentication uses an OS security key or JWT, and multi-tenant isolation keeps users' data apart.
Getting started
Install with uv pip install -U agno plus the model package and a database driver, for example openai and sqlalchemy. The docs recommend Python 3.12. A minimal agent needs a name, a model, and optionally a database for sessions and memory:
from agno.agent import Agent
from agno.db.sqlite import SqliteDb
workbench = Agent(
name="Workbench",
model="openai:gpt-5.5",
db=SqliteDb(db_file="workbench.db"),
enable_agentic_memory=True,
add_history_to_context=True,
)
Components created in Studio or through the /components API use draft and published versions. Published versions are immutable, and run requests accept a version parameter, so clients can pin to a version while a newer one is tested.
Agno vs other agent frameworks
| Framework | Runtime | Orchestration | Best fit |
|---|---|---|---|
| Agno | Self-hosted AgentOS (FastAPI) | Agents, teams, workflows | Teams that want their own agent platform |
| Strands Agents | Your code, Bedrock default | Model-driven loop | AWS developers wanting a light SDK |
| LangGraph | Your code or LangSmith | Explicit graphs | Fixed workflows with state |
| OpenAI Agents SDK | Your code | Agents and handoffs | OpenAI-first teams |
Agno's difference is the platform layer. Most frameworks give you the agent and leave the serving, sessions, and management to you. Agno ships the runtime, the API, the scheduler, and the control plane as part of the same project. That is more to run, but less to build.
Five steps to run Agno yourself
- Install the SDK. Use uv with Python 3.12 and install agno with your model package.
- Build one agent. Give it a model, a database, and one tool. Test it in a script first.
- Wrap it in AgentOS. Create an AgentOS app, give each component a stable id, and run it with uvicorn.
- Connect a database. Move from SQLite to Postgres before real users arrive.
- Add auth and scheduling. Turn on JWT authorisation and add scheduled runs only after the basics work.
Bottom line
Agno fits developers who want to self-host a whole agent platform, not just an agent. The Agno self-hosted agent runtime covers most designs with its three primitives, and AgentOS supplies the API, sessions, and scheduling that other frameworks leave to the builder. Start with one agent in a script. Add AgentOS when you need to serve it.