Quickstart
Turn your ADK Agents into an agent-native application in 10 minutes.
Start with your coding agent
Use this prompt to connect your Google ADK 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:
- A Google Gemini API key
- Node.js 20+
- Python 3.12+
- uv
- Your favorite package manager
Getting started
Set up CopilotKit Intelligence
Sign in to cloud-hosted Intelligence. Cloud-hosted setup uses a server-side project API key and does not issue COPILOTKIT_LICENSE_TOKEN. 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 ADK agent.
Run our CLI
npx copilotkit@latest createThe CLI walks you through:
- Project name
- CopilotKit Intelligence: persistent threads and the inspector. Choose Yes to scaffold a project pre-wired for the platform (the CLI walks you through sign-up, or you can create an account first), or No for a standard ADK setup.
- Framework: pick ADK when prompted.
Install dependencies
npm installConfigure your environment
Create a .env file in your agent directory and add your Google API key:
GOOGLE_API_KEY=your_google_api_keyWhat about other models?
The starter template is configured to use Google's Gemini by default, but you can modify it to use any language model supported by ADK.
Start chatting
Your AI agent is now ready to use. Navigate to localhost:3000 and start prompting it:
Set the theme to orangeWrite a proverb about AIGet the weather in SF- 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 Google API key is correctly set
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:
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.
How is this guide?