-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathopencode.jsonc
More file actions
60 lines (60 loc) · 1.92 KB
/
opencode.jsonc
File metadata and controls
60 lines (60 loc) · 1.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
{
"$schema": "https://opencode.ai/config.json",
"permission": "allow",
"plugin": ["opencode-pty", "envsitter-guard", "./plugin/worktree.ts", "./plugin/kortix-sys", "./plugin/agent-tunnel/index.ts"],
"skills": {
"paths": ["./plugin/kortix-sys/skills"]
},
"autoupdate": true,
"default_agent": "kortix",
"agent": {
// compaction, title, summary are hidden infra agents -- leave them
},
// ── LLM Providers ────────────────────────────────────────────────────────
// In cloud mode, kortix-env-setup.sh redirects SDK traffic to the Kortix
// router by setting *_BASE_URL env vars (Anthropic/OpenAI) and patching
// this file to add baseURL for providers without env var support
// (xAI/Gemini/Groq). API keys are set to KORTIX_TOKEN so the router
// recognises Mode 1 (Kortix-managed) requests.
//
// X-Kortix-Token enables passthrough billing (0.1× platform fee) when the
// user connects their own API key. Empty token (local mode) is harmless —
// the proxy ignores it and falls through to pure passthrough.
"provider": {
"anthropic": {
"options": {
"headers": { "X-Kortix-Token": "{env:KORTIX_TOKEN}" }
}
},
"openai": {
"options": {
"headers": { "X-Kortix-Token": "{env:KORTIX_TOKEN}" }
}
},
"xai": {
"options": {
"headers": { "X-Kortix-Token": "{env:KORTIX_TOKEN}" }
}
},
"google": {
"options": {
"headers": { "X-Kortix-Token": "{env:KORTIX_TOKEN}" }
}
},
"groq": {
"options": {
"headers": { "X-Kortix-Token": "{env:KORTIX_TOKEN}" }
}
}
},
"mcp": {
"context7": {
"type": "remote",
"url": "https://mcp.context7.com/mcp",
"headers": {
"CONTEXT7_API_KEY": "{env:CONTEXT7_API_KEY}"
},
"enabled": true
}
}
}