Clone the Plugin and Launch Claude Code
The Postman plugin is a set of skills that teach Claude Code how to do API engineering with the Postman CLI. Loading it from a local clone means every skill is available for the rest of this module.
-
Make sure the Postman CLI is installed. If
postman --versionfails, install it:npm install -g postman-clinpm install -g postman-cli -
Clone the plugin repo:
git clone https://github.com/postmanlabs/postman-plugin.gitgit clone https://github.com/postmanlabs/postman-plugin.git -
Create a fresh project directory for this module. Postman links a workspace to a project through its Git
originremote, so give the repo one. It can be a real repo you own or a placeholder URL — nothing is pushed to it in this module:mkdir movies-api-project && cd movies-api-projectmkdir movies-api-project && cd movies-api-projectgit initgit initgit remote add origin https://github.com/<your-username>/movies-api-project.gitgit remote add origin https://github.com/<your-username>/movies-api-project.git -
Start Claude Code with the plugin loaded:
claude --plugin-dir /path/to/postman-pluginclaude --plugin-dir /path/to/postman-plugin -
Confirm the plugin loaded: type
/postman:in Claude Code and check that skills such aspostman:api-engineerandpostman:api-mockingappear.
Run postman init
postman init is the first move in any API engineering task: it scaffolds the local postman/ directories and installs Postman skills into the project, so your API artifacts live beside your code. It's idempotent, and it works without signing in.
-
Ask Claude Code:
Run `postman init` in this project, then show me what it created.
-
Confirm Claude runs
postman initand that your project now contains apostman/directory (collections, environments, mocks, and so on), a.postman/resources.yamlfile, and anAGENTS.mdthat points agents at the installed Postman skills. -
If Claude offers to create a new workspace, decline. The workspace binding in
.postman/resources.yamlwill be empty for now — you connect your existing workspace in the next step.
If Claude reports a guest session, that's expected — init creates an agent-scoped session so you can start working before connecting your account.
Bootstrap — Connect to Your Workspace
A workspace binding connects your local project to shared context in Postman. This step needs the [Your Name] - AI Basics workspace and its Movies API collection, which you created in the Getting Started with Agent Mode module. Everything from here on builds on that collection, and everything Claude produces is published back to that workspace, so finish that module first if you haven't.
-
Ask Claude Code, replacing
[Your Name]with the name you used in that module:Log me in to Postman and connect this project to my [Your Name] - AI Basics workspace. Pull the workspace so its collections come down as local files.
-
Authenticate when prompted. Claude will run
postman login(browser sign-in), orpostman login --with-api-key "$POSTMAN_API_KEY"if you've exported an API key. Get a key at go.postman.co/settings/me/api-keys. -
Confirm Claude finds the workspace with
postman workspace listand runspostman workspace pull <workspace-id>. The pull links the workspace to your repo'soriginremote. -
Check that
.postman/resources.yamlnow contains your workspace ID, and thatpostman/collections/holds your Movies API collection as YAML files.
If Claude reports This git repository has no 'origin' remote, add one with git remote add origin <url> (see Step 1) and ask again.
If Claude can't find your AI Basics workspace, or postman/collections/ is empty after the pull, you don't have the Movies API collection yet. Don't let Claude create a new workspace to get past this. Complete Getting Started with Agent Mode, then come back and ask again.