· Now available

Read the announcement
Copilot Kit Logo

Connect any agent
to any user.

The Enterprise Agentic Frontend Stack. Build rich agentic applications that learn from every interaction. Self-hostable and built to scale with your org.

Claude Agent SDKOpenAI Agents SDKLangChainGoogle ADKAWS StrandsMastraWebSlackTeamsiOSAndroidWhatsAppCopilotKitAG-UI

Trusted by the majority of the Fortune 500s and Global 50.

Cisco
Apple
Walmart
Disney
Bank of America
Deutsche Telekom
Tesla
Ford
Toyota
Honda
Boeing
Salesforce
Intel
HP
Dell
AT&T
Comcast
Wells Fargo
Citi
Mastercard
Costco
Nike
Shell
General Electric
Booking.com
FedEx
UPS
Tripadvisor
UKG
Docusign
McDonald's
SoundCloud

The company behind AG-UI, the Agent-User Interaction protocol.
First party integrations from the leading agent stacks.

Google
Microsoft
Amazon
LangChain
Oracle
Mastra
Pydantic AI
Agno
Tavily
TanStack
Daytona
LlamaIndex
CrewAI
AG2
Tako
Zencoder

Build rich agentic applications for any surface.

and much more 
// pre-built chat, styled with your CSS
<CopilotChat agentId="support"
  className="acme-chat" />

// or swap any subcomponent via slots
<CopilotChat
  messageView={AcmeMessages}
  input={AcmeInput} />

// or fully headless
const { agent } = useAgent();
{agent.messages.map((m) => (
  <AcmeBubble key={m.id}>{m.content}</AcmeBubble>
))}
// Controlled generative UI
useComponent({
  name: "showRefundStatus",
  description: "Show a refund status card.",
  parameters: z.object({
    orderId: z.string(),
    amount: z.number(),
    method: z.string(),
  }),
  // your component, your design system
  render: RefundStatusCard,
});

const RefundStatusCard = ({ orderId, amount }) => (
  <Card>…</Card>  // breakdown pie, your design system
);
useHumanInTheLoop({
  name: "chooseRefundMethod",
  parameters: z.object({ orderId: z.string() }),
  render: ({ respond }) => (
    <RefundMethodChoice
      options={["original card", "store credit"]}
      allowCustomAnswer
      onChoose={(answer) => respond?.(answer)}
    />
  ),
});
const handler = createCopilotRuntimeHandler({
  runtime,
  hooks: {
    onRequest: ({ request }) => {
      const jwt = request.headers.get("authorization");
      const user = verifyJwt(jwt);
      if (!user)
        throw new Response(null, { status: 401 });
      // agent runs are tied to this user
    },
  },
});
useFrontendTool({
  name: "selectOrder",
  description: "Open an order in the dashboard.",
  parameters: z.object({ orderId: z.string() }),
  handler: async ({ orderId }) => {
    openOrder(orderId);  // your app code
    return { status: "selected", orderId };
  },
});
const { agent } =
  useAgent({ agentId: "support" });

// read the agent's shared state
agent.state.focus  // "refunds"

