Environment Variables

Complete reference of all environment variables.

Environment Variables

Complete reference of all environment variables used by Optima Forge. Copy .env.example to .env and configure as needed.

Core

VariableRequiredDefaultDescription
NODE_ENVNodevelopmentEnvironment: development, production, test
PORTNo3402API server port
FORGE_API_SECRETYesMaster secret for signing API keys
FORGE_ENCRYPTION_KEYYes32-byte encryption key for sensitive data

Database

VariableRequiredDefaultDescription
TURSO_DATABASE_URLYesTurso/libSQL database URL
TURSO_AUTH_TOKENYesTurso authentication token
REDIS_URLYesredis://localhost:6379Redis connection URL
NATS_URLYesnats://localhost:4222NATS JetStream URL

LLM Providers

VariableRequiredDescription
OPENAI_API_KEYNoOpenAI API key
ANTHROPIC_API_KEYNoAnthropic API key
GOOGLE_AI_API_KEYNoGoogle AI (Gemini) API key
MISTRAL_API_KEYNoMistral API key
GROQ_API_KEYNoGroq API key
TOGETHER_API_KEYNoTogether AI API key
FIREWORKS_API_KEYNoFireworks AI API key
DEEPSEEK_API_KEYNoDeepSeek API key
COHERE_API_KEYNoCohere API key

Memory Services

VariableRequiredDefaultDescription
QDRANT_URLNohttp://localhost:6333Qdrant vector DB URL
NEO4J_URINobolt://localhost:7687Neo4j connection URI
NEO4J_USERNoneo4jNeo4j username
NEO4J_PASSWORDNoNeo4j password

Security

VariableRequiredDefaultDescription
SPICEDB_ENDPOINTNolocalhost:50051SpiceDB gRPC endpoint
SPICEDB_TOKENNoSpiceDB pre-shared key
OPA_URLNohttp://localhost:8181OPA policy engine URL

Observability

VariableRequiredDefaultDescription
LANGFUSE_HOSTNohttp://localhost:3000Langfuse host URL
LANGFUSE_PUBLIC_KEYNoLangfuse public key
LANGFUSE_SECRET_KEYNoLangfuse secret key

Forge Connect

VariableRequiredDefaultDescription
FORGE_CONNECT_ENABLEDNofalseEnable Forge Connect
FORGE_CONNECT_PROVIDERNopipedreamConnect provider adapter
PIPEDREAM_CLIENT_IDNoPipedream OAuth client ID
PIPEDREAM_CLIENT_SECRETNoPipedream OAuth client secret
PIPEDREAM_PROJECT_IDNoPipedream project ID

Forge Compute

VariableRequiredDefaultDescription
FLY_API_TOKENNoFly.io API token for Compute machines
FORGE_COMPUTE_BUDGET_CAP_MONTHLYNo100Monthly budget cap in USD