How keys are scoped
API keys are tenant-scoped. One key gives access to exactly one tenant; if you administer three tenants, you’ll have three keys. The organisation that owns the tenant is recorded as provenance, but it is not an authorisation boundary. This matters because:- A leaked key compromises one tenant’s surface area, not your whole organisation.
- Different teams within an organisation can hold different keys for different tenants without seeing each other’s runs.
- Rotation is per-tenant — you can rotate a key without disturbing other tenants.
Generate a key
1
Pick a connection name
Used in
~/.ntro/config.toml as [connections.<name>]. local, staging, and production are conventional. You can have as many as you like.2
Enter the host
https://api.ntropii.com/v1 for production.3
Paste the API key
You generate the key in the Ntropii web UI under Settings → API keys. The CLI does not mint keys directly.
4
Pick a default tenant
Most CLI commands target a tenant. Setting a default at login skips having to pass
--tenant on every call. Override with -c connection, --tenant slug, or NTRO_TENANT.Where the key gets used
The same key works across all three surfaces:- CLI
- MCP server
- SDK (Python)
Picked up automatically from
~/.ntro/config.toml based on the active connection. Override with --host + NTRO_API_KEY.Rotation
What’s next
Ntro CLI reference
Discover each command, flag, and example to use on Ntropii.
Wire MCP into your coding agent
Give Claude Code or Copilot Studio access to Ntropii.