Useful for
- Bootstrapping a brand-new agent that has no credentials yet.
- Getting the key back to the agent automatically — no human copy-pasting secrets.
- Issuing environment-specific keys: a
sandbox:key for testing, alive:key for production.
Try it yourself
How it works
There are two ways to get the key — the agent should prefer the embedded flow, which returns the key automatically.Option A — embedded login (key returns automatically)
The agent hosts an HTTP server on After the human signs in, the browser is redirected to
127.0.0.1:<port> with a /callback route, then hands the human this URL:http://127.0.0.1:<port>/callback?nvm_api_key=<api-key>. The agent reads nvm_api_key off that request and stores it.Option B — manual paste (works anywhere)
If the agent can’t host a localhost callback, the human creates the key in the app and pastes it back: sign in at nevermined.app → Settings → Global NVM API Keys → create a key for the right environment. See Get Your API Key for the full UI walkthrough.
Store, reuse, and use it
The key doesn’t expire per request — store it once (e.g.
NVM_API_KEY) and reuse it. Use it as a Bearer token on REST calls, or pass it to the SDK:- REST
- TypeScript
- Python
Match the key to the environment: a
sandbox: key only works against api.sandbox.nevermined.app, and live: only against api.live.nevermined.app.Related
Get Your API Key
The web-app walkthrough for creating and managing keys.
Buy access
With a key in hand, make your first autonomous purchase.