-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopencode.jsonc
More file actions
47 lines (43 loc) · 1.61 KB
/
opencode.jsonc
File metadata and controls
47 lines (43 loc) · 1.61 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
// THIS CONIGURATION IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
{
"$schema": "https://opencode.ai/config.json",
"permission": {
// default to ask for everything and configure exceptions
"*": "ask",
"bash": "allow",
"read": {
"*": "allow",
"*.env": "deny",
"*.env.*": "deny",
"*.env.example": "allow",
".secret*": "deny"
},
"edit": {
"*": "allow",
"*.env": "deny",
"*.env.*": "deny",
"*.env.example": "allow",
".secret*": "deny"
},
"glob": "allow",
// always ask for grep as it can indirectly expose information from secret files
"grep": {
"*": "ask"
},
"list": "allow",
"task": "allow",
"skill": "allow",
"lsp": "allow",
"todoread": "allow",
"todowrite": "allow"
},
// pin the default models
"model": "github-copilot/claude-sonnet-4.6",
"small_model": "github-copilot/claude-haiku-4.5",
// only enabled providers that are compliant
"enabled_providers": ["github-copilot"],
// disable the default providers on top, of the white list, you never know :D
"disabled_providers": ["opencode"],
// completely disabled the share feature, we don't want conversations to be uploaded by accident
"share": "disabled"
}