// write it, the agent sees the change
agent.setState({ ...agent.state, focus: "returns" });
+4 more
ImageReactImageAngularImageVue
ImageSlack
Acme Inc
# support · thread
DK
Dana K.2:13 PM
Customer in the ticket queue is asking about a refund on order #4821, can someone take a look?
Refund AgentAPP2:14 PM
Customer asked about order #4821. Policy allows a full refund, @dana needs to approve amounts over $50.
agent · via ag-ui
Refund approved: $86.40 back on your Visa, 3 - 5 days.
Item$61.20
Shipping$16.80
Tax$8.40
Human_Approval
Refund #4821 is above your $50 auto-limit.
Approve full $86.40
Approve $69.60, keep shipping
Or reply with a note…
What card did they pay with?
agent · via ag-ui
Full card numbers aren’t in your permissions. I can share the last 4: ·· 4242.
How many people are in this channel, and how many are in PT?
agent · via ag-ui
23 members in #support. 9 of them are in Pacific Time.
channel.members read from Slack context · TOOL_CALL
agent · via ag-ui
Dana approved this from her phone. The thread updated the moment she did.
STATE_DELTA · synced across devices
✓ 2+1 3
3 replies · today at 2:16 PM
DK
Dana K.2:16 PM
Approved. Refund is on its way to the customer.
DK
Dana K.2:13 PM
Analyze our Q3 vendor spend
Vendor AgentAPP2:14 PM
agent · via ag-ui
Parsed 47 vendors. Top spend:
AWS$52.4k
Salesforce$31.2k
Datadog$12.8k
Figma$8.9k
Other$78.9k
DK
Dana K.2:15 PM
Use the updated spreadsheet insteadq3-vendors.xlsx2.1 MB
Reply in thread…
ImageReact
app.acme.com/ordersapp.acme.com/expenses
Expenses
Top 10 · by amountLast 30 daysadded by agent
AWS · Compute$12,400
Salesforce · Licenses$8,150
Datadog · Observability$3,900
Snowflake · Storage$2,750
Figma · Seats$1,240
Linear · Seats$890
4 more…
Where's my refund? Order #4821
agent · via ag-ui
Refund approved: $86.40 back on your Visa, 3 - 5 days.
Item$61.20
Shipping$16.80
Tax$8.40
Human_Input
How should we send your $86.40?
Original card · Visa ·· 4242
Store credit, instant
Or type something else…
Can you open order #7130 too?
agent · via ag-ui
Order #7130 isn’t on your account, so I can’t open it. Ask about one of your orders.
Show the 10 most expensive charges this month
agent · via ag-ui
I can filter the Expenses page down to those. Take you there?
Yes, take me thereStay here
agent · via ag-ui
Here you are. AWS alone is over a third of the month.
agent · via ag-ui
You approved this on your phone a minute ago. Everything here is already up to date.
STATE_DELTA · synced across devices
Ask anything…
Analyze our Q3 vendor spend
agent · via ag-ui
Parsed 47 vendors. Top spend:
AWS$52.4k
Salesforce$31.2k
Datadog$12.8k
Figma$8.9k
Other$78.9k
Anything we’re overpaying for?
Datadog looks high for your usage, and 3 licenses appear unused.
Use the updated spreadsheet insteadq3-vendors.xlsx2.1 MB
ImageiOS
9:41
Acme Supportagent · online
Where’s my refund? Order #4821
agent · via ag-ui
Refund approved: $86.40 back on your Visa, 3 - 5 days.
Item$61.20
Shipping$16.80
Tax$8.40
Human_Input
How should we send your $86.40?
Original card · Visa ·· 4242
Store credit, instant
Or type something else…
Can you open order #7130 too?
agent · via ag-ui
Order #7130 isn’t on your account, so I can’t open it. Ask about one of your orders.
refund.issue executed in-app · TOOL_CALL
agent · via ag-ui
You started this on the web dashboard. The conversation carried over, mid-run.
STATE_DELTA · synced across devices
Analyze our Q3 vendor spend
agent · via ag-ui
Parsed 47 vendors. Top spend:
AWS$52.4k
Salesforce$31.2k
Datadog$12.8k
Figma$8.9k
Other$78.9k
Use the updated spreadsheet insteadq3-vendors.xlsx2.1 MB
Message
ImageAndroid
9:41
Acme Supportagent · online
Where’s my refund? Order #4821
agent · via ag-ui
Refund approved: $86.40 back on your Visa, 3 - 5 days.
Item$61.20
Shipping$16.80
Tax$8.40
Human_Input
How should we send your $86.40?
Original card · Visa ·· 4242
Store credit, instant
Or type something else…
Can you open order #7130 too?
agent · via ag-ui
Order #7130 isn’t on your account, so I can’t open it. Ask about one of your orders.
refund.issue executed in-app · TOOL_CALL
agent · via ag-ui
You started this on the web dashboard. The conversation carried over, mid-run.
STATE_DELTA · synced across devices
Analyze our Q3 vendor spend
agent · via ag-ui
Parsed 47 vendors. Top spend:
AWS$52.4k
Salesforce$31.2k
Datadog$12.8k
Figma$8.9k
Other$78.9k
Use the updated spreadsheet insteadq3-vendors.xlsx2.1 MB
Message
ImageTeams
Refunds · General · Acme Inc
DK
Dana K. · 2:13 PM
Where's the refund for order #4821?
Refund Agent · 2:14 PM
agent · via ag-ui
Refund approved: $86.40 back on your Visa, 3 - 5 days.
Item$61.20
Shipping$16.80
Tax$8.40
Refund #4821 needs a decision
Amount is above the $50 auto-limit.
Approve full $86.40
Approve $69.60, keep shipping
Or reply with a note…
What card did they pay with?
agent · via ag-ui
Full card numbers aren’t in your permissions. I can share the last 4: ·· 4242.
How many people are in this team, and how many are in PT?
agent · via ag-ui
12 members in Refunds · General. 5 of them are in Pacific Time.
team.roster read from Teams context · TOOL_CALL
agent · via ag-ui
Approved from mobile just now. This thread is already up to date.
STATE_DELTA · synced across devices
DK
Dana K. · 2:13 PM
Analyze our Q3 vendor spend
Vendor Agent · 2:14 PM
agent · via ag-ui
Parsed 47 vendors. Top spend:
AWS$52.4k
Salesforce$31.2k
Datadog$12.8k
Figma$8.9k
Other$78.9k
DK
Dana K. · 2:15 PM
Use the updated spreadsheet insteadq3-vendors.xlsx2.1 MB
Type a message

