Reference

Config Reference

Environment variables and config precedence generated from the current source readers.

Pack-authored sandbox settings live in YAML (see Sandbox & E2B); the tables appended below cover worker and API runtime knobs discovered from checked-in Go config readers and .env.example.

See also

This page is generated from the config readers in the API server, worker, CLI, and the checked-in backend example environment file.

CLI precedence

  • API URL: --api-url > AGENTCLASH_API_URL > saved user config > http://localhost:8080
  • Workspace: --workspace > AGENTCLASH_WORKSPACE > project config > user config
  • Output format: --json > --output > user config > table

API Server Environment

VariableDefaultDescription
AGENT_TRYOUT_ANONYMOUS_WINDOW_SECONDS24 * time.HourRead by backend/internal/api/config.go.
AGENT_TRYOUT_E2B_TEMPLATE_IDRead by backend/internal/api/config.go.
AGENT_TRYOUT_OPENAI_API_KEY_SECRET_NAMERead by backend/internal/api/config.go.
AGENTCLASH_SECRETS_MASTER_KEYRead by backend/internal/api/config.go.
API_SERVER_BIND_ADDRESS":8080"Bind address for the API server process.
APP_ENV"development"Select deployment environment behavior.
ARTIFACT_MAX_UPLOAD_BYTES100 << 20Upper bound for artifact upload size accepted by the API server.
ARTIFACT_SIGNED_URL_TTL_SECONDS5 * time.MinuteExpiry window for signed artifact URLs returned by the API server.
ARTIFACT_SIGNING_SECRETSigning secret for artifact URL generation; required outside local filesystem dev mode.
ARTIFACT_STORAGE_BACKEND"filesystem"Choose filesystem or S3-compatible artifact storage.
ARTIFACT_STORAGE_BUCKET"agentclash-dev-artifacts"Artifact bucket or logical container name.
ARTIFACT_STORAGE_FILESYSTEM_ROOTfilepath.Join(os.TempDir(Local artifact root when the filesystem backend is in use.
ARTIFACT_STORAGE_S3_ACCESS_KEY_IDAccess key for S3-compatible artifact storage.
ARTIFACT_STORAGE_S3_ENDPOINTOptional custom endpoint for S3-compatible artifact storage.
ARTIFACT_STORAGE_S3_FORCE_PATH_STYLEtrueToggle path-style addressing for S3-compatible storage.
ARTIFACT_STORAGE_S3_REGIONRegion for S3-compatible artifact storage.
ARTIFACT_STORAGE_S3_SECRET_ACCESS_KEYSecret key for S3-compatible artifact storage.
AUTH_MODE"dev"Select dev headers or WorkOS-backed authentication for the API.
CORS_ALLOWED_ORIGINSAllowed browser origins for the API in WorkOS mode.
DATABASE_URL"postgres://agentclash:agentclash@localhost:5432/agentclash?sslmode=disable"Postgres connection string.
DODO_API_BASE_URLRead by backend/internal/api/config.go.
DODO_ENVIRONMENT"test"Read by backend/internal/api/config.go.
DODO_PAYMENTS_API_KEYRead by backend/internal/api/config.go.
DODO_PAYMENTS_WEBHOOK_KEYRead by backend/internal/api/config.go.
DODO_PRODUCT_PRO_MONTHLYRead by backend/internal/api/config.go.
DODO_PRODUCT_PRO_YEARLYRead by backend/internal/api/config.go.
DODO_PRODUCT_TEAM_MONTHLYRead by backend/internal/api/config.go.
DODO_PRODUCT_TEAM_YEARLYRead by backend/internal/api/config.go.
FRONTEND_URLPublic web origin used in emails and CLI auth links.
GITHUB_APP_PRIVATE_KEYRead by backend/internal/api/config.go.
GITHUB_APP_SLUGRead by backend/internal/api/config.go.
GITHUB_APP_STATE_SECRETRead by backend/internal/api/config.go.
GITHUB_WEBHOOK_SECRETRead by backend/internal/api/config.go.
HOSTED_RUN_CALLBACK_SECRET"agentclash-dev-hosted-callback-secret"Shared secret for hosted-run callback authentication.
RESEND_API_KEYEnable invite email sending through Resend.
RESEND_FROM_EMAILSender address for invite emails.
TEMPORAL_HOST_PORT"localhost:7233"Temporal frontend address.
TEMPORAL_NAMESPACE"default"Temporal namespace used by the API and worker.
WORKOS_CLIENT_IDWorkOS client ID used when the API is in workos auth mode.
WORKOS_ISSUEROptional WorkOS issuer override for JWT validation.

Worker Environment

VariableDefaultDescription
AGENTCLASH_SECRETS_MASTER_KEYRead by backend/internal/worker/config.go.
APP_ENV"development"Select deployment environment behavior.
ARTIFACT_SANDBOX_ASSET_MAX_BYTES100 << 20Read by backend/internal/worker/config.go.
ARTIFACT_STORAGE_BACKEND"filesystem"Choose filesystem or S3-compatible artifact storage.
ARTIFACT_STORAGE_BUCKET"agentclash-dev-artifacts"Artifact bucket or logical container name.
ARTIFACT_STORAGE_FILESYSTEM_ROOTfilepath.Join(os.TempDir(Local artifact root when the filesystem backend is in use.
ARTIFACT_STORAGE_S3_ACCESS_KEY_IDAccess key for S3-compatible artifact storage.
ARTIFACT_STORAGE_S3_ENDPOINTOptional custom endpoint for S3-compatible artifact storage.
ARTIFACT_STORAGE_S3_FORCE_PATH_STYLEtrueToggle path-style addressing for S3-compatible storage.
ARTIFACT_STORAGE_S3_REGIONRegion for S3-compatible artifact storage.
ARTIFACT_STORAGE_S3_SECRET_ACCESS_KEYSecret key for S3-compatible artifact storage.
DATABASE_URL"postgres://agentclash:agentclash@localhost:5432/agentclash?sslmode=disable"Postgres connection string.
E2B_API_BASE_URLOptional E2B API base URL override.
E2B_API_KEYAPI key for the E2B sandbox provider.
E2B_REQUEST_TIMEOUT30*time.SecondTimeout for E2B sandbox API calls.
E2B_TEMPLATE_IDTemplate ID for the E2B sandbox provider.
GITHUB_APP_PRIVATE_KEYRead by backend/internal/worker/config.go.
HOSTED_RUN_CALLBACK_BASE_URL"http://localhost:8080"Base URL the worker uses when calling hosted-run callback endpoints.
HOSTED_RUN_CALLBACK_SECRET"agentclash-dev-hosted-callback-secret"Shared secret for hosted-run callback authentication.
SANDBOX_PROVIDER"unconfigured"Choose unconfigured or e2b for native sandbox execution.
TEMPORAL_HOST_PORT"localhost:7233"Temporal frontend address.
TEMPORAL_NAMESPACE"default"Temporal namespace used by the API and worker.
WORKER_IDENTITYdefaultWorkerIdentity(Logical worker identity label.
WORKER_ORPHAN_RUN_REAPER_THRESHOLD15 * time.MinuteRead by backend/internal/worker/config.go.
WORKER_SHUTDOWN_TIMEOUT10 * time.SecondGraceful shutdown timeout for the worker process.

CLI Environment

VariableDefaultDescription
AGENTCLASH_API_URLOverride the CLI API base URL.
AGENTCLASH_DEV_ORG_MEMBERSHIPSInject development org memberships into the CLI dev-auth path.
AGENTCLASH_DEV_USER_IDInject a development user ID for CLI dev mode.
AGENTCLASH_DEV_WORKSPACE_MEMBERSHIPSInject development workspace memberships into the CLI dev-auth path.
AGENTCLASH_ORGOverride the default organization ID for CLI commands.
AGENTCLASH_TOKENProvide a CLI token directly, mainly for CI or automation.
AGENTCLASH_WORKSPACEOverride the default workspace ID for CLI commands.

Backend Example Environment

VariableDefaultDescription
AGENTCLASH_SECRETS_MASTER_KEYPresent in the backend example environment file.
API_SERVER_BIND_ADDRESS:8080Bind address for the API server process.
APP_ENVdevelopmentSelect deployment environment behavior.
AUTH_MODEdevSelect dev headers or WorkOS-backed authentication for the API.
DATABASE_URLpostgres://agentclash:agentclash@localhost:5432/agentclash?sslmode=disablePostgres connection string.
DODO_ENVIRONMENTtestPresent in the backend example environment file.
DODO_PAYMENTS_API_KEYPresent in the backend example environment file.
DODO_PAYMENTS_WEBHOOK_KEYPresent in the backend example environment file.
DODO_PRODUCT_PRO_MONTHLYPresent in the backend example environment file.
DODO_PRODUCT_PRO_YEARLYPresent in the backend example environment file.
DODO_PRODUCT_TEAM_MONTHLYPresent in the backend example environment file.
DODO_PRODUCT_TEAM_YEARLYPresent in the backend example environment file.
E2B_API_BASE_URLOptional E2B API base URL override.
E2B_API_KEYAPI key for the E2B sandbox provider.
E2B_REQUEST_TIMEOUT30sTimeout for E2B sandbox API calls.
E2B_TEMPLATE_IDTemplate ID for the E2B sandbox provider.
FRONTEND_URLhttp://localhost:3000Public web origin used in emails and CLI auth links.
HOSTED_RUN_CALLBACK_BASE_URLhttp://localhost:8080Base URL the worker uses when calling hosted-run callback endpoints.
HOSTED_RUN_CALLBACK_SECRETagentclash-dev-hosted-callback-secretShared secret for hosted-run callback authentication.
REDIS_URLredis://localhost:6379Enable Redis-backed event fanout and related features.
RESEND_API_KEYEnable invite email sending through Resend.
RESEND_FROM_EMAILnoreply@agentclash.devSender address for invite emails.
SANDBOX_PROVIDERunconfiguredChoose unconfigured or e2b for native sandbox execution.
TEMPORAL_HOST_PORTlocalhost:7233Temporal frontend address.
TEMPORAL_NAMESPACEdefaultTemporal namespace used by the API and worker.
WORKER_IDENTITYagentclash-worker-localLogical worker identity label.
WORKER_SHUTDOWN_TIMEOUT10sGraceful shutdown timeout for the worker process.
WORKOS_CLIENT_IDWorkOS client ID used when the API is in workos auth mode.
WORKOS_ISSUEROptional WorkOS issuer override for JWT validation.

Source pointers

  • backend/internal/api/config.go
  • backend/internal/worker/config.go
  • cli/internal/config/manager.go
  • backend/.env.example