.env file; in production, provide the same variables through your platform’s secret store.
Core URLs
Local defaults:
Database
Run migrations with:
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:
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=trueonly 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.