# API simulation

> API simulation is an open-source agent skill for developer tools. Runs your code against stand-in APIs to test how it handles dependency failures. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/postmanlabs/postman-plugin/tree/main/agent-plugin/skills/api-simulation
- **Repository:** https://github.com/postmanlabs/postman-plugin
- **GitHub stars:** 49
- **License:** Apache-2.0
- **Skill name:** api-simulation
- **Collection:** https://github.com/postmanlabs/postman-plugin
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

API Simulation lets an AI coding agent run services, frontends, tests or demos against stand-ins for their HTTP dependencies instead of the real services. Stand-ins can be served together through a proxy that answers for the dependencies' own hostnames, or on one local port where each member is reached by its route key. Members can be seeded from datasets so responses reflect realistic records.

The skill guides the agent through reusing an existing simulation in a postman/simulations/ directory, building mocks for each dependency, and reading the request log to confirm the dependency path actually ran. It also covers injecting failures such as unreachable hosts, hanging responses, JSON error bodies and HTML error pages, and checking other members for side effects like reserved stock that was never released. A companion context document records assumptions about the dependencies, the evidence behind them and open questions, so later sessions can build on earlier findings.

The workflow relies on the Postman CLI version 1.70.0 or later with the simulation command, and it expects a signed-in CLI when pulling mocks owned by other teams. Commands are run in the background with logs written to files, and the skill notes that simulation runs prove behavior against stand-ins, not the real services.

## When your agent uses it

> Use when you add or change code that calls other services and need to run it, test it, prove a fix or reproduce an upstream failure (timeouts, 5xx, 409, 429) end to end, locally or in CI, without the real services because they're unreachable, need credentials, cost money, have side effects or don't exist yet. Also use it to answer what happens to a request, or the data it writes, when a service it calls is down, slow or erroring ("what happens to a booking if the email service is down?"). Runs services, frontends, tests or demos against stand-ins for their HTTP dependencies, optionally backed by file or database records, served locally or at a deployed URL. A `postman/simulations/` directory is itself a reason to load it, even if nobody says mock or simulation. To give a frontend or another team a stand-in for an API, use postman:api-mocking. Covers `postman simulation`.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/postmanlabs/postman-plugin/tree/HEAD/agent-plugin/skills/api-simulation)
- [License: Apache-2.0](https://github.com/postmanlabs/postman-plugin/tree/HEAD/agent-plugin/skills/api-simulation)

## Features

- **Simulated dependency environments:** Runs a set of mock dependencies together behind a proxy or on a single local port.
- **Failure injection:** Triggers timeouts, JSON errors, HTML error pages and unreachable hosts in dependencies.
- **Request log review:** Reads the newline-delimited JSON log to confirm which dependency calls were made.
- **Dataset-backed mocks:** Seeds stand-ins with records from CSV, JSON, sheet or database datasets.
- **Context record keeping:** Maintains a YAML file of assumptions, evidence and open questions about dependencies.
- **Mock reuse and dependencies:** Pulls other teams' published mocks as dependencies before building new ones.

## Good for

- Test how checkout code behaves when the payment API times out
- Reproduce a 429 or 409 response from an upstream service in an end-to-end run
- Check what happens to a booking if the email service is down
- Run a frontend against stand-ins for its backend APIs during development
- Run API-dependent tests in CI without real credentials or side effects

## Install

### Claude Code

This skill ships in the `postman` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add postmanlabs/postman-plugin
/plugin install postman@postman
```

Or copy only this skill to `~/.claude/skills/api-simulation`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/postmanlabs/postman-plugin.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/api-simulation &&
cp -R "$tmp/agent-plugin/skills/api-simulation" ~/.claude/skills/api-simulation &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/api-simulation` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/api-simulation` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/postmanlabs/postman-plugin.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/api-simulation &&
cp -R "$tmp/agent-plugin/skills/api-simulation" ~/.agents/skills/api-simulation &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/api-simulation` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/api-simulation` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/postmanlabs/postman-plugin.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/api-simulation &&
cp -R "$tmp/agent-plugin/skills/api-simulation" ~/.cursor/skills/api-simulation &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/api-simulation` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/postmanlabs/postman-plugin.git --path agent-plugin/skills/api-simulation
```

Or copy the folder to `~/.gemini/skills/api-simulation` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/api-simulation`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/postmanlabs/postman-plugin.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/api-simulation &&
cp -R "$tmp/agent-plugin/skills/api-simulation" ~/.copilot/skills/api-simulation &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/api-simulation` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/postmanlabs/postman-plugin.git
```

Then copy `postman-plugin/agent-plugin/skills/api-simulation` into your agent's skills folder as `api-simulation`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When should the agent load API simulation?

When code that calls other services needs to run, test or reproduce an upstream failure without the real services, or when a postman/simulations/ directory is present.

### What version of the Postman CLI is required?

Postman CLI 1.70.0 or later is needed for the postman simulation command.

### Does API simulation send requests to the real services?

Under the proxy mode, the code keeps its base URLs and the proxy answers for the dependency hostnames, so the run uses stand-ins rather than the real services.

### Where are simulation results and context stored?

Simulations live in postman/simulations/ with a .sim.yaml file and a .context.yaml file beside it, and the run log is written to a file such as sim.ndjson.

### How do I install API simulation in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/api-simulation to use it in all your projects, or to .claude/skills/api-simulation in one project. Or install the postman plugin, which includes it: /plugin marketplace add postmanlabs/postman-plugin, then /plugin install postman@postman.

### Does API simulation run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use API simulation?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to API simulation?

The closest alternatives to API simulation are API mocking, API testing, API discovery, API engineer and API mock helper.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [API mocking](https://ai-powered.com/skills/api-mocking): API mocking is an open-source agent skill for developer tools.
- [API testing](https://ai-powered.com/skills/api-testing): API testing is an open-source agent skill for developer tools.
- [API discovery](https://ai-powered.com/skills/api-discovery): API discovery is an open-source agent skill for developer tools.
- [API engineer](https://ai-powered.com/skills/api-engineer): API engineer is an open-source agent skill for legal and government.
- [API mock helper](https://ai-powered.com/skills/api-mock-helper): API mock helper is an open-source agent skill for developer tools.
- [API to testcase generator](https://ai-powered.com/skills/api-to-testcase-generator): API to testcase generator is an open-source agent skill for developer tools.
- [Performance testing](https://ai-powered.com/skills/performance-testing): Performance testing is an open-source agent skill for developer tools.
- [AI readiness](https://ai-powered.com/skills/ai-readiness-postmanlabs): AI readiness is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/api-simulation
