A reference of the environment variables the NxtOne SDKs read.
The NxtOne SDK runs inside your application's process and reads its settings from that process's environment when it starts. Set these variables on your service the same way you set any other runtime configuration — a shell export, an env_file, or your orchestrator's environment and secret settings.
| Variable | Required | Default | Description |
|---|---|---|---|
NXTONE_API_KEY | Yes | — | Authenticates the SDK with the NxtOne platform. Without it the SDK does nothing and prints a hint to stderr — it never crashes your application. |
NXTONE_PROJECT_ID | Recommended | Java and Node.js: unknown. Python: the project root folder's name. | Groups execution flows in the UI. The default is not service-specific, so set it explicitly for each service. |
NXTONE_EXCLUDE | No | — | Packages or paths to leave uninstrumented. See Filtering. |
NXTONE_API_KEY at run time from your secret store rather than committing it to a config file.Each SDK can also read the same settings from a file:
| SDK | Files | Notes |
|---|---|---|
| Java | The path in -Dnxtone.config, then $NXTONE_CONFIG_FILE, then ~/.nxtone/config.properties, then ./nxtone.properties | Looked up in that order. |
| Python | nxtone.toml in your project, and ~/.nxtone/config.toml | Settings go under an [nxtone] table. Environment variables override the project's nxtone.toml, which overrides ~/.nxtone/config.toml. |
| Node.js | ./nxtone.properties or ~/.nxtone/config.properties | — |