nodetool settings show # print a fixed set of resolved values, keys masked
Set these in the server’s environment or in a .env file (see Environment files). Variables that only matter when building or testing NodeTool are in Configuration in Code. A Secret of yes means the value is a credential: keep it out of version control and images.
| Variable | Purpose | Secret | Notes |
|———-|———|——–|——-|
| NODE_ENV | Environment name (development, test, production) | no | Default development. Selects which .env.<NODE_ENV> files load. Does not switch production behavior (see NODETOOL_ENV) |
| NODETOOL_ENV | Production mode switch | no | production turns off the file browser and local-file previews, the Python bridge, the /mcp mount, the fake provider, Transformers.js, and unmanaged workspaces. Public app deployment routes exist only in production. It also sets the default bind address to 0.0.0.0, the default workspace storage to cloud, and tightens the node-pack allowlist default. The Docker image sets it. The desktop app does not (it needs the Python bridge and Transformers.js) and sets NODETOOL_PACKS_REQUIRE_ALLOWLIST=1 instead |
| PORT / HOST | Port and address the server binds | no | Default 7777. HOST defaults to 127.0.0.1, or 0.0.0.0 when NODETOOL_ENV=production. nodetool serve --port and --host set both variables, and --host defaults to 127.0.0.1 |
| UV_THREADPOOL_SIZE | Threads in libuv’s pool (file system calls, DNS, crypto, native media work) | no | The server and CLI entries set 128 when unset. The Docker image, desktop app and npm run dev:server set it in the backend’s environment, because libuv reads it once before the first pool job. A media encode holds a thread while it writes, so a small pool makes other file reads wait. |
| STATIC_FOLDER | Directory the server serves the built web app from | no | See Serving the Web UI and TLS |
| TLS_CERT / TLS_KEY | PEM certificate and key paths that put the server on HTTPS/WSS | no | Both must resolve or TLS stays off. See Serving the Web UI and TLS |
| REDIRECT_PORT | Port of the plain-HTTP listener that redirects to HTTPS | no | Default 80. Bound only when TLS is active |
| NODETOOL_EXTRA_CA_CERTS | PEM file of extra certificate authorities the desktop app trusts | no | Desktop app only, for a network that re-signs HTTPS traffic with a corporate root. The hardened Electron build strips NODE_EXTRA_CA_CERTS before JavaScript starts, so this name carries the file. The main process adds the certificates to the default trust store, and the spawned backend gets the path as NODE_EXTRA_CA_CERTS. A file with no PEM certificate stops startup with NODETOOL_EXTRA_CA_CERTS contains no PEM certificates (electron/src/certificateTrust.ts, electron/src/config.ts) |
| SUPABASE_URL / SUPABASE_KEY | Enable Supabase auth mode (both required) | SUPABASE_KEY | The server enforces auth and validates Supabase JWTs. See Authentication |
| OIDC_ISSUER / OIDC_CLIENT_ID | Enable SSO mode through an OpenID Connect provider (both required) | no | The server enforces auth with its own nts_ session tokens after an OIDC sign-in. Needs NODETOOL_PUBLIC_URL or OIDC_REDIRECT_URL. Cannot be combined with Supabase auth. OIDC_CLIENT_SECRET (secret), OIDC_SCOPES, OIDC_PROVIDER_NAME, OIDC_ALLOWED_DOMAINS, OIDC_ALLOWED_GROUPS, OIDC_GROUPS_CLAIM, and OIDC_SESSION_TTL_SECONDS tune it. See Single Sign-On |
| SUPABASE_ANON_KEY | Public anon key, handed to the web app by GET /api/config | no | Set it to the anon key, never SUPABASE_KEY, which the endpoint never returns. Required whenever auth is enforced. With SUPABASE_URL and SUPABASE_KEY set but this unset, /api/config answers 200 with supabaseAnonKey: null, the web app falls back to a placeholder, and every login 401s. The server names that case at boot (describeMissingAnonKey in packages/websocket/src/routes/config.ts) |
| AUTH_REDIRECT_URL | URL Supabase sends the user back to after email or OAuth sign-in | no | Returned by GET /api/config as authRedirectUrl, and wins over the client’s own resolution. Unset, the web app uses the build-time VITE_AUTH_REDIRECT_URL, then window.location.origin + "/". Set it when the public URL is not the origin the browser sees (proxy, custom domain, Electron shell) and add it to the Supabase project’s redirect allow list. See Self-hosted deployment |
| SERVER_AUTH_TOKEN | Static bearer token for a Local-mode server | no | nodetool deploy generates one per deployment. In Local mode, Authorization: Bearer <token> (or ?api_key= on a WebSocket) runs as user 1. Supabase mode ignores it and logs a warning. It selects no auth mode |
| USERS_FILE | JSON registry of API users and hashed bearer tokens | no | Default ~/.config/nodetool/users.json, or %APPDATA%\nodetool\users.json on Windows. The Docker image sets /workspace/users.json. In Local mode each user’s token is a bearer credential for that user’s id. It is the file the admin user routes and nodetool deploy users-add \| users-list \| users-reset-token \| users-remove read and write. A missing or unparseable file reads as no users. See CLI › API users on the deployment |
| ADMIN_USER_IDS | User ids allowed to call the admin user-management routes | no | Comma-separated, whitespace trimmed. User 1 (the loopback user in local auth mode) and any API user created with --role admin are always admin. Every other caller gets FORBIDDEN. A Supabase-mode server refuses to create API users or reset their tokens |
| NODETOOL_TRUST_LOCALHOST | Let loopback connections bypass auth as user 1 | no | Default off when auth is enforced (Supabase), on otherwise. Leave off behind a reverse proxy or SSH tunnel that connects from loopback |
| NODETOOL_TRUST_LOCAL_NETWORKS | Warning: source CIDRs trusted as user 1 without a password (Local mode only) | no | Comma-separated IPs/CIDRs, ignored in Supabase mode. Needed so Docker’s NAT’d bridge traffic is not rejected. Scope to the bridge (172.16.0.0/12), never 0.0.0.0/0 on a public IP. See Authentication → Local mode in Docker |
| NODETOOL_ALLOWED_HOSTS | Extra Host names under which the Local-mode trust bypass applies | no | Comma-separated hostnames, ports ignored. Loopback names (localhost, *.localhost) and IP literals are always accepted. A trusted-source request with any other Host must present a token, which blocks DNS rebinding. Add the name you browse to, such as a LAN name for a Compose install. See Authentication → Host check |
| NODETOOL_LOCAL_CLIENT_TOKEN | Secret the desktop app adds to its own windows’ requests | no | Generated per launch by Electron. Do not set it by hand. A loopback browser request runs as the local user only with this header, no Origin, the server’s own origin, or an origin in the CORS allow-list |
| NODETOOL_ALLOW_STDIO_MCP | Allow stdio external MCP servers when Supabase auth is on | no | 1 to allow. A stdio server runs a command on the server for whoever configures it, so set it only when every account may run commands on the host |
| NODETOOL_ALLOW_INSECURE_HTTP | Let nodetool deploy send the admin token over plain HTTP to a remote host | no | 1 to allow. Otherwise the token goes only to https:// or localhost. See server_url in Deployment |
| NODETOOL_TRUSTED_PROXIES | Reverse proxies whose X-Forwarded-For is trusted | no | Comma-separated IPs/CIDRs. Unset, X-Forwarded-For is ignored and the socket peer address is used |
| NODETOOL_ALLOWED_ORIGINS | Extra browser origins allowed to make cross-origin requests | no | Comma-separated exact origins, added to the built-in list: localhost, 127.0.0.1, and [::1] on any port and either scheme, the Electron renderer’s file://, and https://nodetool.ai and its subdomains. A single * entry restores allow-all, for a deployment behind its own gateway. A request with no Origin is allowed either way. Parsed once and cached, so changes need a restart. Backs the global CORS plugin and the headers on the storage and /mcp endpoints (packages/websocket/src/cors.ts) |
| NODETOOL_LOCAL_FILE_ROOTS | Directories the file browser and local-file previews may read | no | Platform-delimited (: on POSIX, ; on Windows), ~ expands. Default: the user’s home directory. Both surfaces are disabled when NODETOOL_ENV=production. See Security hardening |
| PROJECTS_DIR | Folder new projects are created in | no | Default ~/NodeTool. Each new project gets <PROJECTS_DIR>/<project name>, with ` 2, 3 and so on added when the name is taken. Must be an absolute path to a writable directory. Settings → Integrations → Folders overrides the environment variable on a local install, and that directory must already exist. With NODETOOL_ENV=production only the environment variable applies. Existing projects keep their folders when it changes. Not used when NODETOOL_WORKSPACE_STORAGE=cloud |
| NODETOOL_WORKSPACES_DIR | Root for the folders NodeTool manages outside PROJECTS_DIR | no | Default /workspaces`. Personal's [project folder](/workspaces.html#project-folders) from before project folders and each native game's folder live here. In production it is the **only** readable local folder: a folder row pointing at another host folder is refused by `listFiles` and the download route. Point it at a mounted volume on a server |
| `NODETOOL_WORKSPACE_STORAGE` | Workspaces as folders on disk or objects in the asset bucket | no | `local` or `cloud`. Default `cloud` when `NODETOOL_ENV=production`, `local` otherwise. A cloud workspace is the key prefix `workspaces//` in the asset storage, so it survives the machine being replaced. Nodes and agent tools use the same `Workspace` interface either way. Set `local` on a self-hosted server with a mounted volume, or `cloud` on a local install pointed at S3 |
| `NODETOOL_PROJECT_MIGRATION` | Whether the upgrade into project folders asks first | no | `auto` confirms the [migration from before project folders](/workspaces.html#upgrading-from-before-project-folders) at startup with the configured `PROJECTS_DIR`, for headless servers and tests. Unset, the desktop app and a local server ask the user first. A cloud or production server migrates without asking either way |
| `OPENAI_API_KEY` / `ANTHROPIC_API_KEY` / `GEMINI_API_KEY` | Provider access | yes | Set only the providers you use |
| `HF_TOKEN` / `FAL_API_KEY` / `REPLICATE_API_TOKEN` | HuggingFace, fal and Replicate providers | yes | Optional per workflow |
| `HF_API_TOKEN` / `HUGGING_FACE_HUB_TOKEN` | Alternate spellings of `HF_TOKEN` for Hub requests | yes | The Hub client takes the first non-empty of `HF_TOKEN`, `HF_API_TOKEN`, `HUGGING_FACE_HUB_TOKEN`, trimmed, so an environment configured for `huggingface_hub` works unchanged. The resolved token is cached in-process, so changing it needs a restart |
| `HF_TOKEN_PATH` | Token file read when none of the three variables is set | yes | `~` expands. Default `/token`, which with `HF_HOME` unset is `$XDG_CACHE_HOME/huggingface/token`, then `~/.cache/huggingface/token` (the file `huggingface-cli login` writes). A missing or unreadable file reads as no token, so a typo gives an anonymous Hub request |
| `HUGGINGFACE_API_KEY` | Key the `huggingface` **inference** nodes send | yes | Resolution order: stored secret `HF_TOKEN`, stored secret `HUGGINGFACE_API_KEY`, then the same two names from the environment. The token needs the *Inference Providers* permission, which a Hub read token lacks. With none of the four set, the node throws `HF_TOKEN is not configured`. The Hub client never reads this name |
| `HF_HUB_CACHE` | Directory holding the `models--*` folders of the HuggingFace cache | no | Used verbatim, `~` expands. Unset, NodeTool tries `HUGGINGFACE_HUB_CACHE`, then `$HF_HOME/hub`, then `$XDG_CACHE_HOME/huggingface/hub`, then `~/.cache/huggingface/hub`, the order the Python `huggingface_hub` library uses, so the server and the worker see one cache. The server uses it for Model Manager downloads, the installed list, `nodetool models hf-cache` and `download-hf`, node-llama-cpp, and whisper.cpp. The desktop app sets `HF_HOME` for server and worker: your `HF_HOME`, else `$XDG_CACHE_HOME/huggingface`, else `~/.cache/huggingface`. When `XDG_CACHE_HOME` is set (Flatpak does) but `~/.cache/huggingface/hub` already holds models, the app keeps `~/.cache/huggingface` so an update does not hide them |
| `NODETOOL_HF_DOWNLOAD_CONCURRENCY` | Files of one HuggingFace repo downloaded at once | no | Default `8`. A positive integer, anything else falls back. The server and the Python worker read it. Lower it (`=2`) when a repo with many shards draws HTTP 429 from the Hub |
| `OLLAMA_API_URL` | Ollama base URL | no | Default `http://127.0.0.1:11434`. Set it in **Settings → Integrations → Local Model Servers** or the environment, and a stored value wins. Ollama must be running, NodeTool does not start it |
| `OLLAMA_CONTEXT_LENGTH` | Context window in tokens, sent to Ollama as `num_ctx` with every chat request | no | Unset, NodeTool uses the model's Modelfile `num_ctx`, else the model's trained length capped at `32768`. Ollama's own default is a few thousand tokens and drops the oldest part of a long prompt |
| `OLLAMA_KEEP_ALIVE` | How long Ollama keeps a model loaded after a request | no | Default `10m`. Ollama's duration syntax: `30m`, `-1` to keep forever, `0` to unload immediately. See [Models & Providers](/models-and-providers.html) |
| `LMSTUDIO_API_URL` | Base URL of LM Studio's local server | no | Default `http://127.0.0.1:1234`, trailing slashes stripped. A value stored in **Settings → Integrations → Local Model Servers** wins. See [Providers › LM Studio](/providers.html) |
| `LMSTUDIO_API_KEY` | Bearer key sent to the LM Studio server | yes | Default `lm-studio`. Set only when the server requires authentication |
| `VLLM_BASE_URL` | Base URL of a self-hosted, OpenAI-compatible vLLM server | no | **Required** for the provider, with no default. Constructing it without one throws `VLLM_BASE_URL is required (options.baseURL, secret, or env)`. Trailing slashes stripped. Models come from the server's `/v1/models`. See [Providers › vLLM](/providers.html) |
| `DASHSCOPE_BASE_URL` | Region endpoint for Alibaba Cloud Model Studio (Qwen) | no | Default `https://dashscope-intl.aliyuncs.com/compatible-mode/v1` (international, Singapore). Keys are region-scoped, so set your region's `/compatible-mode/v1` endpoint when the key was created elsewhere. A stored setting of the same name wins, and key verification probes whichever endpoint resolves. See [Providers › Alibaba Cloud](/providers.html) |
| `DATA_FOR_SEO_LOGIN` / `DATA_FOR_SEO_PASSWORD` | DataForSEO credentials behind the `web_search` capability | `DATA_FOR_SEO_PASSWORD` | Both required, read from the stored secret first, then the environment. `web_search` runs the first *configured* backend of `serpapi`, `dataforseo`, `openai`, `gemini` unless the call pins one with `provider`, so these take effect when `SERPAPI_API_KEY` is unset. DataForSEO serves web, news and image search at `https://api.dataforseo.com`, defaulting to location code `2840` (United States) and language `en`. Once a backend runs, its failure is the call's failure and nothing falls through |
| `KIE_WEBHOOK_URL` | Public base URL kie.ai calls back when a task finishes | no | Unset, kie tasks are polled. Set, a submission carries `callBackUrl: /api/kie/webhook?token=` and the run waits for that request, so kie.ai must be able to reach it from the internet. The callback is refused without the token. Trailing slashes stripped. Needs `KIE_WEBHOOK_SECRET` or `SECRETS_MASTER_KEY`, else tasks are polled |
| `KIE_WEBHOOK_SECRET` | Secret the kie.ai callback token is derived from | no | Unset, the token is derived from `SECRETS_MASTER_KEY`. Every replica must derive the same token |
| `GITHUB_CLIENT_ID` / `GITHUB_CLIENT_SECRET` | OAuth App credentials for the GitHub sign-in flow at `/api/oauth/github/*` | `GITHUB_CLIENT_SECRET` | Without the id, `/api/oauth/github/start` answers `500` naming it. The redirect URI is built from the request's `Host`: `http:///api/oauth/github/callback` for `localhost`, `https://…` otherwise. Register exactly that. Read from the process environment, not the secret store, so a value entered only in **Settings** never reaches it |
| `GOOGLE_CLIENT_ID` / `GOOGLE_CLIENT_SECRET` | OAuth client the server refreshes an expired Google access token with | `GOOGLE_CLIENT_SECRET` | The pair configured for the Google provider in the Supabase dashboard. Supabase does not refresh provider tokens, so without them a Google credential stops working an hour after sign-in and the server logs `Google token expired but GOOGLE_CLIENT_ID/GOOGLE_CLIENT_SECRET are unset`. Set them wherever `NODETOOL_GOOGLE_WORKSPACE` is on |
| `NODE_LLAMA_CPP_MODELS_DIR` | Directory the `node_llama_cpp` provider loads GGUF models from | no | Unset, the llama.cpp cache (`LLAMA_CACHE`). A secret of the same name wins |
| `MODEL_FOLDERS` | Extra folders the `node_llama_cpp` and `stable_diffusion_cpp` providers search, subfolders included | no | Separate with `;` or newlines. Fits a ComfyUI `models` folder. llama.cpp lists GGUF language models, stable-diffusion.cpp lists `.safetensors` checkpoints that include their VAE and text encoders. See [Providers](/providers.html) |
| `LLAMA_CPP_CONTEXT_LENGTH` | Context size in tokens `llama-server` was started with (`-c`) | no | The server does not report it, so the `llama_cpp` provider budgets prompts with this value. Unset, the model's published context window |
| `WAN2GP_MCP_URL` | MCP endpoint of a Wan2GP server you run, for the `lib.wan2gp` nodes and the `wangp` provider | no | Empty uses the Wan2GP installed in the Package Manager, then `http://127.0.0.1:7866/mcp`. A node's non-blank `server_url` wins. A changed value applies to the next call. See [Wan2GP](/wan2gp.html) |
| `WAN2GP_MCP_TOKEN` | Bearer token for a Wan2GP server behind an authenticating proxy | yes | Sent on every request when set. See [Wan2GP](/wan2gp.html) |
| `NODETOOL_TORCH_DEVICE` | Device Python nodes run PyTorch on | no | `cuda`, `cuda:`, `mps`, or `cpu`. Unset: MPS, then CUDA, then CPU. See [Python Nodes](/server-configuration.html#python-nodes) |
| `WHISPER_CPP_MODELS_DIR` | Extra directory for whisper.cpp GGML and VAD models | no | The Hugging Face hub cache is always scanned |
| `WHISPER_CPP_GPU_BACKEND` | whisper.cpp backend: `auto`, `metal`, `cuda`, `vulkan`, or `cpu` | no | `auto` uses Metal on macOS. On Windows and Linux it tries the CUDA build, then Vulkan, then CPU. Restart after changing |
| `WHISPER_CPP_SERVER_URL` | Base URL of a user-run whisper-server | no | Required for `whisper_cpp_server` |
| `NODE_LLAMA_CPP_GPU_BACKEND` | GPU backend node-llama-cpp runs against | no | `auto`, `metal`, `cuda`, `vulkan`, or `cpu`, case-insensitive. Any other value is ignored and the library chooses. A secret of the same name wins |
| `LLAMA_CACHE` | Cache root checked for GGUF files a separate `llama.cpp` already downloaded | no | The variable `llama.cpp` reads. Default `~/Library/Caches/llama.cpp` on macOS, `%LOCALAPPDATA%\llama.cpp` on Windows, `$XDG_CACHE_HOME/llama.cpp` or `~/.cache/llama.cpp` on Linux. Consulted only when the file is not in the HuggingFace cache. On Linux with `XDG_CACHE_HOME` set and `LLAMA_CACHE` unset, the desktop app sets it to `~/.cache/llama.cpp` while only that directory holds files, so models downloaded before a Flatpak update stay visible. Replaces `LLAMA_CPP_CACHE_DIR`, which is no longer read |
| `TRANSFORMERS_JS_CACHE_DIR` | Cache directory for the Transformers.js runtime | no | Default `/transformers-js-cache`. Set it in **Settings → Integrations → Local Model Servers** or the environment. It sits outside `~/.cache/huggingface` because Transformers.js uses a flat `{cacheDir}/{repo_id}/{file_path}` layout the Python `huggingface_hub` cache cannot share |
| `NODETOOL_FEATURES` | Pack features `nodetool serve` loads | no | Comma-separated `feature-id=installed-package` entries, for example `code=@nodetool-ai/server-feature-sandbox`. Unset, the minimal server runs core nodes only. An entry that is not `feature-id=package` stops startup. Packages must already be installed. `nodetool server serve` loads every installed pack instead. See [Minimal execution server](../packages/server-minimal/README.md) |
| `NODETOOL_USER_ID` | User that owns data when the CLI or `nodetool serve` runs with a single token | no | Default `1`. A single `NODETOOL_API_TOKEN` authenticates this user. `NODETOOL_TOKENS` maps each token to its own user ID instead. See [CLI](../packages/cli/README.md#start-an-authenticated-server) |
| `NODETOOL_CLI` | `nodetool` executable the MCP pack tools run | no | Default: `nodetool` found on `PATH`. Set it to an absolute path when the CLI is not on `PATH`. The tools run `nodetool packs ...` with it |
| `NODETOOL_INTEGRATION_TOKEN` | Service token for messaging-bridge integrations (Telegram bot) | yes | At least 16 characters. Enables `/api/integrations/:provider/*` (account linking, delegated tokens). Unset, those routes do not exist. Set the same value on the bridge process. See [telegram-bot-design.md](/telegram-bot-design.html) §5 |
| `NODETOOL_PUBLIC_URL` | HTTPS base URL reachable by browsers and hosted provider callbacks | no | Trailing slashes stripped. Used for integration link URLs, FAL callbacks at `/api/providers/fal/webhook/:token`, and AtlasCloud callbacks at `/api/providers/atlascloud/webhook`. Provider callbacks are sent only when this is a valid `https` URL on a public host. An http, loopback, or private address is ignored. Unset, local FAL requests poll the queue. AtlasCloud predictions are polled either way, every 15s while one is outstanding. Integration links fall back to the request's `Host`, which helps when a bridge reaches the server at an address the browser cannot, such as `http://nodetool:7777` in a compose network. See [telegram-bot-design.md](/telegram-bot-design.html) §5 |
| `NODETOOL_WEB_URL` | Origin of the web app when this server does not serve it | no | MCP OAuth: `/oauth/authorize` sends the browser to `/oauth/consent`. Must be `https`, or `http` on loopback. Any other value is ignored. Unset, consent opens on this server. See [Connect claude.ai](/mcp-production.html#connect-claudeai) |
| `TELEGRAM_BOT_USERNAME` | Bot username for the Telegram link deep link | no | Without the `@`. Set, Settings → Integrations renders `t.me/?start=` links. Unset, the UI shows the bare code for manual `/start` entry |
| `NODETOOL_API_URL` | Server the CLI and the Telegram bridge talk to | no | Default for `--api-url` on the read commands (`workflows`, `jobs`, `assets`, `models list/ollama/huggingface`), which otherwise read the local database. An explicit `--api-url` wins. The Telegram bridge defaults to `http://127.0.0.1:7777`. See [CLI](/cli.html) |
| `TELEGRAM_BOT_TOKEN` | Bot token from @BotFather | yes | Read by the `nodetool telegram` bridge, not the server. Unset, `nodetool telegram serve` refuses to start and names the field. See [CLI › `nodetool telegram`](/cli.html#nodetool-telegram) |
| `TELEGRAM_WEBHOOK_URL` | Absolute `https://` URL Telegram delivers updates to | no | Unset means `getUpdates` long polling, the only mode implemented. Setting it makes `nodetool telegram serve` **refuse to start** |
| `TELEGRAM_WEBHOOK_SECRET` | Verified against the `X-Telegram-Bot-Api-Secret-Token` header | yes | Required whenever `TELEGRAM_WEBHOOK_URL` is set. Config validation rejects the pair otherwise |
| `NODETOOL_GOOGLE_WORKSPACE` | Force the Google Workspace integration (Drive, Gmail, Docs, Sheets, Calendar) on or off | no | `1`/`true` on, `0`/`false` off. Unset follows Supabase auth mode, because the `google` capability signs in with the token a Google login returns. Set `1` on a local server pointed at a hosted Supabase project |
| `NODETOOL_SYSTEM_STATS` | Force the `system_stats` WebSocket broadcast (the editor's CPU/RAM readout) on or off | no | `1`/`true` on, `0`/`false` off. Unset follows Supabase auth mode: a shared server sends nothing, because the figures describe a container the user does not own. Set `1` on a local server pointed at a hosted Supabase project. `NODE_ENV` is not consulted |
| `DB_PATH` / `DATABASE_URL` | Database connection | no | Set only one. `DB_PATH` configures SQLite. `DATABASE_URL` takes PostgreSQL (`postgres://`, `postgresql://`) or SQLite (`file:`, `sqlite:`) |
| `DATABASE_POOL_MAX` | Maximum PostgreSQL connections one server process opens | no | Default 10. A Supabase session-mode pooler (port 5432 on `pooler.supabase.com`) holds one server connection per client and rejects new clients with `EMAXCONNSESSION` at its pool size, so this value times the number of server processes must stay below that size. A transaction-mode URL (port 6543) shares connections, and the server turns off prepared statements for it |
| `DIRECT_URL` | PostgreSQL URL for migration commands and the release-phase migration runner | no | Resolution order: `--direct-url`, `--database-url`, `DIRECT_URL`, `DATABASE_URL`. With none, the command fails naming all four. On Supabase use the project's **direct** connection URL, so migrations do not exhaust the pooler's session limit. See [CLI › Database Migrations](/cli.html#database-migrations) |
| `NODETOOL_STORAGE_AUTO_CLEANUP` | Expire database history on a schedule | no | `1` or `true` (trimmed, case-insensitive). Unset, `0`, or anything else keeps the sweep manual. It sets only the **default** for the per-user `storage.retention.automaticCleanup` setting, and a value saved from the UI wins. On, the server sweeps at startup and every 6 hours, and a sweep does work only if the last finished more than 24 hours ago. It removes workflow autosaves past 10 per workflow or 7 days, manual versions past 90 days, terminal jobs past 30 days, run events past 30 days, and the `parameters`/`metadata`/`logs` columns of predictions past 400 days (prediction rows are billing records and survive). Current workflows, assets, messages, memories, and authored documents are never candidates. Each window is overridable per user under `storage.retention.*`. The startup sweep runs for user `1` only |
| `NODETOOL_ERROR_TRACES` | Server-side error trace capture | no | On by default. `0`, `false` or `off` stops it. See [Error Tracing](/error-tracing.html) |
| `NODETOOL_ERROR_TRACE_RETENTION_DAYS` | Days an error trace is kept | no | Default 30. Pruned at startup and daily |
| `NODETOOL_ERROR_TRACE_SYNC_URL` / `NODETOOL_ERROR_TRACE_SYNC_TOKEN` | Push redacted error traces to another NodeTool server | yes | Both required, or sync stays off. The URL must be `https` except for localhost. The token is an access token for that server |
| `NODETOOL_STORAGE_ALLOWANCE_BYTES` | Storage allowance of each owner for files sent to the cloud, in bytes | no | Unset or empty means unlimited. A value that is not a whole number of bytes stops startup. Use counts every distinct file in the owner's projects once, including files that only saved versions and deleted documents keep. Over it, generations and uploads are refused. |
| `NODETOOL_STORAGE_BACKEND` | Storage backend (`file`, `s3`, `supabase`) | no | Default `file`. See [Storage Backend Selection](/storage.html#asset-storage-backends) |
| `ASSET_FOLDER` / `STORAGE_PATH` | Directory for assets on the local filesystem | no | `ASSET_FOLDER` wins, then `STORAGE_PATH`, then `/assets` (`~/.local/share/nodetool/assets`, or `%APPDATA%\nodetool\assets` on Windows). Used verbatim, so a relative path resolves against the working directory. It is the `file` backend's root and also what the CLI harnesses (`nodetool run`, `debug`, `node run`, `eval`) read and write directly, whatever the backend. In Docker, point it at the mounted volume or job containers cannot reach the assets. See [Storage](/storage.html) |
| `S3_*` | S3-compatible storage settings | yes | Access keys, region, endpoint |
| `ASSET_BUCKET` / `TEMP_BUCKET` | Asset and temp buckets (s3 / supabase backends) | no | Use signed URLs for private buckets |
| `NODETOOL_VECTOR_PROVIDER` / `VECTORSTORE_DB_PATH` | Vector store backend and SQLite path | no | Default SQLite-vec. `pinecone` and `supabase` are remote. See [Indexing](/collections.html) |
| `NODETOOL_VECTOR_SCHEMA` | PostgreSQL schema the `supabase` vector provider reads and writes | no | Default `public`. Read only when `NODETOOL_VECTOR_PROVIDER=supabase`. Set it when `packages/vectorstore/sql/supabase-migration.sql` was installed into another schema. See [Vector storage](/vector-storage.html) |
| `NODE_SUPABASE_URL` / `NODE_SUPABASE_KEY` / `NODE_SUPABASE_SCHEMA` / `NODE_SUPABASE_TABLE_PREFIX` | User/node Supabase project | `NODE_SUPABASE_KEY` | Kept separate from core Supabase credentials and tables |
| `NODETOOL_RATE_LIMIT_DISABLED` | Disable per-IP HTTP rate limiting | no | On by default. Localhost is always exempt |
| `NODETOOL_RATE_LIMIT_MAX` | Max HTTP requests per window per IP | no | Default `1000` |
| `NODETOOL_RATE_LIMIT_WINDOW_MS` | Rate-limit window length | no | Default `60000` |
| `NODETOOL_RATE_LIMIT_TRUST_PROXY` | Key the limiter by `X-Forwarded-For` (`req.ip`) instead of the socket address | no | Enable **only** behind a trusted proxy that sets the header |
| `NODETOOL_WS_RATE_LIMIT_DISABLED` | Disable the per-connection WebSocket inbound message cap | no | On by default |
| `NODETOOL_WS_RATE_LIMIT_MAX` | Max inbound WS messages per window per connection | no | Default `200`. Over-cap clients are closed with code `1008` |
| `NODETOOL_WS_RATE_LIMIT_WINDOW_MS` | WebSocket rate-limit window length | no | Default `1000` |
| `NODETOOL_WS_HEALTH_DISABLED` | Disable the per-connection ping and idle-timeout watchdog | no | On by default. It terminates half-open peers that never sent a close frame |
| `NODETOOL_WS_PING_INTERVAL_MS` | How often each WebSocket peer is pinged | no | Default `20000` |
| `NODETOOL_WS_IDLE_TIMEOUT_MS` | Peer silence before the connection is terminated | no | Default `70000`. Keep above the client's own 45s liveness threshold |
| `NODETOOL_WS_MAX_BUFFERED_BYTES` | Outbound buffer per connection before sends wait for drain | no | Default `8388608` (8 MiB) |
| `NODETOOL_WS_DRAIN_TIMEOUT_MS` | How long a send waits for a slow reader before it is dropped | no | Default `30000`. The drop uses code `1001` so clients reconnect |
| `NODETOOL_WS_MAX_QUEUED_FRAMES` | Undelivered inbound frames per connection before it is closed | no | Default `2000`. Closes with code `1008` |
| `NODETOOL_WS_MAX_MESSAGE_BYTES` | Largest inbound WebSocket frame accepted before deserializing | no | Default `268435456` (256 MiB). MsgPack can expand a small frame into a huge structure, so the raw length is checked first. A non-numeric or non-positive value falls back to the default |
| `NODETOOL_MAX_UPLOAD_BYTES` | Largest payload a single storage upload may write | no | Default `1073741824` (1 GiB) for cloud and in-memory storage, `2147483648` (2 GiB) for local file storage reads and writes, including media staging. An explicit value applies to both. Same strict parsing as the frame cap |
| `NODETOOL_DISABLE_TRIGGERS` | Skip trigger ingestion on this process (no dispatcher, scheduler, file watcher, or webhook route) | no | On by default. Set `1` when a second server shares one database, or for an embedded server that must not start background work |
| `NODETOOL_DISABLE_SDK_LIFECYCLE_V1` | Turn off `/api/sdk/v1/capabilities`, `/preflight`, and `/assets/temporary` | no | `1` only. Disabled, each answers `503` with `{"code": "SDK_LIFECYCLE_DISABLED"}`. `/api/sdk/v1/models` and the model-download routes stay available. See [API Reference › What This Server Supports](/api-reference.html#what-this-server-supports) |
| `NODETOOL_DISABLE_SDK_WORKFLOW_INTERFACE_V1` | Turn off `GET /api/sdk/v1/workflows/:id/interface`, `POST /api/sdk/v1/workflow-interfaces`, `GET /api/sdk/v1/workflows`, and `GET /api/sdk/v1/node-types` | no | `1` only. Disabled, they answer `503` with `{"code": "SDK_WORKFLOW_INTERFACE_DISABLED"}`, except `node-types`, which reports `SDK_NODE_TYPE_INVENTORY_DISABLED` |
| `NODETOOL_REQUIRE_SDK_AUTH_V1` | Require a token on the SDK **discovery** routes even when the server does not enforce auth | no | `1` only. `capabilities`, `models`, and `node-types` are otherwise auth-exempt in local trust mode. Set it when a local-mode server is reachable beyond loopback. Routes that read a workflow library always need session auth, and an auth-enforcing server requires the token regardless |
| `NODETOOL_EXTENSION_DIST` | Directory holding the built Chrome extension served by `/api/extension/download` | no | The desktop app sets it to its bundled copy. Unset, or pointing at a directory with no `manifest.json`, the server walks up from its own directory and the working directory looking for `chrome-extension/dist`. See [Chrome Extension](/chrome-extension.html#downloading-a-prebuilt-copy) |
| `NODETOOL_BROWSER_TRANSPORT` | Which browser the `browser_*` capabilities drive | no | `extension` drives the user's signed-in Chrome through the native host's socket. Anything else or unset launches a headless Chrome in the process (`local`). A `browser_restart` call pins the transport for the process and wins. See [Chrome Extension](/chrome-extension.html) |
| `NODETOOL_BROWSER_BRIDGE_SOCKET` | Socket of the native host to use | no | Default: the newest `.sock` in `/nodetool-browser-bridge-/`. The host also listens here when set in its environment. Set it to pin one extension when several browsers run the host |
| `NODETOOL_ENABLE_MCP` | Keep the `/mcp` streamable-HTTP mount when `NODETOOL_ENV=production` | no | Off in production unless exactly `1`, on elsewhere. The mount inherits the server's auth mode and binds the user the auth hook resolved, so an unauthenticated request gets `401` at initialize. A session id belongs to the user who opened it: another user presenting it gets `404`. Disabled, the server logs that at startup and does not register the route. Agents authenticate with a token minted in **Settings → MCP → Connect an agent remotely**. See [MCP on a production server](/mcp-production.html) |
| `NODETOOL_DISABLE_MCP_OAUTH` | Turn off the MCP OAuth 2.1 authorization-server surface | no | `1` only. Disabled, `/mcp` sends no `WWW-Authenticate` challenge, `/.well-known/oauth-*`, `/oauth/authorize`, `/oauth/token`, `/oauth/register`, and `/oauth/revoke` return 404, and outstanding `nta_` access tokens are refused immediately. Pasting an `ntk_` token stays the only way to connect. Desktop sign-in keeps working on those routes for the `nodetool-native` client. The flow has no enable flag: it activates wherever `/mcp` is mounted once `NODETOOL_PUBLIC_URL` is an HTTPS or loopback URL. See [MCP OAuth design](/mcp-oauth-design.html) |
| `NODETOOL_DISABLE_NATIVE_SIGNIN` | Turn off sign-in from the NodeTool desktop apps | no | `1` only. New sign-ins are refused with `access_denied`, outstanding `ntd_` access tokens are refused, and refreshing one returns `invalid_grant`. `POST /oauth/session/end` keeps working so apps can sign out. See [Desktop sign-in](/authentication.html#desktop-sign-in) |
| `NODETOOL_MCP_URL` | `/mcp` endpoint the `.mcpb` bundle's stdio bridge connects to | no | Read by the bridge ([`scripts/mcpb/bridge.mjs`](https://github.com/nodetool-ai/nodetool/blob/main/scripts/mcpb/bridge.mjs)), not the server. Default `http://127.0.0.1:7777/mcp`. Claude Desktop writes it from the bundle's **NodeTool server URL** field. For a deployed server, pair it with a token. See [MCP on a production server](/mcp-production.html) |
| `NODETOOL_MCP_TOKEN` | Bearer token the `.mcpb` bridge sends with every forwarded request | yes | From the bundle's **Auth token (optional)** field. Unset, no `Authorization` header is sent, which a loopback server in local auth mode expects. A remote server needs an `ntk_` token minted in **Settings → MCP → Connect an agent remotely** |
| `NODETOOL_MCP_RETRY_MS` | How often the `.mcpb` bridge retries while the server is unreachable | no | Default `5000`. No config field, so set it in the client's own environment. The bridge starts with nothing to connect to, serves a single `nodetool_status` tool, and attaches with `list_changed` notifications once the server appears |
| `NODETOOL_APP_BUILD_PROVIDER` / `NODETOOL_APP_BUILD_MODEL` | Provider and model `POST /api/applications/build` falls back to | no | Read only when the request body omits `provider` / `model`, and the body wins. With neither the body nor both variables set, the build is refused with `invalid_input` naming them. The judge model is `NODETOOL_APP_JUDGE_MODEL`, see [CLI › `nodetool app`](/cli.html#nodetool-app) |
| `NODETOOL_DESKTOP_USER_DATA` | The desktop app's `userData` directory, the data root when `NODETOOL_HOST=desktop` | no | Electron sets it with `NODETOOL_HOST=desktop`, and a value already set wins. Runtime-install directories (`optional-node`, `uv-tools`, `micromamba`) resolve under it. With `NODETOOL_HOST=desktop` and no value, runtime-location lookup throws `The desktop host must supply its userData directory`. Other hosts ignore it. See [Runtime install design](/runtime-install-design.html#51-hosts) |
| `NODETOOL_HOST_BINARY_CONCURRENCY` | Host binaries (`yt-dlp`) the media capabilities may run at once | no | Default `2`, the rest queue. Read per spawn as a whole number ≥ 1, anything else keeps the default |
| `NODETOOL_APIFY_MODE` | Which Apify actors the `apify` capabilities may search and run | no | `disabled`, `allowlist`, `discovery` (default), or `unrestricted`. An unrecognized value falls back to `discovery`. `discovery` searches the whole store, runs allowlisted actors directly, and sends anything else through the permission gate. `allowlist` refuses store search and runs only allowlisted actors. `unrestricted` runs any actor. See [Integrations on Your Server](/integrations-hosting#apify) |
| `NODETOOL_APIFY_ALLOWED_ACTORS` | Actor ids added to the allowlist | no | Comma-separated, canonicalized, blanks dropped. **Added to** the shipped catalog, never replacing it. Applies in `allowlist` mode, and in `discovery` mode decides which actors run without asking |
| `NODETOOL_APIFY_MAX_RUNS` | Actor runs one session may start | no | Default `10`. A value that is not a positive number falls back to the default, as for the four below |
| `NODETOOL_APIFY_MAX_ITEMS` | Result items one actor run may return | no | Default `1000` |
| `NODETOOL_APIFY_MAX_RUN_SECONDS` | Seconds one actor run may take | no | Default `300` |
| `NODETOOL_APIFY_MAX_MEMORY_MB` | Memory in MB one actor run may be given | no | Default `4096` |
| `NODETOOL_APIFY_MAX_COST_USD` | Total Apify spend one session may incur, in USD | no | Default `5` |
| `APIFY_API_TOKEN` | Apify API token for the `apify` capabilities and Apify-backed web search | yes | From `console.apify.com/account/integrations`. `APIFY_API_KEY` is a deprecated alias still read as a fallback. See [Apify](/apify-integration.html) |
| `SERP_PROVIDER` | Search provider behind web search | no | `serpapi` (default), `dataforseo`, `brave`, `apify`, `openai`, or `gemini`. Stored secret first, then environment. See [SerpAPI integration](/serpapi-integration.html) |
| `BRAVE_API_KEY` | Brave Search API key | yes | Required when `SERP_PROVIDER` is `brave`. From `api-dashboard.search.brave.com` |
| `BLENDER_PATH` | Blender executable for the `nodetool.blender` nodes and 3D renders | no | Checked first. Unset, NodeTool looks for `blender` on `PATH`, then the usual install locations for macOS, Linux, and Windows. Blender 5.2 or newer is required. See [Blender](/blender) |
| `NODETOOL_CREDIT_MODELS` | Managed models hosted credits may be spent on | no | Separated by commas, whitespace, or newlines. Unset means the whole `nodetool` provider catalog. A model not listed is refused before a platform key is used. See [Costs and credits](/costs-and-credits.html) |
| `NODETOOL_SIGNUP_CREDITS` | One-time credits granted to a user seen for the first time | no | Default `500`. Fractions round down. `0`, a negative number, or a non-number grants nothing |
| `NODETOOL_PLATFORM_FAL_KEY` / `NODETOOL_PLATFORM_ANTHROPIC_KEY` | Platform-owned fal and Anthropic keys the `nodetool` provider runs managed models on | yes | A managed model is offered only when its delegate provider's key is set. Cloud only. See [Costs and credits](/costs-and-credits.html) |
| `NODETOOL_SUPERVISOR_PROVIDER` / `NODETOOL_SUPERVISOR_MODEL` | Provider and model that supervise a run when nothing nearer names one | no | Consulted only for a run that asked to be supervised. On the server the order is the request, the connection's defaults, then these, which exist for hosts with no per-connection defaults, such as the trigger dispatcher. A supervised run that resolves neither logs that and runs unsupervised. The CLI reads `NODETOOL_SUPERVISOR_MODEL` alone as one `provider/model` string behind `--supervisor-model`, default `anthropic/claude-sonnet-4-6`. See [CLI › Supervised runs](/cli.html#supervised-runs) |
| `NODETOOL_CHAT_COMPACTION_TOKENS` | Prompt size at which a chat turn summarizes the earlier thread | no | Unset, 90% of the model's input window. The window comes from the provider's Models API (Anthropic `max_input_tokens`, with beta headers), then [models.dev](https://models.dev), then a 128000-token fallback that logs a warning. On a small window the threshold drops so the summarizer call still fits. Prompt size is the larger of the provider-reported size of the last call and a local estimate. A provider that holds the conversation itself (a resumed session, the Claude Agent SDK) compacts only when it reports the transcript no longer fits |
| `NODETOOL_CHAT_COMPACTION_KEEP_TURNS` | User turns a compaction leaves verbatim | no | Default `4`. Earlier turns become the summary, and the cut lands on a user message so a tool call is never separated from its result |
| `NODETOOL_COMPACTION_MODEL` | Model that writes the compaction summary | no | `provider/model`, or a bare model id on the turn's provider. Unset, the turn's own model. A failed summarizer leaves the thread uncompacted and the turn runs against the full history |
| `NODETOOL_INSTANCE_ID` | Which server instance this process is, for multi-instance routing | no | Overrides `FLY_MACHINE_ID`, which the proxy's `fly-replay: instance=` header also addresses, so one string stamps a job row and routes a handshake back to the instance that owns the run. Letters, digits, `_` and `-` only, because it is written into a response header. Anything else is refused with a one-time warning. Unset or refused means single-machine and every feature keyed off it is inert |
| `NODETOOL_JOB_CANCEL_POLL_MS` | How often an instance re-reads its running jobs to notice a remote cancel | no | Default `15000`, `0` disables. Unparseable or negative keeps the default. Matters only with `NODETOOL_INSTANCE_ID` / `FLY_MACHINE_ID`. A cancel at the instance holding the run is immediate |
| `NODETOOL_SHUTDOWN_GRACE_MS` | How long SIGTERM waits for aborted turns and runs to settle before exit | no | Default `240000`, under Fly's 300 s cap. Unparseable or negative keeps the default. It bounds only the fallback path, since a deploy drains with SIGUSR2 first and waits on `/health` with no deadline. Turns still running at expiry are logged and dropped, leaving transcripts incomplete. See [WebSocket API › Draining](/websocket-api.html#draining) |
| `NODETOOL_VIDEO_FRAME_FALLBACK` / `_MAX_FRAMES` / `_MAX_FPS` / `_MAX_DIMENSION` | Frame sampling for video sent to providers with no video content part | no | Prefix each with `NODETOOL_VIDEO_FRAME`. See [Video Input on Vision Models](/server-configuration.html#video-input-on-vision-models) |
| `NODETOOL_SHIPPED_PACKS_DIR` | Roots the sandbox packs shipped with NodeTool are read from | no | Comma-, semicolon-, or `PATH`-separator-delimited, like `NODETOOL_PACK_SEARCH_PATHS`. Missing paths are dropped, so a bad path yields no packs rather than an error. Unset, the loader looks for `_sandbox/` beside the bundled `server.mjs` (desktop app, Docker image), then `packages/sandbox-packs` (a checkout). See [Sandbox package design](/sandbox-package-design.html) |
| `NODETOOL_SYSTEM_SKILLS_DIR` | Root the shipped system skills are read from | no | One path. Unset, the loader looks for `_skills/` beside the bundled `server.mjs`, then `packages/system-skills` (a checkout). A missing path means no system skills, not an error. Each skill is a `SKILL.md` under a directory that names it, and a frontmatter `name` that disagrees with the directory, or an unparseable file, is skipped. Read once per process. See [Agent Architecture › Skills](https://github.com/nodetool-ai/nodetool/blob/main/docs/AGENTS.md#skills) |
| `NODETOOL_CACHE_DIR` | Per-user cache root for derived artifacts NodeTool can rebuild | no | Safe to delete, and separate from the data directory. Unset: `%LOCALAPPDATA%\nodetool\cache` on Windows, `$XDG_CACHE_HOME/nodetool` or `~/.cache/nodetool` elsewhere. Compiled sandbox guest modules live in `sandbox-modules/` under it, cached by content digest. See [Sandbox package design](/sandbox-package-design.html) |
| `NODETOOL_PACKAGE_MEDIA_CACHE` | Directory where downloaded package media is kept | no | Defaults to `package-media` inside the NodeTool cache directory. Each file is stored under its SHA-256 plus the original extension, and a cached file is reused only when its size matches. Fill it with `npm run media:pull` |
| `NODETOOL_PACKAGE_ASSETS_DIR` | Directory `package:///` refs resolve from on disk | no | The server sets it at startup to the first package-assets root it finds, so in-process execution reads bytes directly instead of calling its own `/api/assets/packages/…` route. Set it yourself only when embedding the runtime with no server. Refs are confined to the root, and a path escaping it is refused |
| `NODETOOL_BASE_EXAMPLES_DIR` | Directory the shipped example workflows are read from | no | Overrides detection when it exists. A missing path is ignored. Unset, the server looks beside its entry point (packaged), then `packages/base-nodes/nodetool/examples/nodetool-base` (monorepo). With none found it logs `Examples directory not found` and template workflows are unavailable. The resolved path is logged at startup |
| `NODETOOL_EXAMPLE_COMPOSITIONS_DIR` | Directory the shipped timeline compositions are read from | no | A path that does not exist is **not** ignored: no shipped compositions load and `list_compositions` returns only the user's own. Unset, the loader looks for `examples/compositions` beside the bundled `server.mjs`, then `packages/base-nodes/nodetool/examples/compositions` (a checkout) |
| `NODETOOL_EXAMPLE_GAMES_DIR` | Directory the shipped example games (`*.game.json`) are read from | no | A missing path yields no example games, with no fallback to detection. Unset, the loader walks up to eight directories from the module for `examples/games`, then `packages/base-nodes/nodetool/examples/games` |
| `NODETOOL_EXAMPLE_TIMELINES_DIR` | Directory the shipped example timelines (`*.timeline.json`) are read from | no | Same resolution as `NODETOOL_EXAMPLE_GAMES_DIR`, searching `examples/timelines` and then `packages/base-nodes/nodetool/examples/timelines` |
| `NODETOOL_DISABLE_DURABLE_GENERATIONS` | `1` turns off durable queue tracking for fal.ai generations started in a chat session | no | Other values keep it on. By default a fal.ai generation is recorded in the database when accepted, so a restart can recover it. Other providers never use it. The code reserves this for an ephemeral test or local host. See [Media generation tracking](/media-generation-tracking-design.html) |
| `NODETOOL_PYTHON` / `NODETOOL_PYTHON_ON_DEMAND` / `NODETOOL_WORKER_NAMESPACES` | Python interpreter, lazy worker start, namespace filter | no | `NODETOOL_PYTHON_ON_DEMAND` is `true` or `false` (default `false`), a stored value wins, and it is read at startup. See [Python Nodes](/server-configuration.html#python-nodes) |
| `NODETOOL_ALLOW_PRIVATE_MEDIA_FETCH` | Let a media ref be fetched from a private address or over plain http | no | Exactly `1`. Media refs are otherwise fetched under the default egress policy: https, public host, every redirect hop re-checked. For a self-hosted install that serves media off its LAN. Affects media-ref fetches only. See [URL egress inventory](/url-egress-inventory.html) |
| `NODETOOL_ALLOW_PYTHON_BRIDGE_IN_PRODUCTION` | Let the Python bridge connect when `NODETOOL_ENV=production` | no | Exactly `1`. Otherwise a production server refuses to spawn the worker |
| `NODETOOL_PYTHON_EXECUTE_TIMEOUT_MS` | How long one Python node invocation may run | no | Default `720000` (12 minutes) |
| `NODETOOL_PYTHON_STATUS_TIMEOUT_MS` | How long a worker status request waits | no | Default `30000` |
| `NODETOOL_PYTHON_DOWNLOAD_IDLE_TIMEOUT_MS` | Silence from a worker-side model download before it is abandoned | no | Default `300000` (5 minutes). Idle time, not total, so a slow download that keeps reporting progress is not cut off |
| `NODETOOL_PACK_SEARCH_PATHS` | Extra `node_modules` directories to load node packs from | no | Comma-, semicolon-, or `PATH`-separator-delimited (`:` is not a separator on Windows, so drive letters survive). Missing paths are dropped. Searched before the walk up from the working directory. See [Node Packs](/node-packs.html) |
| `NODETOOL_OPTIONAL_NODE_MODULES` | A single extra `node_modules` directory for pack loading | no | The one-path form of `NODETOOL_PACK_SEARCH_PATHS`, and both are read. The desktop app points the loader at its bundled install root with it |
| `NODETOOL_PACKS_REQUIRE_ALLOWLIST` | Default `allowUnlisted` to false without production mode | no | `1` only. The trust default `NODETOOL_ENV=production` gives, without turning off the local-only features. The packaged desktop app sets it, because its optional-node directory holds user-installed code but it needs the Python bridge and file browser. An explicit `allowUnlisted` in `packs.json` wins |
| `NODETOOL_PACKS_ALLOWLIST` | Node packs trusted to load, comma-separated names | no | Whitespace trimmed, empty entries dropped. The environment layer of the allowlist `packs.json` holds under `allow`, and it wins over the file. It is an ephemeral override (`NODETOOL_PACKS_ALLOWLIST=nodetool-base,my-pack nodetool serve`), and a partial trust update written back to disk ignores it. Unset, the file's `allow` applies, then an empty list. It decides which *listed* packs are trusted. Whether unlisted packs load is `NODETOOL_PACKS_REQUIRE_ALLOWLIST` and `NODETOOL_ENV`. See [Node Packs](/node-packs.html) |
| `NODETOOL_PACKS_CONFIG` | Path to the node-pack trust file | no | Default `~/.config/nodetool/packs.json` on every platform, anchored at the OS home directory. JSON with optional keys `allow` (pack names), `allowUnlisted` (boolean), `enabledBuiltins` and `disabledBuiltins` (arrays). A missing or unparseable file reads as no configuration |
| `NODETOOL_CHAT_DETACH_GRACE_MS` / `_REPLAY_RETENTION_MS` / `_REPLAY_BUFFER_EVENTS` | Chat turn replay: abort-after-detach, finished-turn retention, frames buffered | no | Prefix each with `NODETOOL_CHAT`. Defaults `0` (disabled), `300000`, `2000`. See [Chat turn replay](/server-configuration.html#chat-turn-replay) |
| `NODETOOL_JOB_DETACH_GRACE_MS` / `_REPLAY_RETENTION_MS` / `_REPLAY_BUFFER_EVENTS` | Job run replay: cancel-after-detach, finished-run retention, frames buffered | no | Prefix each with `NODETOOL_JOB`. Defaults `600000`, `300000`, `2000`. See [Job run replay](/server-configuration.html#job-run-replay) |
| `LOG_LEVEL` / `NODETOOL_LOG_LEVEL` | Logging level | no | Default `info`. `NODETOOL_LOG_LEVEL` takes precedence |
| `NODETOOL_LOG_FILE` | File logs are appended to instead of stderr | no | Opened once in append mode. A path that cannot be opened falls back to stderr silently. `nodetool-chat` sets it to `~/.nodetool/chat.log` (and the level to `error`) when unset, so the TUI's rendering is not interleaved with log lines |
| `NODETOOL_TRACE_FILE` | Append every workflow, agent and LLM span as JSONL to this path | no | One `TraceRecord` JSON span per line, the shape the stdout sink emits. Parent directories are created. Equivalent to `--trace-file` in [CLI › Global Options](/cli.html#global-options), which wins. With no sink configured, telemetry is skipped and no SDK is loaded |
| `NODETOOL_TRACE_STDOUT` | Write the same spans to stdout | no | `pretty` for a tree, `json` for JSONL. `1` and `true` mean `pretty`, any other value is off. `--trace-stdout` sets it per run and `--no-trace-stdout` overrides it. Distinct from `OTEL_TRACES_EXPORTER=console` |
| `OTEL_EXPORTER_OTLP_ENDPOINT` | OTLP backend spans are exported to | no | A base URL, with `/v1/traces` appended (Jaeger or a local collector: `http://localhost:4318`). Sends OTLP/HTTP JSON. Spans carry `gen_ai.usage.input_tokens`, `output_tokens`, and `cost_usd` |
| `OTEL_EXPORTER_OTLP_TRACES_ENDPOINT` | Full OTLP traces URL | no | Used as given. Wins over `OTEL_EXPORTER_OTLP_ENDPOINT` |
| `TRACELOOP_API_KEY` | Export the same spans to Traceloop cloud | yes | Sent as `Authorization: Bearer ` to `https://api.traceloop.com/v1/traces`. `OTEL_EXPORTER_OTLP_ENDPOINT` wins over the Traceloop URL when both are set, and the key is still sent as the header |
| `OTEL_SERVICE_NAME` | `service.name` tag on every exported span | no | Default `nodetool` |
| `OTEL_TRACES_EXPORTER` | Print spans through the OTel SDK's console exporter | no | `console` exactly, other values ignored. Independent of the sinks above and coarser than `NODETOOL_TRACE_STDOUT=pretty` |
| `TRACELOOP_DISABLE_BATCH` | Flush each span as it ends instead of batching | no | `true` exactly. OTLP exporter only. A short-lived CLI run can otherwise exit before spans are sent |
| `SECRETS_MASTER_KEY` | Master key for secret encryption | yes | See [Secret Storage and Master Key](/server-configuration.html#secret-storage-and-master-key) |
| `AWS_SECRETS_MASTER_KEY_NAME` | Removed. Setting it makes secret resolution throw at startup | no | AWS Secrets Manager sourcing of the master key is gone. The variable is still checked so an upgrade fails loudly instead of generating a fresh key that would orphan every secret encrypted under the old one. Read the key out of AWS Secrets Manager, set it as `SECRETS_MASTER_KEY`, and unset this |
| `RUNPOD_API_KEY` | RunPod deployments | yes | Used by the CLI and providers |
| `NODETOOL_CONTAINER_RUNTIME` | Container runtime the self-hosted deploy tooling drives | no | `docker` or `podman`, any other value ignored. Unset, a local target probes for `docker` then `podman` and falls back to `docker`, and a remote target resolves the same way in its shell. Set `podman` on a host with both. See [Deployment](/deployment.html) |
| `NODETOOL_WORKER_URL` | WebSocket URL of a running Python worker to attach to | no | A `ws://` or `wss://` address (e.g. `ws://127.0.0.1:7777`) makes workflows with Python nodes attach to that worker, the only transport allowed in production. Unset or blank, NodeTool spawns `python -m nodetool.worker` locally, gated to non-production. `nodetool worker create --attach` prints the `export` line. See [Worker deployment](/worker-deployment.html) |
| `NODETOOL_WORKER_TOKEN` | Worker bearer token for admin endpoints | yes | Rotate regularly. Also sent by the WebSocket bridge as `Authorization: Bearer ` on connect and every reconnect. Unset or empty, no header is sent. Read only when `NODETOOL_WORKER_URL` selects the remote transport. Print one with `nodetool worker token ` |
| `NODETOOL_ADMIN_TOKEN` | Admin bearer token the `nodetool deploy` user and database subcommands send to a remote deployment | yes | Equivalent to `--token`, which wins. With neither, an interactive shell prompts and a non-interactive one exits `1`. See [Deployment](/deployment.html) |
| `NODETOOL_TIMELINE_RENDERER` | Skip headless Chromium when `RenderTimeline` renders a timeline | no | `node` (case-insensitive) renders with the Node compositor, which decodes and encodes with libav in process and needs a WebGPU adapter. Anything else tries Chromium first. A host with no Chromium or no adapter falls back to the Node compositor, then to a rough cut. `metadata.render_mode` on the output reports `browser`, `composited` or `rough_cut`. The `packages/video-nodes` test config sets it to `node` |
nodetool settings show prints a fixed subset of resolved values from the process environment. It does not read .env files or stored secrets.