/passport:passport-setupfrom Postman Passport
Set up Postman Passport for one developer on their own machine (macOS or Linux): a Passport Proxy and a Secret Vault (HashiCorp) in Docker, the Passport CLI signed in, and the user's own curl call to a sample API made with a secret reference in place of its key. Then, optionally, one of the user's own APIs secured the same way, and the user's Passport API key moved into the Secret Vault (HashiCorp) and rotated without changing the secret reference. Use when the user says "set up passport", "setup passport", "run Passport locally", "install the Passport proxy", or wants to stop putting API keys in .env files and doesn't have Passport running yet. Also use to resume or check an earlier Passport setup on this machine. Once Passport is set up, the passport-public-api skill registers APIs and credentials through the Passport public API.
Ships in Postman Passport. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
You walk a developer through setting up Passport on their machine, from first
introduction to a call they make themselves with a secret reference. $SKILL_DIR is this skill's
folder; everything it needs is inside it.
Read references/concepts.md before the first stage. The stage-by-stage copy
is in references/stages.md; follow it in order.
~/.passport/passportrc.
It holds live CLI tokens. Never print the contents of the files in
~/.passport/onboarding/ or run docker inspect on the Proxy's env.sudo, and the Passport CLI
installer, the user runs in their own terminal.passport, docker, an installer. Never
ask the user to run passport-onboard; it's yours.error.hint, look the code up in
references/troubleshooting.md, and don't retry silently.{{vault:…}} value in a call
is a "secret reference", never a "pointer" or a "placeholder".claude); it loses everything done so far.Run "$SKILL_DIR/scripts/passport-onboard" <command>. Every command prints one
JSON object:
{"ok": true, "stage": "vault", "data": {}, "next": {"who": "user", "say": "…", "run": "…"}}
{"ok": false, "stage": "proxy", "error": {"code": "key_rejected", "hint": "…"}}
Exit code 0 = done, 2 = waiting on the user (relay next.say or
error.hint, then wait), 3 = something earlier is missing (do what the hint
says), 1 = an error. Turn data into plain sentences or a short table; never
paste raw JSON at the user. State lives in ~/.passport/onboarding/state.json.
| Command | Does |
|---|---|
status / status --line | OS check, what's done (checked against Docker and the CLI), the progress line |
mark <stage> | Records a stage the user finished: welcome, setup-type, account |
doctor | Prerequisites check, with an install command for anything missing |
vault up · vault check <path> · vault store-cmd <path> | Starts the Secret Vault (HashiCorp); checks a secret exists with the key value; the command the user runs to store one |
proxy prepare · key check · proxy start | The Proxy's keys and files; the API key and team; start and registration |
demo plan · demo apply | The sample API's objects, made with the Passport API key |
cli check | Is the Passport CLI signed in, and its daemon running |
call plan · call check · call verify | The user's before and after calls; finds their call in the Proxy's audit log; your own call, to tell a Proxy problem from a terminal one |
handson plan · apply · check · verify · rotate plan · rotate check · finish | Optional: the Passport API key into the Secret Vault and Passport's API registered; what's missing; the call with the secret reference; the new key's command and its arrival in the Secret Vault; the old one revoked |
own plan --name … --host … --method … --path … --header … · own apply · own check | Optional: one of the user's own APIs, its key stored straight into the Secret Vault, the objects, their call found in the audit log |
Start every stage message with the progress line (status --line). A
message meant for between two script calls tends to end up only as thinking,
which the user never sees, so run the step's script calls first and put what
the user must read in the turn's last message. Where stages.md says choices as a list, end that message with a
numbered list and wait for the reply. Use your menu tool (in Claude Code,
AskUserQuestion: 2–4 options, header ≤ 12 characters) only where it says
menu. Never open a browser; show links.
The docs link (PASSPORT_DOCS_URL) appears once, in the welcome.
| Stage | Who | Script |
|---|---|---|
| Welcome | agent | status, then references/welcome.md as written |
| Choose your setup | user | mark setup-type |
| Check prerequisites | agent; the user approves installs | doctor |
| Sign in to the app | user, in the browser | mark account |
| Start the Secret Vault | agent | vault up |
| Deploy the Proxy | user saves a key and the Proxy's two lines from their terminal, agent starts it | proxy prepare, key check, proxy start |
| Register the sample API | agent, after the user OKs the plan | demo plan, demo apply |
| Sign in and call it with a secret reference | user, in their own tab: passport login, the shellenv line, the curl | cli check, call plan, call check |
| What next (optional) | user picks: explore the app, secure the Passport API key, secure your own API, done | status (data.extras) |
| Secure your Passport API key (optional) | agent, after the user OKs the plan | handson plan, apply, verify |
| Secure your own API (optional) | user names the API and stores its key; agent makes the objects | own plan, own apply, own check |
| Rotate the key (optional) | user stores a new key in the Secret Vault and revokes the old one | handson rotate plan, rotate check, finish |
Coming back later: status reports resume: true; follow "Coming back" in
references/stages.md.
passport-vault, passport-proxy, network passport-net, volume
passport-vault-data, all labelled com.postman.passport-onboarding.~/.passport/onboarding/: state.json; proxy.env (the Proxy's settings,
including the Secret Vault token); api-key.env until the key moves into the
Secret Vault;
keys/ (the Proxy's two private keys); audit/ (the Proxy's audit log, which
its console shows); vault/ (the Secret Vault (HashiCorp) unseal key and root token,
and its config).~/.passport/.references/concepts.md: glossary and invariants, shared with
passport-public-api.references/urls.env: every URL, image and version this skill uses.references/troubleshooting.md: error codes and symptoms.references/banners.md: the milestone banners.references/verification.md: what has been tested, and when.references/banners.md (opens in a new tab)references/concepts.md (opens in a new tab)references/stages.md (opens in a new tab)references/troubleshooting.md (opens in a new tab)references/urls.env (opens in a new tab)references/verification.md (opens in a new tab)references/welcome.md (opens in a new tab)scripts/passport-onboard (opens in a new tab)templates/api-key.env.tmpl (opens in a new tab)templates/proxy.env.tmpl (opens in a new tab)templates/vault-start.sh (opens in a new tab)templates/vault.hcl (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub postmanlabs/passport-skills --plugin passport2 skills in this plugin