# Mock AI app dependencies for deterministic local and CI tests

> Use AiMock when an agent needs reproducible tests around LLM APIs, MCP tools, A2A flows, vector stores, search, or moderation services without depending on live providers.

- Skill: `agentskillexchange/mock-ai-app-dependencies-for-deterministic-local-and-ci-test` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/mock-ai-app-dependencies-for-deterministic-local-and-ci-test`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/mock-ai-app-dependencies-for-deterministic-local-and-ci-test/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/mock-ai-app-dependencies-for-deterministic-local-and-ci-test

---


# Mock AI app dependencies for deterministic local and CI tests

Use AiMock when an agent needs reproducible tests around LLM APIs, MCP tools, A2A flows, vector stores, search, or moderation services without depending on live providers.

## Prerequisites

Node.js; a JavaScript or TypeScript test environment; local or CI access to the app under test; fixture definitions for the providers or protocols you want to mock.

## Installation

Use the upstream install or setup path that matches your environment:
- npm install @copilotkit/aimock
- npx -p @copilotkit/aimock llmock -p 4010 -f ./fixtures
- npx -p @copilotkit/aimock llmock -p 4010 \
- npx @copilotkit/aimock --config aimock.json

Requirements and caveats from upstream:
- process.env.OPENAI_API_KEY = "mock"; // SDK requires a value, even when base URL is mocked
- **[Docker + Helm](https://aimock.copilotkit.dev/docker)** — Container image and Helm chart for CI/CD
- **Zero dependencies** — Everything from Node.js builtins

Basic usage or getting-started notes:
- bash
- typescript
- // The class is still named LLMock for back-compat after the v1.7.0 package

- Source: https://github.com/CopilotKit/aimock
- Extracted from upstream docs: https://raw.githubusercontent.com/CopilotKit/aimock/HEAD/README.md

## Documentation

- https://aimock.copilotkit.dev/

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/mock-ai-app-dependencies-for-deterministic-local-and-ci-tests/)

