<endpoint>) and its API key (<key>). Both are on the resource’s Keys page.
Public vs. private resourcesWherever these instructions show
<key>, what you put there depends on the resource type:- Public resource - reachable from anywhere, so the gateway checks a virtual API key. Copy it from the resource URL after login, the Resource Launcher more-info panel, or
https://app.pangolin.net/<org-id>/keys(use your self-hosted dashboard URL in place ofapp.pangolin.netif you self-host). - Private resource - only reachable from devices connected to your Pangolin network, so no key is checked. You must have the Pangolin client installed and connected. Use the literal string
noneas the key.
Fastest: Pangolin CLI
Install the Pangolin CLI if you don’t have it, then log in:pangolin provider into ~/.codex/config.toml without touching anything else in that file. To skip the prompts:
Manual setup
Merge this into~/.codex/config.toml (honors $CODEX_HOME if you’ve set it):
env_key, not from the file. Before running Codex, export it in your shell:
env_key line and skip the export entirely. Exporting PANGOLIN_API_KEY=none works too, so use whichever you find clearer.
