|
| 1 | +# Phantom Configuration |
| 2 | +# Copy this file to .env and fill in your values: |
| 3 | +# cp .env.example .env |
| 4 | + |
| 5 | +# ======================== |
| 6 | +# REQUIRED |
| 7 | +# ======================== |
| 8 | + |
| 9 | +# Your Anthropic API key (starts with sk-ant-) |
| 10 | +ANTHROPIC_API_KEY= |
| 11 | + |
| 12 | +# ======================== |
| 13 | +# OPTIONAL: Slack |
| 14 | +# ======================== |
| 15 | +# Create a Slack app: see docs/slack-setup.md or use the manifest at slack-app-manifest.yaml |
| 16 | + |
| 17 | +# Slack bot token (starts with xoxb-) |
| 18 | +# SLACK_BOT_TOKEN= |
| 19 | + |
| 20 | +# Slack app token for Socket Mode (starts with xapp-) |
| 21 | +# SLACK_APP_TOKEN= |
| 22 | + |
| 23 | +# Default Slack channel ID for intro messages (starts with C) |
| 24 | +# SLACK_CHANNEL_ID= |
| 25 | + |
| 26 | +# Owner's Slack user ID (starts with U) - only this user can talk to Phantom |
| 27 | +# SLACK_USER_ID= |
| 28 | + |
| 29 | +# ======================== |
| 30 | +# OPTIONAL: Identity |
| 31 | +# ======================== |
| 32 | + |
| 33 | +# Agent name (default: phantom) |
| 34 | +# PHANTOM_NAME=phantom |
| 35 | + |
| 36 | +# Agent role (default: swe). Options: swe, base |
| 37 | +# PHANTOM_ROLE=swe |
| 38 | + |
| 39 | +# Claude model for the agent brain. |
| 40 | +# Options: |
| 41 | +# claude-sonnet-4-6 - Fast, capable, lower cost (default, recommended) |
| 42 | +# claude-opus-4-6 - Most capable, higher cost |
| 43 | +# PHANTOM_MODEL=claude-sonnet-4-6 |
| 44 | + |
| 45 | +# Domain for public URL (e.g., ghostwright.dev) |
| 46 | +# PHANTOM_DOMAIN= |
| 47 | + |
| 48 | +# ======================== |
| 49 | +# OPTIONAL: Ports |
| 50 | +# ======================== |
| 51 | + |
| 52 | +# HTTP server port (default: 3100) |
| 53 | +# PORT=3100 |
| 54 | + |
| 55 | +# ======================== |
| 56 | +# OPTIONAL: Memory |
| 57 | +# ======================== |
| 58 | + |
| 59 | +# Qdrant URL (default: http://qdrant:6333 in Docker, http://localhost:6333 on bare metal) |
| 60 | +# QDRANT_URL=http://qdrant:6333 |
| 61 | + |
| 62 | +# Ollama URL (default: http://ollama:11434 in Docker, http://localhost:11434 on bare metal) |
| 63 | +# OLLAMA_URL=http://ollama:11434 |
| 64 | + |
| 65 | +# Embedding model (default: nomic-embed-text) |
| 66 | +# EMBEDDING_MODEL=nomic-embed-text |
| 67 | + |
| 68 | +# ======================== |
| 69 | +# OPTIONAL: Docker |
| 70 | +# ======================== |
| 71 | + |
| 72 | +# Docker group ID on the host. The Phantom container needs this to access |
| 73 | +# the Docker socket for creating sibling containers. |
| 74 | +# Find yours with: |
| 75 | +# Linux: stat -c '%g' /var/run/docker.sock |
| 76 | +# macOS: stat -f '%g' /var/run/docker.sock |
| 77 | +# Default 988 works for most Hetzner and cloud VMs. |
| 78 | +# DOCKER_GID=988 |
| 79 | + |
| 80 | +# ======================== |
| 81 | +# OPTIONAL: Email (Resend) |
| 82 | +# ======================== |
| 83 | +# Resend API key for sending email. If set, the agent can send email as |
| 84 | +# {PHANTOM_NAME}@ghostwright.dev (or {PHANTOM_NAME}@{PHANTOM_DOMAIN}). |
| 85 | +# Get a key at: https://resend.com/api-keys |
| 86 | +# RESEND_API_KEY= |
| 87 | + |
| 88 | +# Maximum emails per day (default: 50) |
| 89 | +# PHANTOM_EMAIL_DAILY_LIMIT=50 |
| 90 | + |
| 91 | +# ======================== |
| 92 | +# OPTIONAL: Secret Encryption |
| 93 | +# ======================== |
| 94 | +# 64-character hex string (32 bytes) for encrypting stored credentials. |
| 95 | +# If not set, a key is auto-generated and saved to data/secret-encryption-key. |
| 96 | +# Generate one with: openssl rand -hex 32 |
| 97 | +# SECRET_ENCRYPTION_KEY= |
0 commit comments