Vibeleaderboard
← All Intel
Intel / post

Cookbook wires Claude Managed Agents to any UI via AG-UI

Source
x.com
Date
ClaudeDevs@ClaudeDevs

Claude Managed Agents can power many different UIs. Our new cookbook pairs Claude Managed Agents with AG-UI, @CopilotKit's open Agent-User Interaction Protocol.

Context

The example shows how a developer can keep their own chat interface while Anthropic runs the behind it. Claude Managed Agents is Anthropic's hosted service in which Anthropic runs the and its container. AG-UI is an open, event-based protocol, which grew out of CopilotKit's work, for passing agent state, tool activity and user interactions between an agent backend and a frontend, so each pairing does not need a custom connection (AG-UI docs).

In Anthropic's quickstart for this pairing, an adapter package translates between Managed Agents and AG-UI. Each chat thread maps to one managed session, so the agent remembers the conversation, and replies, tool activity and interrupts stream to the CopilotKit interface. The demo agent is a personal finance assistant that draws interactive charts, such as growth projections and budget breakdowns, inside the chat.

The quickstart is a demo pattern rather than production code. Its README says the thread-to-session map lives in memory, so a server restart starts fresh sessions, and that the chat endpoint has no authentication while every message spends API credits. It also requires an organization with 30-day data retention because its default model is not available under zero data retention.

Terms in this piece · Glossary
  • AI agent — An AI system that doesn't just answer once but works toward a goal in a loop — taking actions, reading the results, and deciding what to do next.
  • agentic loop — The cycle an agent runs in: decide, call a tool, read the result, decide again — repeating until the goal is met or a stop condition fires.
More from ClaudeDevs
Recommended reads
Comments

Checking sign-in…

Loading comments…