Quick Start
Variables
FENTARIS_AUTH_KEY
Encryption key used to decrypt local credentials in .fentaris/credentials.enc.json.
fentaris doctor checks whether this variable is present before verifying encrypted credentials when a local credential store exists.
Local fentaris secrets and fentaris auth api-key commands resolve the key in this order: --key, the exported process environment, then the discovered project .env. A shell export overrides the project .env.
On the first command that writes an encrypted local credential store, the CLI generates a random project key in .env when no key is configured. Read-only commands do not create a key, and projects without encrypted credentials do not require one. If credentials.enc.json already exists, Fentaris never replaces its missing key automatically; provide the original key so the store remains recoverable.
fentaris secrets setup applies the same precedence and creates the key only when its plan needs the local encrypted backend. It also writes prompted credentialEnv(...) values to .env with file mode 0600. Existing shell values and .env assignments are left unchanged.
Generated dev and start scripts load .env automatically. fentaris dev also loads the discovered project .env before starting the package script.
For an older SDK-only project, update direct launch commands to load the file explicitly, for example node --env-file-if-exists=.env dist/index.js. The core does not mutate process.env or load dotenv files implicitly.
Retain this value through your normal local secret-management process. The same value is required for future reads and updates. Do not commit .env or expose the key in command output.
FENTARIS_GUEST_API_KEY
API key used by runtime health checks for projects that still use a guest user convention.
x-fentaris-api-key header when connecting a client to a proxy that enables API-key identity.
FENTARIS_ADMIN_API_KEY
API key used by runtime health checks for projects that still use an admin user convention.
x-fentaris-api-key header when connecting a client to a proxy that enables API-key identity.
FENTARIS_API_KEY
Fallback API key used by runtime health checks when a guest or admin key is not present.
FENTARIS_EDGE_CONTROL_PLANE_URL
Control-plane base URL used by legacy fentaris-edge login and as the saved default after fentaris edge join device authorization and enrollment.
wss://; ws:// is accepted only for loopback development.
FENTARIS_EDGE_ALLOWED_EXECUTABLES
Comma-separated exact executable paths or basenames that the edge agent may
start after local recipe consent. The default is empty and denies every direct
executable.
FENTARIS_EDGE_ALLOWED_PACKAGES
Comma-separated exact package names that the edge agent may launch through
npx, pnpm, yarn, or bunx. The default is empty.
McpProxyOptions.edge.control so policy review and deployment configuration remain explicit.
Upstream Credential Variables
Servers can also read arbitrary environment variables through credential sources.FENTARIS_CREDENTIALS_UNAVAILABLE; run fentaris secrets setup or follow the manual action for a custom source.