Skip to navigation

Install the Postman plugin into detected agents

View as Markdown

Install the Postman plugin into every detected coding agent found on your machine with a single command. You can also limit the installation to a specific agent. This method requires Node.js and the agent versions listed in Requirements.

To install for a single agent using that agent’s own method, see Install the Postman plugin for a specific agent.

Usage

npx @postman/postman-plugin@latest [command] [options]

Run npx @postman/postman-plugin@latest with a command and any options. With no command, it runs install. Keep @latest. Without it, npx can run an older copy of the installer that’s installed globally or in your project. The installer is published as the @postman/postman-plugin package on npm.

Commands and options

The installer accepts the following commands:

CommandWhat it does
installInstall into each detected agent, or update it there. This is the default when you don’t pass a command.
statusShow which agents are detected and whether the Postman plugin is installed.
removeUninstall from each detected agent, and clean up what the install added alongside the plugin. To learn more, see Remove behavior. You can also use uninstall.

The commands accept the following options:

--agent <id>
'antigravity' | 'claude-code' | 'codex' | 'copilot' | 'cursor' | 'factory' | 'kimi' | 'opencode' | 'pi'

Limit the command to one or more agents instead of every detected agent. Repeat the option or comma-separate the ids. Works with install, status, and remove.

-y, --yes

Skip the confirmation prompt for install or remove. Required for both when running outside a terminal, unless you also pass --dry-run.

--dry-run

Preview what install or remove would do, without making any changes.

The following options are global. Use them on their own, without a command:

-h, --help

Show the help.

-v, --version

Show the version.

Remove behavior

The remove command uninstalls the plugin, then removes what the installer added alongside it:

  • The postman marketplace in Claude Code, Codex, and GitHub Copilot CLI, and the postman-plugin marketplace in Factory Droid, once no installed plugin still comes from them.
  • Codex’s approval of the session-start hook that earlier installer versions wrote.
  • OpenCode’s cached copy of the plugin.

Run remove again to clean up anything an earlier remove left behind.

The remove command leaves the following in place:

  • The claude-plugins-official marketplace from Anthropic.
  • Project-scoped installs. Factory Droid lists project installs only for the current directory, so an install elsewhere keeps working but stops getting updates after the marketplace is removed.
  • Any entry it can’t confirm came from the Postman plugin. In this case, it prints a note:.

You can remove Cursor Marketplace and Kimi Code installs only inside those apps. The remove command tells you how.

Examples

# Install into every detected agent (the default command)
npx @postman/postman-plugin@latest
# Limit to one agent
npx @postman/postman-plugin@latest install --agent cursor
# Check what's currently installed
npx @postman/postman-plugin@latest status
# Remove the plugin from every detected agent
npx @postman/postman-plugin@latest remove

Exit codes

Exit codeMeaning
0Succeeded, or there was nothing to do.
1Failed: an error occurred, you canceled, or install found no supported agent.
2Invalid usage, or install or remove needed confirmation but ran outside a terminal (use --yes).
3Succeeded, except for a manual step you still need to complete (shown as next: in the output).