# --- Model provider ------------------------------------------------------- # The agent runs on any tool-capable model known to @earendil-works/pi-ai. # Default is Cloudflare Workers AI (no key on disk; uses the two vars below). CODEMODE_PROVIDER=cloudflare-workers-ai CODEMODE_MODEL=@cf/moonshotai/kimi-k2.7-code # Workers AI credential (account id + an API token with Workers AI scope). CLOUDFLARE_ACCOUNT_ID= CLOUDFLARE_API_KEY= # To use Anthropic instead: # CODEMODE_PROVIDER=anthropic # CODEMODE_MODEL=claude-sonnet-4-6 # ANTHROPIC_API_KEY=sk-ant-... # --- Self-heal loop knobs -------------------------------------------------- # Confine agent writes to one directory (the hosted demo sets this). CODEMODE_WRITE_SCOPE=src/tools/generated # Skip the agent's own `bun run check` self-verify (minimal sandboxes do this). # CODEMODE_DISABLE_VERIFY=1 # Hard ceilings so a wandering model cannot hang a run. CODEMODE_MAX_TOOL_CALLS=14 CODEMODE_PROMPT_TIMEOUT_MS=150000 CODEMODE_RALPH_NUDGES=0 # --- Deploy (alchemy to molt.coey.dev) ------------------------------------ ALCHEMY_PASSWORD= # Guards the Worker inference proxy and is injected into the container. # Does not expire (the Worker runs inference through its AI binding). MOLT_PROXY_SECRET=