Using a token¶
Every request is rate-limited: 100 requests an hour per address without a token, 5,000 an hour per token with one. Who needs a token, and how to request one.
How tools send it¶
- pip, uv, Poetry, PDM, pipenv: as the HTTP Basic password, with any username (we use
token). - npm, pnpm, Yarn: as a bearer token (
_authToken/npmAuthToken).
The per-tool pages show where each one reads it from.
Keep it out of your repository¶
- Read it from an environment variable or your tool's credential store (keyring,
~/.netrc). - In CI, store it as a secret and expose it as an environment variable for the install step only.
- Never commit it in
pyproject.toml,.npmrc,pip.confor a URL.
A leaked token is still limited to the indexes; ask us to revoke it at support@swndx.dev. An IP-restricted token is useless from anywhere else.