Servers & Frameworks
Serve agents over REST, SSE and WebSocket from Express, Fastify, Hono, Koa, Next.js and Tetsu, or behind the OpenAI and AI SDK interfaces.
+++ 8 recipes +++
Expresseasy5 minYou want your agent behind a REST API with streaming in an existing Express app.Fastifyeasy5 minSame API, but your service runs on Fastify.Honoeasy5 minYou want a small, fetch-based server that you can later move to an edge runtime.Koa with WebSocketeasy5 minYour app is on Koa and clients want a WebSocket as well as REST.Next.js Route Handlereasy10 minYou want a streaming chat endpoint in a Next.js App Router project.Tetsu on Bunmedium15 minYour API runs on Bun with Tetsu. Signed-in users talk to an agent that can only touch their own tasks and threads.OpenAI-Compatible APImedium10 minExisting code uses the OpenAI SDK (Assistants API). You want it to run on Cogitator without rewriting it.Vercel AI SDKmedium10 minYour UI is built on the Vercel AI SDK. You want Cogitator agents as AI SDK models and tools shared both ways.