-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopencode.json
More file actions
96 lines (88 loc) · 2.77 KB
/
opencode.json
File metadata and controls
96 lines (88 loc) · 2.77 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
{
"$schema": "https://opencode.ai/config.json",
// =============================================================================
// OpenCode Config
// =============================================================================
// Install:
// 1. Copy opencode.json → ~/.config/opencode/opencode.json
// 2. Copy agents/ → ~/.config/opencode/agents/
// =============================================================================
// ---------------------------------------------------------------------------
// Model Configuration - GitHub Copilot
// ---------------------------------------------------------------------------
"model": "github-copilot/gpt-5.4",
// Default GPT-5.4 to xhigh reasoning effort; use gpt-5-mini for lightweight tasks
"small_model": "github-copilot/gpt-5-mini",
// ---------------------------------------------------------------------------
// Atlassian MCP Server (Jira + Confluence)
// Uses OAuth - will prompt for authentication on first use
// Supports: https://<YOUR_ATLASSIAN_INSTANCE>.atlassian.net/
// ---------------------------------------------------------------------------
"mcp": {
"atlassian": {
"type": "remote",
"url": "https://mcp.atlassian.com/v1/sse",
"enabled": true,
"oauth": {}
},
"playwright": {
"type": "local",
"command": ["npx", "@playwright/mcp@latest"],
"enabled": true
}
},
// Disable Atlassian and Playwright tools globally (agents re-enable as needed)
"tools": {
"atlassian_*": false,
"playwright_*": false
},
"autoupdate": true,
"compaction": {
"auto": true,
"prune": true,
"reserved": 10000
},
"share": "manual",
// ---------------------------------------------------------------------------
// Ollama Provider (local models)
// Uses Ollama's OpenAI-compatible API on the default local port.
// ---------------------------------------------------------------------------
"provider": {
"github-copilot": {
"models": {
"gpt-5.4": {
"options": {
"reasoningEffort": "xhigh"
}
}
}
},
"ollama": {
"npm": "@ai-sdk/openai-compatible",
"name": "Ollama (local)",
"options": {
"baseURL": "http://localhost:11434/v1"
},
"models": {
"granite4:350m": {
"name": "Granite 4 350M"
},
"granite4:1b": {
"name": "Granite 4 1B"
},
"granite4:3b": {
"name": "Granite 4 3B"
},
"granite4:32b-a9b-h": {
"name": "Granite 4 32B A9B H"
},
"qwen2.5-coder:32b": {
"name": "Qwen 2.5 Coder 32B"
},
"devstral-small:24b": {
"name": "Devstral Small 24B"
}
}
}
}
}