Quickstart
Turn your Agno agent into an agent-native application in 10 minutes.
Start with your coding agent
Use this prompt to connect your Agno agent to CopilotKit and verify a working conversation. Your coding agent will follow this guide in your project, or you can work through the manual steps below.
Open your coding agent in your project's folder, or in an empty folder for a new app.This runs in a coding agent on your computer.
Prerequisites
Before you begin, you'll need the following:
- An OpenAI API key
- Node.js 20+
- Python 3.12+
- Your favorite package manager
Getting started
Set up CopilotKit Intelligence
Sign in to cloud-hosted Intelligence. You will connect the app after you create it below.
Choose your starting point
You can either start fresh with our starter template or integrate CopilotKit into your existing Agno agent.
Run our CLI
npx copilotkit@latest createThe CLI walks you through:
- Project name
- CopilotKit Intelligence: persistent threads and the Inspector. Choose Yes for a project that is wired to Intelligence. Choose No for a standard Agno setup.
- Framework: pick Agno when prompted.
Install dependencies
npm installConfigure your environment
Create a .env file in your agent directory and add your OpenAI API key:
OPENAI_API_KEY=your_openai_api_keyWhat about other models?
The starter template is configured to use OpenAI's GPT-6 Luna by default, but you can modify it to use any language model supported by Agno.
Start chatting
Your AI agent is now ready to use. Navigate to localhost:3000 and try asking it some questions:
- Can you tell me a joke?
- Can you help me understand AI?
- What do you think about React?
- The chat shows a connection error. Make sure that the agent runs on port 8000. If it does, use
127.0.0.1instead oflocalhostin the agent URL of your runtime route. - The agent does not answer. Make sure that
OPENAI_API_KEYis set in the environment of the agent. - The frontend build fails with a missing
@ag-ui/agnomodule. Run the install step again in your frontend directory.
Open Inspector and confirm setup
On localhost, click the Inspector button in the corner of the app.
- Open Inspect, then Agent. Your agent is listed.
- Send a chat message. Open Inspect, then AG-UI Events. Events are moving.
- Open Rich Threads. The list is unlocked (Intelligence is on), or locked with Copy setup prompt (Intelligence is off).
More detail: Inspector.
What's next?
Now that you have your basic agent setup, explore these advanced features:
How is this guide?