Connect to the Passport Proxy
Before you can send authenticated API requests using Passport, use the Passport CLI to connect your machine to the Passport Proxy. The Passport CLI configures your local environment to route requests through the proxy from external clients like curl and scripts. This is a one-time setup per machine.
Complete the following sections in order.
Prerequisites
Before you begin, make sure you have the following:
- A Passport Admin must approve your access request.
Install the Passport CLI
Run the following command to install the Passport CLI:
Sign in to Passport
Sign in to your Passport account:
For all sign in options, see Authentication commands.
Set up the Passport Proxy
Run the following command to connect your machine to the proxy:
For all setup options, see Setup and identity commands.
This command does the following:
- Discovers your proxy — Fetches the configuration your Admin set, including the proxy URL, management host URL, and secret store providers.
- Generates a key pair — Creates an RSA key pair where the private key never leaves your machine.
- Issues a certificate — Sends only the public key to the proxy certificate authority (CA), which returns a signed certificate binding your identity and API permissions to it.
- Starts the daemon — Runs a local HTTPS proxy on
localhost:8081that lets external clients (curl, scripts, SDKs) use Passport. It intercepts outbound HTTPS, opens an mTLS tunnel to the proxy using your certificate, and forwards the request. On macOS, the daemon auto-starts on sign in usinglaunchd. On Linux, start it manually withpassport daemon start. - Sets environment variables — Configures your shell environment so clients that respect
HTTPS_PROXYroute traffic through the daemon automatically. Clients that don’t supportHTTPS_PROXYrequire manual proxy and CA configuration. Learn about the environment variables that are set.
This command is safe to re-run. Each run generates a fresh key pair and certificate.
Environment variables
Verify the setup
After setup completes, confirm that the environment variables are set correctly and the daemon is running.
Check environment variables
Open a new terminal and run the following commands to confirm the environment variables were set correctly:
The output looks similar to the following:
Check the daemon
Run the following command to confirm the daemon is running and reachable:
For all daemon options, see Daemon commands.
The output looks similar to the following:
Check your access
Run the following command to confirm your identity and view which APIs you have access to:
For more information, see Setup and identity commands.
The output looks similar to the following:
Next steps
Once the setup is complete, you can send authenticated API requests using secret references. For more information, see Call an API with Passport.

