1+ # ZeroClaw Environment Variables
2+ # Copy this file to `.env` and fill in your local values.
3+ # Never commit `.env` or any real secrets.
4+
5+ # ── Core Runtime ──────────────────────────────────────────────
6+ # Provider key resolution at runtime:
7+ # 1) explicit key passed from config/CLI
8+ # 2) provider-specific env var (OPENROUTER_API_KEY, OPENAI_API_KEY, ...)
9+ # 3) generic fallback env vars below
10+
11+ # Generic fallback API key (used when provider-specific key is absent)
12+ API_KEY = your-api-key-here
13+ # ZEROBUILD_API_KEY=your-api-key-here
14+
15+ # Default provider/model (can be overridden by CLI flags)
16+ PROVIDER = openrouter
17+ # ZEROBUILD_PROVIDER=openrouter
18+ # ZEROBUILD_MODEL=anthropic/claude-sonnet-4-6
19+ # ZEROBUILD_TEMPERATURE=0.7
20+
21+ # Workspace directory override
22+ # ZEROBUILD_WORKSPACE=/path/to/workspace
23+
24+ # Reasoning mode (enables extended thinking for supported models)
25+ # ZEROBUILD_REASONING_ENABLED=false
26+ # REASONING_ENABLED=false
27+
28+ # ── Provider-Specific API Keys ────────────────────────────────
29+ # OpenRouter
30+ # OPENROUTER_API_KEY=sk-or-v1-...
31+
32+ # Anthropic
33+ # ANTHROPIC_OAUTH_TOKEN=...
34+ # ANTHROPIC_API_KEY=sk-ant-...
35+
36+ # OpenAI / Gemini
37+ # OPENAI_API_KEY=sk-...
38+ # GEMINI_API_KEY=...
39+ # GOOGLE_API_KEY=...
40+
41+ # Other supported providers
42+ # VENICE_API_KEY=...
43+ # GROQ_API_KEY=...
44+ # MISTRAL_API_KEY=...
45+ # DEEPSEEK_API_KEY=...
46+ # XAI_API_KEY=...
47+ # TOGETHER_API_KEY=...
48+ # FIREWORKS_API_KEY=...
49+ # PERPLEXITY_API_KEY=...
50+ # COHERE_API_KEY=...
51+ # MOONSHOT_API_KEY=...
52+ # GLM_API_KEY=...
53+ # MINIMAX_OAUTH_TOKEN=...
54+ # MINIMAX_API_KEY=...
55+ # MINIMAX_OAUTH_REFRESH_TOKEN=...
56+ # MINIMAX_OAUTH_REGION=global # optional: global|cn
57+ # QIANFAN_API_KEY=...
58+ # DASHSCOPE_API_KEY=...
59+ # ZAI_API_KEY=...
60+ # SYNTHETIC_API_KEY=...
61+ # OPENCODE_API_KEY=...
62+ # VERCEL_API_KEY=...
63+ # CLOUDFLARE_API_KEY=...
64+
65+ # ── Gateway ──────────────────────────────────────────────────
66+ # ZEROBUILD_GATEWAY_PORT=3000
67+ # ZEROBUILD_GATEWAY_HOST=127.0.0.1
68+ # ZEROBUILD_ALLOW_PUBLIC_BIND=false
69+
70+ # ── Storage ─────────────────────────────────────────────────
71+ # Backend override for persistent storage (default: sqlite)
72+ # ZEROBUILD_STORAGE_PROVIDER=sqlite
73+ # ZEROBUILD_STORAGE_DB_URL=postgres://localhost/zeroclaw
74+ # ZEROBUILD_STORAGE_CONNECT_TIMEOUT_SECS=5
75+
76+ # ── Proxy ──────────────────────────────────────────────────
77+ # Forward provider/service traffic through an HTTP(S) proxy.
78+ # ZEROBUILD_PROXY_ENABLED=false
79+ # ZEROBUILD_HTTP_PROXY=http://proxy.example.com:8080
80+ # ZEROBUILD_HTTPS_PROXY=http://proxy.example.com:8080
81+ # ZEROBUILD_ALL_PROXY=socks5://proxy.example.com:1080
82+ # ZEROBUILD_NO_PROXY=localhost,127.0.0.1
83+ # ZEROBUILD_PROXY_SCOPE=zeroclaw # environment|zeroclaw|services
84+ # ZEROBUILD_PROXY_SERVICES=openai,anthropic
85+
86+ # ── Optional Integrations ────────────────────────────────────
87+ # Pushover notifications (`pushover` tool)
88+ # PUSHOVER_TOKEN=your-pushover-app-token
89+ # PUSHOVER_USER_KEY=your-pushover-user-key
90+
91+ # ── Zerobuilder Master Agent ─────────────────────────────────
92+ # URL of the Zerobuilder orchestrator backend (Node.js/Express).
93+ # Must match the PORT in backend/.env
94+ # ZEROBUILDER_ORCHESTRATOR_URL=http://127.0.0.1:3000
95+
96+ # Shared secret — must match ORCHESTRATOR_SECRET in backend/.env
97+ # ZEROBUILDER_ORCHESTRATOR_SECRET=changeme
98+
99+ # ── Builder → Master Agent progress routing ──────────────────
100+ # Set in backend/.env to route Builder Agent progress messages
101+ # through the ZeroClaw gateway instead of sending directly to Telegram.
102+ # ZEROBUILD_GATEWAY_URL=http://127.0.0.1:3001 # ZeroClaw gateway port
103+ # ZEROBUILD_NOTIFY_SECRET=changeme # must match [zerobuilder] orchestrator_secret
104+
105+ # ── Z.AI GLM Coding Plan ───────────────────────────────────────
106+ # Z.AI provides GLM models through OpenAI-compatible endpoints.
107+ # API key format: id.secret (e.g., abc123.xyz789)
108+ #
109+ # Usage:
110+ # zeroclaw onboard --provider zai --api-key YOUR_ZAI_API_KEY
111+ #
112+ # Or set the environment variable:
113+ # ZAI_API_KEY=your-id.secret
114+ #
115+ # Common models: glm-5, glm-4.7, glm-4-plus, glm-4-flash
116+ # See docs/zai-glm-setup.md for detailed configuration.
117+
118+ # ── Web Search ────────────────────────────────────────────────
119+ # Web search tool for finding information on the internet.
120+ # Enabled by default with DuckDuckGo (free, no API key required).
121+ #
122+ # WEB_SEARCH_ENABLED=true
123+ # WEB_SEARCH_PROVIDER=duckduckgo
124+ # WEB_SEARCH_MAX_RESULTS=5
125+ # WEB_SEARCH_TIMEOUT_SECS=15
126+ #
127+ # Optional: Brave Search (requires API key from https://brave.com/search/api)
128+ # WEB_SEARCH_PROVIDER=brave
129+ # BRAVE_API_KEY=your-brave-search-api-key
0 commit comments