-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathconfig.sample.json
More file actions
129 lines (129 loc) · 3.33 KB
/
config.sample.json
File metadata and controls
129 lines (129 loc) · 3.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
{
"logLevel": "info",
"platforms": {
"mattermost": {
"url": "https://chat.example.com",
"access": {
"mode": "allowlist",
"users": ["your-username"]
},
"bots": {
"copilot": {
"token": "YOUR_BOT_TOKEN",
"admin": true
}
}
}
},
"channels": [
{
"id": "channel-id-from-mattermost",
"platform": "mattermost",
"bot": "copilot",
"name": "My Project",
"workingDirectory": "/path/to/project",
"agent": null,
"model": "claude-sonnet-4.6",
"triggerMode": "mention",
"threadedReplies": true,
"verbose": false
}
],
"defaults": {
"model": "claude-sonnet-4.6",
"fallbackModels": [],
"agent": null,
"triggerMode": "mention",
"threadedReplies": true,
"verbose": false,
"permissionMode": "interactive"
},
"infiniteSessions": false,
"permissions": {
"_comment": "CLI-compatible permission syntax: shell(cmd), write, read, MCP_SERVER(tool)",
"allow": [
"read",
"shell(ls)",
"shell(cat)",
"shell(head)",
"shell(tail)",
"shell(find)",
"shell(grep)",
"shell(wc)"
],
"deny": [
"shell(rm)",
"shell(git push)",
"shell(git reset)",
"shell(shutdown)",
"shell(reboot)",
"shell(halt)",
"shell(systemctl poweroff)",
"shell(networksetup)",
"shell(diskutil)"
],
"allowPaths": [],
"allowUrls": [
"docs.github.com",
"learn.microsoft.com",
"npmjs.com",
"pypi.org",
"crates.io",
"pkg.go.dev",
"nuget.org",
"rubygems.org",
"packagist.org",
"maven.apache.org",
"stackoverflow.com",
"developer.mozilla.org"
]
},
"_comment_interAgent": "Optional: enable inter-agent communication (ask_agent tool)",
"interAgent": {
"enabled": false,
"defaultTimeout": 60,
"maxTimeout": 300,
"maxDepth": 3,
"allow": {
"copilot": { "canCall": ["bob"], "canBeCalledBy": ["bob"] },
"bob": { "canCall": ["copilot"], "canBeCalledBy": ["copilot"] }
}
},
"_comment_providers": "Optional: BYOK provider support (use your own API keys with external model providers)",
"providers": {
"ollama": {
"type": "openai",
"baseUrl": "http://localhost:11434/v1",
"models": [
{ "id": "qwen3:8b", "name": "Qwen 3 8B" }
]
},
"work-azure": {
"type": "azure",
"baseUrl": "https://myco.openai.azure.com",
"apiKeyEnv": "AZURE_OPENAI_KEY",
"azure": { "apiVersion": "2024-10-21" },
"models": [
{ "id": "gpt-4o", "name": "GPT-4o" },
{ "id": "gpt-5.2-codex", "name": "GPT-5.2 Codex", "wireApi": "responses" }
]
}
},
"telemetry": {
"otlpEndpoint": "http://localhost:4318",
"sourceName": "copilot-bridge",
"captureContent": false,
"authEnv": "OTEL_AUTH"
},
"_comment_logging": "Optional: log rotation settings (bridge manages its own log file at ~/.copilot-bridge/copilot-bridge.log)",
"logging": {
"maxSize": 10485760,
"maxFiles": 3,
"compress": true
},
"_comment_database": "Optional: pluggable state store (default: built-in SQLite at ~/.copilot-bridge/state.db)",
"_example_database": {
"module": "./path/to/custom-store.js",
"options": { "connectionString": "postgresql://..." }
}
}