X-Substrate-Key header. The daemon checks each key against your account on platform.nelieo.com and caches the result in memory, so repeated requests stay fast after the first verification. Authentication is enabled by default — you do not need to configure anything to use it, you just need a key.
Get an API Key
All NSP API keys are issued through the Nelieo platform dashboard. To generate one:1
Go to the platform
Open platform.nelieo.com in your browser.
2
Sign in to your account
Log in with your Nelieo credentials.
3
Generate an API key
Navigate to the API Keys section of your account and create a new key.
Keep your API key out of source control. Use environment variables or a secrets manager to inject it into your agents at runtime.
Authenticate Your Requests
Pass the key in theX-Substrate-Key HTTP header on every API call. The daemon rejects any request that is missing or presents an unrecognized key.
NSP_API_KEY environment variable is the recommended approach for agents deployed in automated environments — it keeps the key out of your source code entirely.
How Key Verification Works
When the daemon receives a request, it checks its in-memory cache first. A cached result returns in under a millisecond. If the key has not been seen before, the daemon reaches out toplatform.nelieo.com to verify it, then caches the result for all subsequent requests:
Authentication Errors
If the daemon rejects a request, it returns401 with a JSON body describing the reason:
Check the platform dashboard if you receive
invalid_key or disabled_key — your key may have been rotated or deactivated.
Disable Authentication for Development
You can turn off authentication in a local development environment to skip the key requirement entirely. Setrequire_key = false in your axon.toml:
