CopilotKit + Agno

Bring your Agno agentsinto any app

CopilotKit is an open-source framework that connects your app to Agno agents. Give your agents chat, generative UI, human-in-the-loop, AG-UI Streams, Automatic Learning and more.

Quickstart
Chat

Waking up the demo

Talk to your agent in a ready-made chat interface. Open in the showcase

Agno and CopilotKit running together, in the React frontend. Every demo below is the same integration with one capability turned on.

Build with Agno

Agno gives you the agent: a model, tools, memory and a server that runs them. What it does not give you is the surface. Your users need a place to talk to the agent, a view of the run while it works, and a way to step in. Each capability below builds on something your agent already does.

Generative UI

Your agent calls tools and reports progress as it works. CopilotKit streams that to the browser and renders each step as a React component your users watch update while the agent works.

Human-in-the-loop

A frontend tool registered with useHumanInTheLoop renders your own UI, waits for the user's answer, and hands it back to the agent as the tool result.

Shared state

Your agent keeps state between turns on the server. CopilotKit mirrors it into your app and back, so user changes and agent changes go to the same state.

Chat surfaces, headless UI, frontend tools and multi-agent flows work with Agno too. And more

Start building

Scaffold a new app with the CLI, or follow the quickstart to connect the Agno agent you already run.

npx copilotkit@latest init
Read the quickstart

Connect your agent

Your agent keeps running as its own Agno service. The AgnoAgent bridge points CopilotKit at its AG-UI endpoint, so nothing inside the agent changes.

app/api/copilotkit/[[...slug]]/route.ts
import {
  CopilotRuntime,
  createCopilotRuntimeHandler,
} from "@copilotkit/runtime/v2";
import { AgnoAgent } from "@ag-ui/agno";

const runtime = new CopilotRuntime({
  agents: {
    my_agent: new AgnoAgent({ url: "http://localhost:8000/agui" }),
  },
});

const handler = createCopilotRuntimeHandler({
  runtime,
  basePath: "/api/copilotkit",
});

export const GET = handler;
export const POST = handler;
Read the setup guide

How is this guide?