Skip to main content
Fentaris can map API keys to users, load local encrypted credentials, and pass scoped credentials to upstream MCP servers.

API Key Identity

Generated projects start without API-key identity. Add API-key auth when clients need to authenticate through the x-fentaris-api-key header. Run fentaris auth to add, list, or remove downstream client keys through a guided menu:
The add flow selects a known user or accepts a new user id, then generates a key or accepts an existing key. Fentaris shows a redacted review and requires confirmation before writing. Use the explicit command in automation:
Fentaris stores only a hash of the API key. fentaris auth api-key list shows user key counts, and fentaris auth api-key remove revokes a key when you provide the raw value to match.

Local Credentials

When enabled, local credentials are stored in .fentaris/credentials.enc.json and decrypted with FENTARIS_AUTH_KEY. New stores use a versioned AES-256-GCM envelope with PBKDF2 key derivation metadata. Existing legacy stores remain readable and are rewritten in the newer format after a successful update. On Unix platforms, Fentaris writes credentials.enc.json with owner-only permissions (0600). Automation should pass secret values through FENTARIS_AUTH_KEY, fentaris auth api-key add <user-id> --value-stdin, and fentaris secrets set --value-stdin; interactive prompts are reserved for real terminals so secret values are not echoed in CI logs.
The generated .gitignore excludes .fentaris/ and .env so local secrets do not get committed by default.