CopilotKit open-sourced LLMock, a deterministic mock LLM server with provider-style SSE streaming and tool-call injection. Use it to run repeatable CI and agent tests without spending live model budget.

LLMock is a local mock server for LLM-powered applications, not just a library stub. In CopilotKit’s launch post, the core promise is a “real HTTP server that works across all your processes,” which means app code, background workers, and tests can all point at the same fake provider endpoint.
The linked project docs say the server is fixture-driven and deterministic, with support for substring matching, regex routing, and custom predicates against full request context. That gives teams a way to model prompt-specific behavior while keeping test outputs stable across CI runs.
The most practical detail in CopilotKit’s feature list is support for “authentic SSE streaming in real provider formats.” That makes LLMock more useful than a plain response recorder for apps that render partial tokens, stream UI updates, or depend on provider-style event sequencing.
CopilotKit also says LLMock can inject tool calls for agent testing tool-call support, and the project docs add error injection plus request journaling. Together, that covers three common failure points in production AI systems: tool invocation paths, transport-level streaming behavior, and resilience testing around rate limits or outages. A reposted note from the team says the internal version “started saving us money on API costs” before being open-sourced team repost.
✨ Introducing LLMock: A deterministic mock LLM server for testing Test your AI powered apps reliably, without burning money on real API calls or fighting non-deterministic outputs in CI. Open-sourced for the community. llmock.copilotkit.dev
What you get: → A real HTTP server that works across all your processes → Authentic SSE streaming in real provider formats → Fixture-based routing with substring, regex, and predicate matching → Tool call injection for testing agent workflows ...and much more Get started Show more