Skip to content

Environment Variables

Complete reference for .env configuration. Copy .env.example to .env and set what you need.

API Providers

Anthropic (Native)

VariableRequiredDefaultDescription
ANTHROPIC_AUTH_TOKENYesAPI key or bearer token
ANTHROPIC_BASE_URLNohttps://api.anthropic.comBase URL (also used for OpenRouter)
ANTHROPIC_MODELNoOverride the default model
env
ANTHROPIC_AUTH_TOKEN=sk-ant-...
ANTHROPIC_BASE_URL=https://api.anthropic.com

OpenAI / OpenAI-Compatible

VariableRequiredDefaultDescription
CLAUDE_CODE_USE_OPENAIYes0Set to 1 to enable OpenAI-compatible mode
OPENAI_API_KEYYesAPI key
OPENAI_BASE_URLNohttps://api.openai.com/v1Base URL for OpenAI-compatible providers
OPENAI_MODELNoModel name override
env
CLAUDE_CODE_USE_OPENAI=1
OPENAI_API_KEY=sk-...
OPENAI_BASE_URL=https://opencode.ai/zen/go/v1
OPENAI_MODEL=deepseek-v4-pro:opencode-go

Model Defaults

These set which model variant the platform uses for each tier.

VariablePurpose
ANTHROPIC_DEFAULT_SONNET_MODELModel used for Sonnet-tier tasks (fast, routine)
ANTHROPIC_DEFAULT_HAIKU_MODELModel used for Haiku-tier tasks (lightweight, parallel)
ANTHROPIC_DEFAULT_OPUS_MODELModel used for Opus-tier tasks (heavy reasoning)
env
ANTHROPIC_DEFAULT_OPUS_MODEL=deepseek-v4-pro:opencode-go
ANTHROPIC_DEFAULT_SONNET_MODEL=deepseek-v4-pro:opencode-go
ANTHROPIC_DEFAULT_HAIKU_MODEL=deepseek-v4-pro:opencode-go

Kali Container

VariableDefaultDescription
ALLYSEC_KALI_IMAGEghcr.io/allyseclabs/allysec-kali-full:latestDocker image for the Kali container
ALLYSEC_KALI_CONTAINERallysec-kaliContainer name
ALLYSEC_AUTO_DEPLOY1Auto-pull and deploy the Kali container
ALLYSEC_AUTO_INSTALL1Auto-install missing tools inside the container
GHCR_TOKENGitHub Container Registry token (for private images)
env
ALLYSEC_KALI_IMAGE=ghcr.io/allyseclabs/allysec-kali-full:latest
ALLYSEC_KALI_CONTAINER=allysec-kali
ALLYSEC_AUTO_DEPLOY=1
ALLYSEC_AUTO_INSTALL=1

Knowledge Base

Controls where engagement data, findings, and lessons are stored.

VariableDefaultDescription
KB_CONFIG_TYPEsqliteStorage backend: sqlite, postgres, or dual
PG_CONNECTION_STRINGFull PostgreSQL connection URI (takes precedence over individual vars)
KB_PG_HOSTlocalhostPostgreSQL host
KB_PG_PORT5432PostgreSQL port
KB_PG_DATABASEallysecDatabase name
KB_PG_USERallysecDatabase user
KB_PG_PASSWORDDatabase password
env
# Local SQLite (default, zero config)
KB_CONFIG_TYPE=sqlite

# PostgreSQL
KB_CONFIG_TYPE=postgres
PG_CONNECTION_STRING=postgresql://allysec:password@host:5432/allysec

# Dual — writes to both SQLite and PostgreSQL
KB_CONFIG_TYPE=dual

Credential Pooling

Supply a pool of credentials for testing authentication across multiple targets. The platform rotates through them based on the strategy.

VariableDescription
ALLYSEC_CREDENTIAL_POOLJSON array of credential objects
ALLYSEC_CREDENTIAL_STRATEGYRotation strategy: fill_first, round_robin, random, least_used
env
ALLYSEC_CREDENTIAL_POOL='[{"email":"user1@example.com","password":"pass1"},{"email":"user2@example.com","password":"pass2"}]'
ALLYSEC_CREDENTIAL_STRATEGY=round_robin

Telemetry & Privacy

VariableEffect
DISABLE_TELEMETRY=1Disable usage telemetry
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1Block all non-essential outbound requests

Other

VariableDefaultDescription
API_TIMEOUT_MS300000API request timeout in milliseconds

Quick Start -- Third-Party Models

Released under the MIT License.