Skip to content

Environment Variables

Fresh

Source: bible/setup.md (Step 3 Configure .env)

Full .env reference for Ghost Engine.

Server

VarDefaultDescription
GHOST_ENGINE_PORT4700HTTP server port
GHOST_ENGINE_API_KEYghost-engine-keyAPI key required in x-api-key header

Encryption

VarDefaultDescription
MINI_ENGINE_KEYmachine-derived32-char encryption key. Used for cookies, fingerprints, passwords (AES-256-GCM)

CAPTCHA solver

VarDefaultDescription
CAPTCHA_SERVICEunsetOne of: 2captcha, anticaptcha, capmonster, deathbycaptcha
CAPTCHA_API_KEYunsetAPI key for the service

Vision provider (ghost mode)

VarDefaultDescription
VISION_PROVIDERunsetOne of: claude, ollama, openai
ANTHROPIC_API_KEYunsetFor Claude provider
OPENAI_API_KEYunsetFor OpenAI provider
OLLAMA_URLhttp://127.0.0.1:11434Ollama endpoint
OLLAMA_VISION_MODELllavaOllama model name

Storage paths

VarDefaultDescription
GHOST_FINGERPRINT_DIR./data/mini-engine-v2/fingerprintsEncrypted fingerprint store
MINI_ENGINE_COOKIE_DIR./data/mini-engine/cookiesEncrypted cookie jars

Notifications (Discord)

VarDescription
DISCORD_WEBHOOK_COOKIE_FAILURESWebhook for cookie refresh failures
DISCORD_WEBHOOK_RANK_CHANGESWebhook for rank movement alerts
DISCORD_WEBHOOK_CAMPAIGN_COMPLETIONCampaign finished
DISCORD_WEBHOOK_ERRORSCritical errors
DISCORD_WEBHOOK_HEALTH_ALERTSAccount health drops

Content gen

VarDescription
GOOGLE_GEMINI_API_KEYGemini content generation
OLLAMA_URLLocal content gen backend

Example .env

env
# Server
GHOST_ENGINE_PORT=4700
GHOST_ENGINE_API_KEY=ghost-engine-key

# Vision (required for ghost mode)
VISION_PROVIDER=claude
ANTHROPIC_API_KEY=sk-ant-...

# Captcha
CAPTCHA_SERVICE=2captcha
CAPTCHA_API_KEY=...

# Notifications
DISCORD_WEBHOOK_COOKIE_FAILURES=https://discord.com/api/webhooks/...
DISCORD_WEBHOOK_RANK_CHANGES=https://discord.com/api/webhooks/...

Required for ghost mode

At minimum:

  • VISION_PROVIDER
  • One matching API key

Required for CAPTCHA bypass

  • CAPTCHA_SERVICE
  • CAPTCHA_API_KEY

Required for basic CTR operation

Nothing. Defaults work for everything except ghost mode and CAPTCHA-protected pages.