Keep your stack.
Connect your models and MCP tools. Call your agents over HTTP from the product you already have.
Cereal runs your agents: model calls, tool coordination, and durable sessions. Your tools and hooks shape what happens along the way.
Your models. Your keys.Bring the providers you already use.
Your tools stay with you.Connect your own tools over MCP.
Your logic, in the loop.Shape execution with hooks.
Start a session. Cereal drives the model-and-tool loop, calling your application where you want control.
Your application sends a task over HTTP. The session pins an agent version and records the conversation.
Cereal builds the prompt from session history, calls your configured model, and records its response and usage.
For a gated tool call, Cereal asks your hook what to do. Allowed calls go to the connected tool; its result returns to the session.
The next model call uses the tool results. Cereal continues until the turn finishes, waits for a decision, or reaches a configured limit.
Stream the response to your UI and subscribe to durable events with hooks. Inspect model calls, tool results, and usage in the console.
The session keeps its history, ready for the next message.
An illustration of execution, with no live model or tool calls.
Your tool and hook handlers stay in your application. Cereal runs the session.
HTTP API · MCP tools · Durable sessions · Event streams
Use the HTTP API from your stack, or the TypeScript SDK for application helpers. Explore the architecture
Connect your models and MCP tools. Call your agents over HTTP from the product you already have.
Version your instructions, set limits, and use hooks to apply your own rules during execution.
Inspect model calls, tool results, and usage in one session trace.
Bring your model key. Make your first agent.