Sign up for a free developer account on our Enterprise Intelligence Platform to get a license key. You'll use it later to enable persistent threads and the inspector.
Update your agent file to expose it as an AG-UI ASGI application:
main.py
from agno.agent import Agentfrom agno.models.openai import OpenAIChatfrom agno.os import AgentOSfrom agno.os.interfaces.agui import AGUIagent = Agent( model=OpenAIChat(id="gpt-5.4"), description="A helpful assistant that can answer questions and provide information.", instructions="Be helpful and friendly. Format your responses using markdown where appropriate.",)agent_os = AgentOS(agents=[agent], interfaces=[AGUI(agent=agent)])app = agent_os.get_app()if __name__ == "__main__": agent_os.serve(app="main:app", port=8000, reload=True)
What is AG-UI?
AG-UI is an open protocol for frontend-agent communication. AgentOS with the AGUI interface creates an ASGI app that CopilotKit can connect to.