Use the Postman plugin for coding agents
Postman is available wherever your coding agent works. Install the Postman plugin for Claude Code, Codex, Cursor, OpenCode, Pi, and other coding agents. You can also run the Postman CLI postman init command directly in your project. Either way, your agent gets Postman’s skills to build, test, and manage APIs using the Postman CLI, without you leaving your coding environment.
Install the plugin
Install the plugin with the npx command, which installs into every detected agent or can be limited to just one. You can also install the plugin using a specific agent’s own method: Claude Code, Codex, Cursor, Factory, Kimi Code, OpenCode, or Pi.
The following requirements apply based on your installation method and coding agent:
- Node.js 22 or later (only needed for the
npxcommand) - Claude Code 2.1.268 or later
- Codex 0.138.0 or later
- Cursor 2.5 or later
- Factory Droid 0.57.5 or later
- Kimi Code 0.6.0 or later
- OpenCode 1.14.33 or later, and Git
- Pi 0.99.0 or later
All agents
Install the Postman plugin into every supported coding agent found on your machine, with a single command. You can also limit the installation to a specific agent.
For example:
Exit codes:
If you’d rather install for a single agent, see Claude Code, Codex, Cursor, Factory, Kimi Code, OpenCode, or Pi.
Claude Code
Before installing, run an interactive claude session at least once so the official marketplace is registered.
Install the plugin for Claude Code using Claude’s plugin marketplace:
Codex
Install the plugin for Codex from the app, a direct link, or the command line.
App
Direct link
Command line
- Open the Codex app, and click Plugins.
- Search for “Postman”.
- Select the Postman plugin, and click Install.
Cursor
Inside Cursor, install the plugin from the Cursor marketplace:
Factory
Install the plugin for Factory using the following commands:
To update, run droid plugin marketplace update postman-plugin, then droid plugin update postman@postman-plugin --scope user. To sign in to Postman’s MCP server, run /mcp inside a Droid session.
Kimi Code
Inside a Kimi Code session, install the plugin using the full repository URL:
To update, run the same command again, then /new. To remove the plugin, run /plugins remove postman. To sign in to Postman’s MCP server, run /mcp-config login plugin-postman:postman.
OpenCode
Install the plugin for OpenCode using the command for your version.
OpenCode 2.0.4 or later:
OpenCode 1.14.33 or later:
You need Git for either command. Restart OpenCode after installing.
If you installed the plugin for OpenCode by cloning the repository and adding a loader file, remove that install to avoid registering each skill twice. Delete ~/.config/opencode/plugins/postman.ts and the ~/.config/opencode/postman-plugin directory.
To remove the plugin on OpenCode 2.0.4 or later, run opencode plugin remove github:postmanlabs/postman-plugin. On OpenCode 1.14.33 or later, delete the plugin entry from ~/.config/opencode/opencode.json or opencode.jsonc, then restart OpenCode.
Pi
Install the plugin for Pi from Pi’s package gallery:
To update, run pi update npm:@postman/postman-plugin. Then, inside a Pi session, sign in to Postman’s MCP server with /mcp login postman. Signing in from the shell with pi mcp login doesn’t load extensions, so it reports no server named postman.
Load skills into your agent
As an alternative to installing the plugin, you can load Postman’s skills directly into your coding agent using the Postman CLI. Install the Postman CLI, then load Postman’s skills into your project.
To install the Postman CLI, run the following:
To install the Postman CLI for your specific OS, see Install the Postman CLI.
Then run the following:
The postman init command is a single command you can run from any terminal, script, or CI job.
To learn more, see Init command.
Work with Postman from your agent
Once you’re set up, describe what you want in natural language. Your coding agent can sync your project with a Postman Workspace, discover public APIs, create mock servers, or set up monitors.
The following are examples of tasks you can perform with your coding agent:
Create and test a collection
Create a collection for the API in this repo, add tests, and run them.Find affected APIs
I’m changing the credit card service. What APIs in my company use it?Assess a schema change's impact
What depends on the billing-api collection, and what would changing its response schema break?Questions about what depends on an API, who owns it, or what a change could break are answered with Postman Context Graph, a dependency map of your organization’s API ecosystem. Your agent queries it with the postman context-graph commands, so prompts like the two preceding ones work without you pointing the agent at each service yourself.
How the plugin works
The plugin automatically routes each task to whichever tool is best suited to complete it, so you don’t have to choose yourself. It sends your agent’s requests to the Postman CLI whenever the CLI can complete them, and falls back to the Postman MCP Server only for tasks the CLI doesn’t support. Your agent does the work from the command line. Open Postman whenever you want to review or approve what changed.
To learn more about using the plugin with your coding agent, see the Postman plugin for coding agents repository.
Plugin skills
The plugin installs 16 skills that teach your agent how to complete API tasks with Postman. Each skill loads when the task calls for it, so your agent uses only the ones it needs.