AutoMax
Reference

Tokens and keys

Every credential AutoMax can use, what it unlocks, and whether it is mandatory.

What you'll learn

Which environment variables and CLI logins AutoMax reads, what each one enables, and the exact requirement level. Run automax doctor for the same table with live status.

Nothing is mandatory for the platform itself: running suites, screenshots, HAR replay, SQLite, the MCP server over stdio, automax analyze, lint, reports and the dashboard all work with no credential at all. AutoMax's own API tokens are self-issued and free.

Requirement levels

LevelMeaning
mandatoryrequired only when the feature next to it is used
one-ofagents need any one of the rows in the group
optionalturns on an integration
ci-onlyGitHub Actions secrets, never needed locally

Agents (one-of)

CredentialAdapterHow to get itBilling
ANTHROPIC_API_KEYclaudeconsole.anthropic.comAnthropic, per token
Claude Code loginclaude-codenpm i -g @anthropic-ai/claude-code && claude loginyour Claude subscription (or a key the CLI holds)
Codex logincodexnpm i -g @openai/codex && codex loginyour ChatGPT plan (or OPENAI_API_KEY)
OPENAI_API_KEY (+ OPENAI_BASE_URL)openai-compatibleprovider console; OPENAI_BASE_URL for Azure, Ollama, vLLMthe provider

Auto-detection order when nothing is set: ANTHROPIC_API_KEYclaude CLI on PATH → codex CLI on PATH → OPENAI_API_KEYfake. --dry-run and --adapter fake never need a credential.

Platform

VariableRequirementUsed by
SESSION_SECRETmandatory for automax servesession cookie signing (≥ 32 characters; openssl rand -hex 32)
DATABASE_URLmandatory when DB_DRIVER=postgresKysely Postgres dialect; SQLite needs nothing
SQLITE_PATHoptionalSQLite file (default .automax/automax.db)
AUTOMAX_TOKEN (+ AUTOMAX_SERVER_URL)optional, freeMCP over HTTP (/mcp), automax report ingest --server; created with automax tokens create --user <name> --scopes …
AUTH_DISABLED=1optional, development onlymakes every request a local admin

Integrations (optional)

VariableUsed by
GITHUB_TOKENcheck runs, PR comments, issue creation (integrations.github.tokenEnv)
JIRA_EMAIL + JIRA_API_TOKENJira issues, links, transitions (integrations.jira.emailEnv/tokenEnv)

Project YAML stores only the variable names; values stay in .env.<env> or the shell.

CI-only GitHub secrets

SecretWorkflow
FIREBASE_SERVICE_ACCOUNT_AUTOMAX_DOCSdocs.yml, deploys the documentation site
NPM_TOKENrelease.yml, publishes @automax/* (skipped when absent)
AUTOMAX_SERVER_URL + AUTOMAX_TOKENci.yml, uploads results to a hosted AutoMax server (skipped when absent)
DATABASE_URLci.yml fallback ingest straight into Postgres (skipped when absent)

Checking status

bun run automax doctor            # rows cli:claude, cli:codex and a "Tokens and keys" section
bun run automax doctor --json     # { checks: [...], tokens: [{ name, requirement, present, ... }] }

Next steps

On this page