ai
Installation
SKILL.md
AI Provider Emulator
Deterministic OpenAI Responses, Chat Completions, and Anthropic Messages emulation. Replies are scripted by rules, not generated by a model, so the same request returns the same answer every run. Use it to test text, streaming, structured output, tool-calling agent loops, reasoning, refusals, stored conversations, errors, mid-stream disconnects, and stalls, offline and without keys.
Start
npx emulate start --service ai --port 4014
A single selected service otherwise uses the base port, normally 4000. In an all-services run, ai listens on port 4014. Startup prints the base URL setup for the service.
| What | URL |
|---|---|
| Base URL for clients | http://localhost:4014/v1 |
| Inspector | http://localhost:4014/ |
| Control routes | http://localhost:4014/_ai/ |
Programmatically: