Environment Variables
For scripts, CI, and coding agents, prefer environment variables:NULLSPACE_BASE_URL as a base-url alias.
Use NULLSPACE_API_URL for SDK/CLI clients; VITE_NULLSPACE_API_BASE is a
console build-time variable.
For the self-hosted single-host appliance in localhost/no-domain mode:
Login Command
For local interactive use, save an API key and endpoint with:~/.nullspace/config.json. Environment variables still take precedence, so you
can override the saved key or API URL per shell or per project.
If you only need to update the saved key and keep the current API URL, run:
Project .env
When a project needs its own endpoint or key, put a .env file in the current
working directory:
.env files that contain real credentials.
Config Precedence
Credential lookup order is:- Explicit SDK arguments when you are using Python directly.
NULLSPACE_API_KEY,NULLSPACE_API_URL, andNULLSPACE_BASE_URL.- A project
.envin the current working directory. ~/.config/nullspace/config.json.~/.nullspace/config.json.
http://localhost:3000, which
is intended for local development direct API access. The appliance quickstart
uses http://localhost through Caddy.
To see which source won without printing any secrets, run:
env, .env,
xdg-config, legacy-config, or none), and a sha256: key fingerprint —
never the key itself. Add --json for machine-readable output, including
every source consulted. If the legacy ~/.nullspace/config.json exists, the
command prints a one-line pointer to the blessed
~/.config/nullspace/config.json location.