Docs/Configuration/Environment Variables

Environment Variables

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.

1. Variables every SDK reads

VariableRequiredDefaultDescription
NXTONE_API_KEYYes—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_IDRecommendedJava 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_EXCLUDENo—Packages or paths to leave uninstrumented. See Filtering.
Keep the API key out of source control and images. Inject NXTONE_API_KEY at run time from your secret store rather than committing it to a config file.

2. Config files

Each SDK can also read the same settings from a file:

SDKFilesNotes
JavaThe path in -Dnxtone.config, then $NXTONE_CONFIG_FILE, then ~/.nxtone/config.properties, then ./nxtone.propertiesLooked up in that order.
Pythonnxtone.toml in your project, and ~/.nxtone/config.tomlSettings 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—