-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy path.env.docker.example
More file actions
98 lines (76 loc) · 3.92 KB
/
.env.docker.example
File metadata and controls
98 lines (76 loc) · 3.92 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
# =============================================================================
# onWatch Docker Environment Configuration
# =============================================================================
# Copy this file to .env and fill in your API keys
# NEVER commit the .env file to version control
# =============================================================================
# -----------------------------------------------------------------------------
# Provider API Keys (optional; providers can be enabled later from Settings)
# -----------------------------------------------------------------------------
# Synthetic API key (optional - leave empty to disable Synthetic provider)
SYNTHETIC_API_KEY=
# Z.ai API key (optional - leave empty to disable Z.ai provider)
ZAI_API_KEY=
ZAI_BASE_URL=https://api.z.ai/api
# Anthropic OAuth token (optional - leave empty to disable Anthropic provider)
# If not set, onWatch will attempt auto-detection from Claude Code credentials
ANTHROPIC_TOKEN=
# GitHub Copilot token (optional - leave empty to disable Copilot provider)
# Use a GitHub PAT with copilot scope
COPILOT_TOKEN=
# Codex OAuth access token (optional - leave empty to disable Codex provider)
# In Docker, set this explicitly if you want Codex tracking enabled.
CODEX_TOKEN=
# Antigravity provider settings (optional - leave disabled if not needed)
# Set ANTIGRAVITY_ENABLED=true to enable provider routing in Docker
ANTIGRAVITY_ENABLED=false
# Optional direct connection settings for Antigravity API
ANTIGRAVITY_BASE_URL=
ANTIGRAVITY_CSRF_TOKEN=
# MiniMax API key (optional - leave empty to disable MiniMax provider)
# Used for MiniMax Coding Plan usage tracking
MINIMAX_API_KEY=
# Gemini CLI provider settings (optional - Beta)
# Set GEMINI_REFRESH_TOKEN to enable Gemini quota tracking in Docker.
# Get the token from a machine with Gemini CLI installed:
# cat ~/.gemini/oauth_creds.json | python3 -c "import json,sys; print(json.load(sys.stdin)['refresh_token'])"
# The refresh token doesn't expire unless revoked. onWatch handles access token refresh automatically.
GEMINI_REFRESH_TOKEN=
# Alternative: set access token directly (expires in ~1hr, not recommended)
# GEMINI_ACCESS_TOKEN=
# Optional: custom OAuth client credentials (has sensible defaults)
# GEMINI_CLIENT_ID=
# GEMINI_CLIENT_SECRET=
# -----------------------------------------------------------------------------
# Web UI Configuration
# -----------------------------------------------------------------------------
# Dashboard HTTP port (default: 9211)
ONWATCH_PORT=9211
# Dashboard authentication username (default: admin)
ONWATCH_ADMIN_USER=admin
# Dashboard authentication password (default: changeme - CHANGE THIS!)
ONWATCH_ADMIN_PASS=changeme
# -----------------------------------------------------------------------------
# Database Configuration
# -----------------------------------------------------------------------------
# SQLite database path (default in Docker: /data/onwatch.db)
# This is mounted as a volume in docker-compose.yml
# ONWATCH_DB_PATH=/data/onwatch.db
# -----------------------------------------------------------------------------
# Polling Configuration
# -----------------------------------------------------------------------------
# Polling interval in seconds (default: 120, min: 10, max: 3600)
ONWATCH_POLL_INTERVAL=120
# Session idle timeout in seconds (default: 600)
ONWATCH_SESSION_IDLE_TIMEOUT=600
# -----------------------------------------------------------------------------
# Logging Configuration
# -----------------------------------------------------------------------------
# Log level: debug, info, warn, error (default: info)
# In Docker, logs are written to stdout (use 'docker logs -f onwatch')
ONWATCH_LOG_LEVEL=info
# -----------------------------------------------------------------------------
# Build Configuration (for docker-compose build)
# -----------------------------------------------------------------------------
VERSION=release
BUILD_TIME=