-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopencode.jsonc
More file actions
84 lines (84 loc) · 2.33 KB
/
opencode.jsonc
File metadata and controls
84 lines (84 loc) · 2.33 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
{
"$schema": "https://opencode.ai/config.json",
// ── Powerbrain Proxy Provider ─────────────────────────────
// Routes LLM requests through pb-proxy (PII pseudonymization +
// Powerbrain tool injection).
// Activate: docker compose --profile proxy up -d
//
// Models support two formats:
// - Short aliases from litellm_config.yaml (e.g. "claude-opus")
// - Passthrough: "provider/model" (e.g. "anthropic/claude-3-5-haiku-20241022")
//
// API key resolution (in order):
// 1. Your Bearer token (/connect → Other → your API key)
// 2. Central key from secrets/ (e.g. secrets/anthropic_api_key.txt)
"provider": {
"powerbrain-proxy": {
"npm": "@ai-sdk/openai-compatible",
"name": "Powerbrain Proxy",
"options": {
"baseURL": "http://localhost:8090/v1"
},
"models": {
"claude-opus": {
"name": "Claude Opus 4 (alias)",
"limit": {
"context": 200000,
"output": 32000
}
},
"anthropic/claude-sonnet-4-20250514": {
"name": "Claude Sonnet 4 (passthrough)",
"limit": {
"context": 200000,
"output": 16000
}
},
"anthropic/claude-3-5-haiku-20241022": {
"name": "Claude Haiku 3.5 (passthrough)",
"limit": {
"context": 200000,
"output": 8192
}
},
"gpt-4o": {
"name": "GPT-4o (alias)",
"limit": {
"context": 128000,
"output": 16384
}
}
}
}
},
"agent": {
// ── Subagents ──
"general": {
"model": "github-copilot/claude-sonnet-4"
},
"explore": {
"model": "github-copilot/claude-haiku-4.5"
},
// ── System agents (hidden, automatic) ──
"compaction": {
"model": "github-copilot/claude-haiku-4.5"
},
"title": {
"model": "github-copilot/claude-haiku-4.5"
},
"summary": {
"model": "github-copilot/claude-haiku-4.5"
}
},
"mcp": {
"powerbrain": {
"type": "remote",
"url": "http://localhost:8080/mcp",
"enabled": false,
"oauth": false,
"headers": {
"Authorization": "Bearer kb_dev_localonly_do_not_use_in_production"
}
}
}
}