-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
44 lines (38 loc) · 1.37 KB
/
.env.example
File metadata and controls
44 lines (38 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Environment Variables for Nanocoder
#
# 1. Copy this file to .env and fill in your actual values
# 2. Reference variables in agents.config.json using $VAR_NAME syntax
#
# Example in agents.config.json:
# {
# "nanocoder": {
# "providers": [{
# "apiKey": "$OPENROUTER_API_KEY",
# "models": ["$PREFERRED_MODEL"]
# }]
# }
# }
# API Keys for AI Providers
OPENROUTER_API_KEY=your-openrouter-api-key-here
ZAI_AUTH_TOKEN=your-zai-api-key-here
ZAI_CODING_AUTH_TOKEN=your-zai-coding-api-key-here
OPENAI_API_KEY=your-openai-api-key-here
# Custom API Base URLs (optional)
API_BASE_URL=your-custom-api-base-url
# Preferred Model Names (optional)
PREFERRED_MODEL=your-preferred-model-name
FALLBACK_MODEL=your-fallback-model-name
# Custom Directory Locations (optional)
# Override default config directory location
# Default: macOS: ~/Library/Preferences/nanocoder
# Linux: ~/.config/nanocoder
# Windows: %APPDATA%\nanocoder
NANOCODER_CONFIG_DIR=/custom/path/to/config
# Override default app data directory location
# Default: macOS: ~/Library/Application Support/nanocoder
# Linux: ~/.local/share/nanocoder (or $XDG_DATA_HOME/nanocoder)
# Windows: %APPDATA%\nanocoder
NANOCODER_DATA_DIR=/custom/path/to/data
# Cross-platform data directory override (mainly for testing)
# Takes precedence over platform-specific defaults
XDG_DATA_HOME=/custom/xdg/data