#AG UI without copilot-kit for production use

1 messages · Page 1 of 1 (latest)

spice crow
#

Hello ! so I came across this point in docs.
https://docs.ag-ui.com/quickstart/clients#when-to-use-a-client-implementation

Building your own client is useful if you want to explore/hack on the AG-UI protocol. For production use, use a full-featured client like CopilotKit.

What other full-featured client is there ? And also any pointers on building custom client for production use ? Thanks !

Agent User Interaction Protocol

Showcase: build a conversational CLI agent from scratch using AG-UI and Mastra

hollow shoalBOT
#

This solution has been AI generated

There are production-ready AG‑UI clients beyond CopilotKit. You can use the HttpAgent from @ag-ui/client (primary production client) and a specialized LangGraphHttpAgent for LangGraph-based agents. For building a custom client for production, extend AbstractAgent and follow the AG‑UI protocol with robust error handling, auth, and performance considerations.

Full‑featured clients

  • HttpAgent (primary production client)
import { HttpAgent } from "@ag-ui/client";
const agent = new HttpAgent({ url: process.env.AGENT_URL || "http://localhost:8000/" });
  • LangGraphHttpAgent (specialized for LangGraph agents)
import { LangGraphHttpAgent } from "@copilotkit/runtime";
const agent = new LangGraphHttpAgent({ url: process.env.LANGGRAPH_URL });

Building a custom client for production

  • Start from AbstractAgent and implement the protocol-compliant methods.
  • Add robust error handling, retries, and state sync.
  • Support your auth model and consider connection pooling/perf.
import { AbstractAgent } from "@ag-ui/client";

class MyProdAgent extends AbstractAgent {
  async connect() {/* init transport/auth */}
  async send(message) {/* protocol-compliant send */}
  subscribe(handler) {/* event stream handling */}
}

Production tips

  • Environment-based config for URLs/keys.
  • Auth for managed platforms (e.g., LangGraph Platform).
  • Load balancing via multiple endpoints or proxy.

References

Was this helpful?

If this solution worked for you, please click on the appropriate option below to help us improve:

spice crow
#

Are there any examples of AG UI which doesn't use CopilotKit ? I know there is a CLI example in docs, but I am looking for more of a web application example ! thanks ! cc: @stable knoll

hollow shoalBOT
#

Hi @spice crow, I don't have one readily available, but let me check with the team to see if we have something like that or can point you in the right direction.

#

I see you've already found the GitHub issue discussing this! Sharing the link here for anyone else who will be visiting this thread: #291

GitHub

Hi, I'm trying to use agi-ui / copilotkit without a next.js in the middle, but I didn't find any example with this configuration. My goal is: backend in python with langchain/langgraph or c...

spice crow
#

Hi @stable knoll while that was helpful, i am more concerned about this point in the docs

Building your own client is useful if you want to explore/hack on the AG-UI protocol. For production use, use a full-featured client like CopilotKit

Since we are evaluating this for the org i am working at.

So thought if we have any official example it would be easy to refer and get an idea of what actually meets the production requirements.