# Core model access # Get your key from https://openrouter.ai/keys OPENROUTER_API_KEY=sk-or-v1-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx OPENROUTER_BASE_URL=https://openrouter.ai/api/v1 OPENROUTER_MODEL=openai/gpt-oss-20b OPENROUTER_HTTP_REFERER= OPENROUTER_TITLE=Prompt Compiler # Agent/swarm/skill generation deadline in seconds (1..120; default 90). # The shorter compiler deadline is configured separately with LLM_TIMEOUT. LLM_GENERATOR_TIMEOUT=90 # Compiler behavior PROMPT_COMPILER_MODE=conservative # Optional instruction review limits (can lower, not raise, the safe defaults) PROMPTC_INSTRUCTION_REVIEW_MAX_FILES=12 PROMPTC_INSTRUCTION_REVIEW_MAX_TOTAL_CHARS=120000 # Optional internal auth hardening (public app routes do not require end-user Prompt Compiler API keys) ADMIN_API_KEY= PROMPTC_REQUIRE_API_KEY_FOR_ALL=false # Optional storage controls DB_DIR=. PROMPTC_UPLOAD_DIR=.promptc_uploads PROMPTC_RAG_DB_PATH= PROMPTC_RAG_ALLOWED_ROOTS= # Optional frontend override NEXT_PUBLIC_API_URL=http://127.0.0.1:8080