CopilotKit

Quickstart

Turn your Mastra Agents into an agent-native application in 10 minutes.


Prerequisites#

Before you begin, you'll need the following:

  • An OpenAI API key
  • Node.js 20+
  • 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 Mastra Agent.

🎉 Start chatting!#

Your AI agent is now ready to use! Try asking it some questions:

What tools do you have access to?
What do you think about React?
Show me some cool things you can do!
Troubleshooting
  • If you're having connection issues, try using 0.0.0.0 or 127.0.0.1 instead of localhost
  • Make sure your Mastra agent is running on port 4111
  • Check that your OpenAI API key is correctly set in the .env file

What's next?#

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