What we’re building
In this quickstart, you’ll create a simple Agent that can understand and respond to questions. You’ll see it work in seconds, then learn how to make it production-ready. Agents are programs where a language model controls the flow of execution.Step 1: Install and configure
1
Install Agno
Install Agno and your model provider SDK:
You can use any model provider. For Claude, install
anthropic instead of openai. See all supported models.2
Set your API key
Get your API key from your model provider and set it as an environment variable:
For Claude, use
ANTHROPIC_API_KEY instead. On Windows, you may need to restart your terminal after setting the environment variable.Step 2: Create your first Agent
Create a file calledagent.py:
agent.py
Step 3: Run your Agent
You’ve successfully created and run your first Agent. In just a few lines of code, you have a working agent that can understand questions and generate responses.
What’s next?
Now that you have a working agent, here are some ways to extend it:Add tools
Give your agent access to external tools via MCP (Model Context Protocol). MCP enables your agent to interact with external systems through a standardized interface. In this example, we’ll use the Agno MCP server:agent.py
Add short-term memory
Store conversation history in a database:agent.py
Deploy as an API
Turn your agent into a production-ready API using AgentOS. Update youragent.py:
agent.py
Connect to AgentOS Control Plane
Agno provides a web interface called the AgentOS Control Plane that connects to your AgentOS. Use it to monitor, manage and test your agentic system.- Open os.agno.com and sign in to your account
- Click “Add new OS” in the top navigation bar
- Select “Local” to connect to a local AgentOS running on your machine
- Enter the endpoint URL (default is
http://localhost:8000) - Give your AgentOS a descriptive name and click “Connect”
Chat with your Agent
Once connected, go to theChat section in the sidebar and select your Agent. You can now interact with your agent through the web interface!
Next steps
- Explore building agents with more features
- Check out examples for inspiration
- Read the full documentation to dive deeper