-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
192 lines (142 loc) · 6.7 KB
/
.env.example
File metadata and controls
192 lines (142 loc) · 6.7 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
# Godel Configuration - OpenClaw Gateway Integration
# Generated: 2026-02-02
# Reference: https://docs.openclaw.ai/gateway/configuration
#
# SECURITY NOTICE: Never commit this file with real values to version control.
# Copy this file to .env and fill in your actual values.
# =============================================================================
# OpenClaw Gateway Configuration
# =============================================================================
# Gateway WebSocket URL (default: ws://127.0.0.1:18789)
OPENCLAW_GATEWAY_URL=ws://127.0.0.1:18789
# Authentication token for OpenClaw Gateway
# Obtain this from your OpenClaw configuration or via `openclaw config get`
OPENCLAW_GATEWAY_TOKEN=your_openclaw_gateway_token_here
# =============================================================================
# OpenClaw-Godel Integration (SPEC-002)
# =============================================================================
# Enable OpenClaw to use Godel as native orchestration platform
OPENCLAW_GODEL_ADAPTER_ENABLED=true
# Webhook URL for forwarding Godel events to OpenClaw
# OpenClaw will receive real-time agent events at this endpoint
OPENCLAW_EVENT_WEBHOOK_URL=https://your-openclaw-instance.com/webhooks/godel
# Event filter - comma-separated list of event types to forward
# Leave empty to forward all events
# Examples: agent.spawned,agent.completed,agent.failed,agent.progress
OPENCLAW_EVENT_FILTER=
# Webhook authentication token (optional)
# If set, events will include Authorization: Bearer header
OPENCLAW_WEBHOOK_AUTH_TOKEN=
# Session identifier (optional, auto-generated if not set)
# OPENCLAW_SESSION=
# =============================================================================
# Godel API Configuration
# =============================================================================
# Internal Godel API for self-improvement orchestration
GODEL_API_URL=http://localhost:7373
# SECURITY: API Key - Must be in format: godel_<prefix>_<64-hex-chars>
# Generate with: node -e "console.log('godel_live_' + require('crypto').randomBytes(32).toString('hex'))"
GODEL_API_KEY=your_secure_api_key_here
# Rate limit: requests per minute (default: 1000)
GODEL_RATE_LIMIT=1000
# CORS allowed origins (comma-separated)
GODEL_CORS_ORIGINS=http://localhost:3000,http://localhost:5173
# =============================================================================
# Security Configuration
# =============================================================================
# SECURITY: Session secret for cookie signing (generate with: openssl rand -base64 32)
SESSION_SECRET=your_session_secret_here_min_32_chars_long
# SECURITY: JWT secret for token signing (generate with: openssl rand -base64 64)
# Minimum 32 characters required, 64+ recommended for production
GODEL_JWT_SECRET=your_jwt_secret_here_min_32_chars_recommended_64
# Node environment: 'development' | 'production' | 'test'
NODE_ENV=development
# =============================================================================
# Database Configuration - PostgreSQL
# =============================================================================
POSTGRES_HOST=localhost
POSTGRES_PORT=5432
POSTGRES_DB=godel
POSTGRES_USER=your_postgres_user
POSTGRES_PASSWORD=your_secure_postgres_password
POSTGRES_SSL=false
# Connection Pool Settings
POSTGRES_MIN_POOL_SIZE=2
POSTGRES_MAX_POOL_SIZE=20
POSTGRES_CONNECTION_TIMEOUT=5000
POSTGRES_IDLE_TIMEOUT=30000
# Retry Settings
POSTGRES_RETRY_ATTEMPTS=3
POSTGRES_RETRY_DELAY=1000
# =============================================================================
# Redis Configuration (for Event Bus)
# =============================================================================
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=your_redis_password_or_leave_empty
REDIS_DB=0
# =============================================================================
# SQLite Database (Legacy - for backward compatibility)
# =============================================================================
# Path to SQLite database file (relative to project root or absolute path)
# Default: ./.godel/godel.db
GODEL_DB_PATH=./.godel/godel.db
# =============================================================================
# Security & Permissions
# =============================================================================
# OpenClaw mode: 'restricted' | 'full'
# - restricted: Limited tools, sandboxed execution
# - full: All tools available
OPENCLAW_MODE=restricted
# Sandbox mode for agent execution: 'none' | 'non-main' | 'docker'
OPENCLAW_SANDBOX_MODE=non-main
# =============================================================================
# Budget & Resource Limits
# =============================================================================
# Default budget per agent (USD)
DEFAULT_AGENT_BUDGET=1.00
# Maximum budget for self-improvement (USD)
SELF_IMPROVEMENT_MAX_BUDGET=10.00
# Maximum tokens per agent
MAX_TOKENS_PER_AGENT=100000
# =============================================================================
# Monitoring Configuration
# =============================================================================
# Grafana Admin Credentials (required, no defaults)
GRAFANA_ADMIN_USER=your_grafana_admin_user
GRAFANA_ADMIN_PASSWORD=your_secure_grafana_password
# pgAdmin Credentials (required, no defaults)
PGADMIN_EMAIL=your_email@example.com
PGADMIN_PASSWORD=your_secure_pgadmin_password
# =============================================================================
# Channel Configuration (for multi-channel routing)
# =============================================================================
# Telegram Bot Token (if using Telegram channel)
# TELEGRAM_BOT_TOKEN=your_telegram_bot_token
# Discord Bot Token (if using Discord channel)
# DISCORD_BOT_TOKEN=your_discord_bot_token
# Slack Tokens (if using Slack channel)
# SLACK_BOT_TOKEN=xoxb-your-slack-bot-token
# SLACK_APP_TOKEN=xapp-your-slack-app-token
# =============================================================================
# Development & Testing
# =============================================================================
# Enable mock mode for testing (no real gateway required)
# MOCK_OPENCLAW=true
# Debug logging level: 'debug' | 'info' | 'warn' | 'error'
LOG_LEVEL=info
# Enable verbose OpenClaw logging
VERBOSE_OPENCLAW=false
# =============================================================================
# Logging Configuration
# =============================================================================
# Service name for log entries
GODEL_SERVICE_NAME=godel
# Log level override (same as LOG_LEVEL)
GODEL_LOG_LEVEL=info
# Loki URL for log queries
LOKI_URL=http://localhost:3100
# Grafana URL for dashboards
GRAFANA_URL=http://localhost:3000
# Log file directory (ensure this exists)
LOG_DIR=./logs