-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy path.env.example
More file actions
78 lines (64 loc) · 2.89 KB
/
.env.example
File metadata and controls
78 lines (64 loc) · 2.89 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
# ============================================================
# onWatch - Multi-Provider API Usage Tracker
# Copy this file to .env and fill in your values
# ============================================================
# --- Synthetic API Configuration ---
# Your Synthetic API key (required if using Synthetic)
# Get it from: https://synthetic.new/settings/api
SYNTHETIC_API_KEY=syn_your_api_key_here
# --- Z.ai API Configuration ---
# Your Z.ai API key (required if using Z.ai)
# Get it from: https://www.z.ai/api-keys
ZAI_API_KEY=your_zai_api_key_here
# Z.ai base URL (optional, defaults to https://api.z.ai/api)
# Only change this if using a custom Z.ai endpoint
ZAI_BASE_URL=https://api.z.ai/api
# --- Anthropic (Claude Code) Configuration ---
# Token for Anthropic usage tracking (optional)
# If not set, onWatch will auto-detect from Claude Code credentials
# (macOS Keychain, Linux keyring, or ~/.claude/.credentials.json)
ANTHROPIC_TOKEN=
# --- Codex Configuration ---
# Codex OAuth access token (recommended if using Codex)
# onWatch can re-read fresh tokens from ~/.codex/auth.json while running,
# but setting CODEX_TOKEN in .env ensures Codex-only startup works reliably.
CODEX_TOKEN=
# --- GitHub Copilot Configuration (Beta) ---
# GitHub Personal Access Token with `copilot` scope
# Required for tracking Copilot premium request usage
# Generate at: https://github.com/settings/tokens (classic token, select `copilot` scope)
COPILOT_TOKEN=
# --- MiniMax Configuration ---
# MiniMax API key for Coding Plan usage tracking
# Get it from: https://platform.minimax.io (API Keys section)
MINIMAX_API_KEY=
# --- OpenRouter Configuration ---
# OpenRouter API key for usage tracking
# Get it from: https://openrouter.ai/keys
OPENROUTER_API_KEY=
# --- Polling Configuration ---
# Interval in seconds between API polls (default: 120)
# Min: 10, Max: 3600
ONWATCH_POLL_INTERVAL=120
# Idle timeout in seconds before a usage session is considered ended (default: 600)
# If no API usage change is detected for this duration, the session closes.
ONWATCH_SESSION_IDLE_TIMEOUT=600
# --- Web Dashboard ---
# Port for the web dashboard (default: 9211)
ONWATCH_PORT=9211
# --- Admin Authentication ---
# Username and password for dashboard access
ONWATCH_ADMIN_USER=admin
ONWATCH_ADMIN_PASS=changeme
# --- Database ---
# Path to SQLite database file (default: ~/.onwatch/data/onwatch.db)
# Leave unset to use the default. Only set this if you need a custom location.
# ONWATCH_DB_PATH=
# --- Logging ---
# Log level: debug, info, warn, error (default: info)
# In background mode (default), logs are stored in the DB directory (default: ~/.onwatch/data/)
# Main daemon log: .onwatch.log (or .onwatch-test.log in --test mode)
# Menubar companion log (macOS menubar builds): menubar.log (or menubar-test.log in --test mode)
# Each file rotates at 50MB with 3 backups (.1, .2, .3)
# In debug mode (--debug), logs go to stdout
ONWATCH_LOG_LEVEL=info