Postman CLI

API engineering for your coding agents

The Postman CLI works with Claude Code, Codex, Cursor and other coding agents. It gives them your organization's API context, plus the tools to test, mock, simulate and load test every change.

postman init puts your API files in git, installs agent skills in the repo and links a Postman workspace, so the next session picks up where the last one stopped.

Get started

Install for your agents

npm install -g postman-cli
Get started with

Trusted by teams at

PayPal logo
Moneris logo
Autodesk logo
Cover Genius logo
Siemens logo
ZEISS logo
Medibank logo

Install the Postman plugin in your coding agent

Install the Postman plugin and your agent gets Postman's skills: it checks what depends on an API before changing it, builds against mocks and simulations, tests and load tests the change, and records the results in Postman.

The plugin equips your agent in every repo it opens. postman init equips the repo, so every teammate, agent and CI job that opens it gets the same skills. Teams use both.

Marketplace

get the Postman plugin

Step 1
claude plugin marketplace add anthropics/claude-plugins-official
Step 2
claude plugin install postman@claude-plugins-official
See all Postman skills

Try these prompts

CONTEXT GRAPH

Know what depends on an API before your agent changes it

Cover of the Postman Context Graph API benchmarking report

Your agent only sees the repo it's working in. Context Graph gives it a queryable map of everything else: your organization's APIs, deployments, database schemas, external services and teams. In Postman's benchmark, an agent found 129 services in its checkout and 498 with Context Graph.

Ask your agent "I'm changing the refunds API. What depends on it?" and it runs:

postman context-graph ask "What depends on the refunds API?" --wait

On Opus 4.7, querying Context Graph first cut prompt tokens by 29% on questions that span systems. Read the benchmark report (PDF)

WHY POSTMAN

Checks from outside your agent's own reasoning

An agent that writes both the code and the tests checks the work against its own assumptions. The Postman CLI gives it the spec, real runs, simulated dependencies and your organization's context to check against instead.

  • Your organization's API context

    Context Graph, workspace context and published dependencies tell your agent who consumes an API, what the last session changed and which contract other teams published.

  • Dependencies you don't own, simulated

    Stateful mocks and simulations stand in for the services your agent can't call. Scenarios add delays, errors, rate limits and random failures, so the agent tries the 429 before it ships the retry logic.

  • Checked against the contract

    Spec lint, request tests and collection runs check the change against the contract, not just the tests the agent wrote for itself. Signed-in runs upload to Postman, and the CLI prints a link your team can review.

  • Performance testing

    The same collection becomes a load test. Set load profiles and pass criteria like p95 under 300 ms, run locally or on Postman's cloud runners, and fail the build when a change makes the API slower.

  • The same checks in CI

    The Postman CLI runs the same collections, tests and load tests in CI that your agent runs locally. Non-zero exit codes fail the build, whether a person or an agent wrote the change.

  • Secrets your agent never sees

    Secret values go into a one-time browser form and are stored in your team's Shared Vault. The CLI never prints them, and coding agents only ever see secret names.

  • The next agent starts where this one stopped

    Workspace pushes record what changed and which agent made it. A new session reads that history before it starts.

Example run with illustrative names and numbers: Claude Code in a terminal, asked to add partial refunds to a payments service. It starts with postman init, which links the repo to its Postman workspace and installs agent skills. Before it edits code, it asks Context Graph what depends on the refund response and finds three consumers: checkout-web, ledger-service and notifications. It reads the last workspace push, "Add refunds endpoint, spec and tests" by Ada Lovelace (Claude Code). It updates the OpenAPI spec, and the spec lint passes. Run against a simulation of the payment provider that answers with 429 rate limits, the idempotency test fails: a retried refund is issued twice. It adds an Idempotency-Key header, the collection run passes and prints a link to the results in Postman, a load test passes with p95 under 300 ms, and it pushes the change to the workspace with the message "Add partial refunds with idempotent retries".

Frequently asked questions

Trusted by over 50 million developers and 500,000 companies.

Install for your agents

npm install -g postman-cli
Get started with

Install for desktop

Sign up for free