Skip to main content
Every environment variable Artifacts reads, grouped by area. During local development these come from the monorepo .env file; in production, provide the same variables through your platform’s secret store.
Copy .env.example to .env to start from working local defaults — see the quickstart.

Core URLs

Local defaults:

Database

Run migrations with:
Generate migrations after schema changes:

Authentication

For MCP OAuth, BETTER_AUTH_URL and PUBLIC_APP_URL should match the origin MCP clients can open in a browser.

Storage

Artifacts uses S3-compatible storage. Source objects use keys shaped like:

Billing

Billing uses Dodo Payments. Billing meters:

CLI

Credentials from browser login are stored as a single file with mode 0600:
This file holds the bearer token plus the resolved service URLs, so the CLI stays signed in across runs without an OS keyring or D-Bus session. Override the location with AGENT_ARTIFACTS_CONFIG_DIR. Run artifacts status to inspect the current auth state without a network call, or artifacts logout to delete the file.

Observability

Production Notes

  • Set TRUST_PROXY=true only behind a trusted reverse proxy.
  • Configure exactly one API instance or external scheduler to record billing storage snapshots.
  • Keep auth, Dodo, S3, and API key secrets out of source control.
  • Ensure PUBLIC_APP_URL, BETTER_AUTH_URL, and OAuth redirect URLs all agree.