CopilotKit

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.0 or 127.0.0.1 instead of localhost
  • Make sure your agent is running on port 8000
  • Check that your OpenAI API key is correctly set
  • Verify that the @ag-ui/client package is installed in your frontend

What's next?#

Now that you have your basic agent setup, explore these advanced features: