Neptune

Environment Variables

All configuration options for Neptune

Environment Variables

Neptune is configured via environment variables and CLI flags. CLI flags take precedence.

AI / LLM

VariableDescription
ANTHROPIC_API_KEYAnthropic API key for AI analysis, decompilation, and chat
OPENAI_API_KEYOpenAI API key for Neptune chat (alternative to Anthropic)
NEPTUNE_CHAT_PROVIDERChat provider: anthropic or openai (auto-detects if unset)
NEPTUNE_CHAT_MODELChat model override (default: Claude Sonnet 4 or gpt-5.5)
OPENAI_BASE_URLOpenAI-compatible API base URL (optional)
ANTHROPIC_BASE_URLAnthropic API base URL (optional)

Server

VariableDefaultDescription
NEPTUNE_PORT9090Server bind port
NEPTUNE_DATA_DIR./neptune-dataServer data directory for uploads and results
NEPTUNE_CORS_ORIGINSlocalhost:9090Comma-separated allowed CORS origins
NEPTUNE_RATE_LIMIT_RPM60Requests per minute per IP
NEPTUNE_TRUST_PROXYfalseTrust X-Forwarded-For header (set true behind reverse proxy)
NEPTUNE_DEVSet to 1 to enable dev-only endpoints (e.g., /decompile)

Authentication

VariableDescription
NEPTUNE_API_KEYServer API key (legacy, admin role)
NEPTUNE_ADMIN_KEYAdmin API key (full access)
NEPTUNE_ANALYST_KEYAnalyst API key (read + analyze)
NEPTUNE_VIEWER_KEYViewer API key (read-only)

Object Storage

VariableDescription
BUCKET_ENDPOINTS3-compatible endpoint (Railway auto-injects)
BUCKET_NAMES3 bucket name
BUCKET_REGIONBucket region (default: auto)
AWS_ACCESS_KEY_IDS3 access key
AWS_SECRET_ACCESS_KEYS3 secret key

Signatures

VariableDefaultDescription
NEPTUNE_SIG_DB./neptune-signatures.dbPath to signature database file
NEPTUNE_SIG_REMOTE_URLhttps://signatures.neptune.ripRemote signature server URL

Vulnerability Databases

VariableDescription
NVD_API_KEYNVD API key for higher rate limits

Web Frontend

VariableDefaultDescription
NEPTUNE_API_URLhttp://localhost:9090Backend API URL for Next.js rewrite
NEPTUNE_ADMIN_KEYBackend admin key used to provision per-user API keys on login
NEXT_PUBLIC_APP_URLhttp://localhost:3000Public URL of the frontend (https://neptune.rip in production)
BETTER_AUTH_URLhttp://localhost:3000Public Better Auth URL
BETTER_AUTH_SECRETBetter Auth session secret
BETTER_AUTH_TRUSTED_ORIGINSAdditional trusted origins for Better Auth
AUTH_DATABASE_URLPostgres connection string for web auth and app data
GITHUB_CLIENT_IDGitHub OAuth client ID
GITHUB_CLIENT_SECRETGitHub OAuth client secret
NEXT_PUBLIC_GITHUB_APP_SLUGopencode-agentGitHub App slug for agent integration
AUTUMN_SECRET_KEYAutumn billing/subscription secret key
INVESTOR_PASSWORDPlain-text investor deck password
INVESTOR_PASSWORD_HASHPBKDF2 investor deck password hash

Sandbox (AgentComputer)

VariableDescription
AGENTCOMPUTER_API_KEYAgentComputer API key for --sandbox remote execution

Logging

VariableDefaultDescription
RUST_LOGneptune=infoRust log filter (e.g., neptune=debug)

On this page