-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.yaml
More file actions
58 lines (51 loc) · 1.4 KB
/
Copy pathconfig.example.yaml
File metadata and controls
58 lines (51 loc) · 1.4 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
# hydra config
# Copy to ~/.config/hydra/config.yaml
providers:
# Primary: Claude Code (bypass all permissions)
- name: claude
command: claude
args: ["--dangerously-skip-permissions"]
env: {}
# Fallback 1: OpenCode (Gemini 2.5 Flash — free, 1500 req/day, 1M context)
- name: opencode
command: opencode
args: ["-m", "google/gemini-2.5-flash"]
env:
OPENCODE_PERMISSION: '{"*":"allow"}'
# Fallback 2: Codex (full auto)
- name: codex
command: codex
args: ["--full-auto"]
env: {}
# Fallback 3: Pi (Gemini 2.5 Flash — free)
# If your CLI is installed via nvm, you may need the full path:
# command: /path/to/.nvm/versions/node/v20.19.0/bin/pi
- name: pi
command: pi
args: ["--model", "gemini-2.5-flash"]
env: {}
# Patterns in terminal output that indicate a limit/quota error.
# Case-insensitive. Sourced from actual CLI source code.
limit_patterns:
# Claude Code
- "rate limit"
- "credit balance is too low"
- "overloaded"
- "high load"
- "usage limit"
# OpenCode
- "free usage exceeded"
- "insufficient_quota"
- "too many requests"
- "provider is overloaded"
# Codex
- "quota exceeded"
- "at capacity"
- "high demand"
- "context window exceeded"
# Generic
- "overloaded_error"
# Key to manually trigger provider switch
switch_key: "hydra switch"
# Log file (default: ~/.local/share/hydra/sessions.log)
log_file: ""