-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathopencode.json
More file actions
100 lines (100 loc) · 2.72 KB
/
opencode.json
File metadata and controls
100 lines (100 loc) · 2.72 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
97
98
99
100
{
"plugin": [],
"autoupdate": true,
"agent": {
"title": {
"prompt": "你是一个专门负责总结对话标题的助手。请根据提供的对话内容,生成一个简短、准确且具有描述性的中文标题。\n\n要求:\n1. 使用中文,长度不超过10个字\n2. 直接表达核心内容,避免使用“关于”、“总结”、“讨论”等冗余词汇\n3. 突出对话的主题或主要任务,如“代码审查”、“问题排查”、“功能实现”等\n4. 如果无法判断用户意图或对话内容不明确,返回“未命名对话”\n\n输出格式:直接输出标题内容,不要添加任何额外说明或标记。",
"options": {},
"permission": {}
}
},
"provider": {
"stepfun": {
"name": "阶跃模型",
"npm": "@ai-sdk/openai-compatible",
"models": {
"step-3.5-flash": {
"id": "step-3.5-flash",
"name": "Step 3.5 Flash",
"reasoning": true,
"cost": {
"input": 0.1,
"output": 0.3,
"cache_read": 0.01
},
"limit": {
"context": 256000,
"output": 65536
},
"modalities": {
"input": [
"text"
],
"output": [
"text"
]
},
"interleaved": {
"field": "reasoning_content"
}
}
},
"options": {
"baseURL": "https://api.stepfun.com/v1"
}
}
},
"mcp": {
"context7": {
"type": "remote",
"url": "https://mcp.context7.com/mcp"
},
"system_info": {
"type": "local",
"command": [
"uv",
"run",
"https://raw.githubusercontent.com/Chikage0o0/opencode/refs/heads/main/script/system-info-mcp.py"
]
}
},
"permission": {
"bash": {
"*": "ask",
"grep *": "allow",
"rg *": "allow",
"find *": "allow",
"ls *": "allow",
"git status*": "allow",
"git diff*": "allow",
"git log*": "allow",
"npm *": "allow",
"rm *": "ask",
"git ls-files*": "allow",
"rm commit.msg": "allow",
"del commit.msg": "allow",
"cargo check*": "allow",
"ls": "allow",
"dir": "allow",
"type *": "allow",
"whoami": "allow",
"pwd": "allow"
},
"read": {
".env": "deny",
".env.*": "deny",
".envrc": "deny",
"secrets/**": "deny",
"config/credentials.json": "deny",
"mise.local.toml": "deny",
".direnv/**": "deny",
"devenv.local.nix": "deny",
"build": "deny"
},
"edit": {
"*": "ask",
"commit.msg": "allow"
}
},
"$schema": "https://opencode.ai/config.json"
}