Documentation — aimock

aimock is the complete mock infrastructure for AI application testing. Start with LLM API mocking, add MCP tools, A2A agents, vector databases, and services as your stack grows. One package. Zero dependencies.

The Suite

Quick Start

I want to mock LLM APIs

import { LLMock } from "@copilotkit/aimock";

const mock = new LLMock();
await mock.start();

mock.onMessage("hello", { content: "Hi there!" });

Quick Start: LLM →

I want to mock my entire AI stack

{
  "llm":    { "fixtures": "./fixtures/llm" },
  "mcp":    { "tools": ["search", "fetch"] },
  "a2a":    { "agents": ["planner"] },
  "vector": { "provider": "pinecone" }
}

Quick Start: aimock suite →