Built for the enterprise.

Open-source core, commercial runtime, one interaction layer. Adopt it team by team while conversations stay continuous across sessions and surfaces.

Built for SaaS copilots in customer-facing products and productivity copilots across internal tools, Slack, Teams, mobile, and messaging.

Own your data and security

Self-host both the open-source SDK and the enterprise runtime. Nothing leaves your infrastructure.

Future-proof: any agent stack

AG-UI works with the stacks your teams use today, and whatever they adopt next.

Stateful threads

Persist messages, application state, tool calls, and approvals so users can resume or branch without losing context.

Continuous improvement

Use observed outcomes and human feedback to improve prompts, routing, workflows, and UI behavior while you own the learning loop.

Product analytics for agentic products.

See what works, what stalls, and which surfaces need better interaction design. Every event stays tied to outcomes, tags, and the user surface where it happened.

Departures · interaction analyticssample feed · 214 events
Web99.2%on time
Slack3m 40son time
Teams91%on time
iOS48son time
Android11%delayed
WhatsApp210mson time

Interaction trace · one run, stop by stop

user requeststate deltatool callui renderhuman approvaloutcome

Self-learning loops without giving up the data.

Feed observed interaction patterns into evals, routing, instructions, and UI behaviors. The product gets better with every real user interaction, and your team owns the learning loop.

01

Capture

Typed events preserve intent, state, tool use, and UI response.

02

Evaluate

Score outcomes by task, tag, segment, and surface.

03

Improve

Promote better prompts, workflows, and UI patterns.

04

Ship

Deploy improvements back across web, mobile, chat, and messaging.

Built with teams shipping agentic products.

“The CopilotKit SDK has accelerated our development processes and enabled us to help our users accomplish their tasks more quickly and with more confidence.”

Mark Peterson, VP of Software Engineering

Docusign

Docusign

“The AG-UI architecture lets us cleanly decouple our agent framework from the frontend, so we can evolve each independently. The pre-built component library saved us from rolling our own.”

Bryan Godwin, CTO

Evergreen Wealth

Evergreen Wealth

Start building

Enhance your applications
with powerful AI capabilities

Supported frameworks: Google ADK, Microsoft Agent Framework, AI SDK, LangGraph, crewAI, Agno, AWS Strands, AG2, Mastra, LlamaIndex, and Pydantic AI