Installation & Auth
Authentication
Configure API keys for CLI and MCP.
Both surfaces share the same key. The CLI stores it under ~/.dlazy/config.json; the MCP client reads it back from there or from DLAZY_API_KEY.
Get an API Key
Sign in to dLazy and create or copy a key from the dashboard: https://dlazy.com/dashboard/organization/api-key. Keys start with sk-.
CLI
# Browser-based device-code flow — works on remote SSH / containers.
dlazy login
dlazy login --local # device-code against http://localhost:3000
# Or paste the key directly
dlazy auth set sk-xxxx
# Inspect / reveal
dlazy auth get # masked: sk-***1234
dlazy auth get --show # full key
# Clear
dlazy logoutResolution Order
Every command resolves the key in this order — first hit wins:
--api-key <key>flagDLAZY_API_KEYenvironment variable~/.dlazy/config.json(set bydlazy login/auth set)- Interactive device-code login (TTY only)
DLAZY_BASE_URL (or --base-url) overrides the API origin if you run a self-hosted server.
MCP
Send the key as a Bearer header on every request:
POST https://dlazy.com/mcp
Authorization: Bearer sk-xxxxhttps://...?pid=<projectId> scopes generations to a project; models=a,b narrows the exposed tool set; generate=true enables auto-generate hints.