Quickstart
Turn your Pydantic AI agent into an agent-native application in 10 minutes.
Prerequisites#
Before you begin, you'll need the following:
- An OpenAI API key
- Node.js 20+
- Python 3.9+
- Your favorite package manager
Getting started#
Create a free account#
Sign up for a free developer account on our Enterprise Intelligence Platform to get a license key. You'll use it later to enable persistent threads, observability, and the inspector.
Choose your starting point#
You can either start fresh with our starter template or integrate CopilotKit into your existing Pydantic AI agent.
🎉 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?Troubleshooting
- If you're having connection issues, try using
0.0.0.0or127.0.0.1instead oflocalhost - Make sure your agent is running on port 8000
- Check that your OpenAI API key is correctly set
- Verify that the
@ag-ui/clientpackage is installed in your frontend
What's next?#
Now that you have your basic agent setup, explore these advanced features:
Implement Human in the Loop
Allow your users and agents to collaborate together on tasks.
Utilize the Shared State
Learn how to synchronize your agent's state with your UI's state, and vice versa.
Add some generative UI
Render your agent's progress and output in the UI.
Setup frontend actions
Give your agent the ability to call frontend tools, directly updating your application.