Back to Copilotkit

Channels Agent Setup

showcase/integrations/agno/docs/setup/channels-agent-setup.mdx

1.64.2797 B
Original Source

Follow the Agno quickstart to configure your agent. For its Use an existing agent path, start the main.py application:

bash
uv run main.py

If you chose the CLI starter instead, keep its npm run dev process running.

Agno exposes its main agent at this exact AG-UI endpoint:

dotenv
AGENT_URL=http://localhost:8000/agui

Install the HTTP adapter in the Channels process:

bash
npm install @ag-ui/[email protected]

Create a new HTTP adapter for every channel thread:

ts
import { HttpAgent } from "@ag-ui/client";

export function makeAgent(threadId: string) {
  const agent = new HttpAgent({ url: process.env.AGENT_URL! });
  agent.threadId = threadId;
  return agent;
}