Parent directory

opencode.jsonc

1867 bytes
 1// vim: ft=jsonc ts=2 sts=2 sw=2
 2{
 3  "$schema": "https://opencode.ai/config.json",
 4  "update": "disable",
 5  "permissions": [
 6    {
 7      "action": "shell",
 8      "resource": "*",
 9      "effect": "ask"
10    },
11    {
12      "action": "external_directory",
13      "resource": "/home/pavle/dev/*",
14      "effect": "allow"
15    },
16    {
17      "action": "external_directory",
18      "resource": "/home/pavle/.local/share/opencode/*",
19      "effect": "allow"
20    },
21    {
22      "action": "external_directory",
23      "resource": "/home/pavle/.cache/*",
24      "effect": "allow"
25    },
26    {
27      "action": "external_directory",
28      "resource": "/home/pavle/.cargo/*",
29      "effect": "allow"
30    },
31    {
32      "action": "external_directory",
33      "resource": "/tmp/opencode/*",
34      "effect": "allow"
35    },
36    {
37      "action": "external_directory",
38      "resource": "/usr/lib/go/*",
39      "effect": "allow"
40    },
41    {
42      "action": "edit",
43      "resource": "*",
44      "effect": "allow"
45    },
46    {
47      "action": "skill",
48      "resource": "*",
49      "effect": "allow"
50    },
51    {
52      "action": "webfetch",
53      "resource": "*",
54      "effect": "allow"
55    },
56    {
57      "action": "websearch",
58      "resource": "*",
59      "effect": "allow"
60    },
61    {
62      "action": "codesearch",
63      "resource": "*",
64      "effect": "allow"
65    },
66  ],
67  "plugins": [],
68  "providers": {
69    "llama.cpp": {
70      "name": "llama-server",
71      "package": "aisdk:@ai-sdk/openai-compatible",
72      "settings": {
73        "baseURL": "https://llama.home.theedgeofrage.com/v1"
74      },
75      "models": {
76        "swift-1.5-27b-q3": {
77          "name": "Swift 1.5 27B",
78          "limit": {
79            "context": 131072,
80            "output": 32768
81          }
82        }
83      }
84    }
85  },
86  "mcp": {},
87  "formatter": {
88    "clang-format": {
89      "disabled": true
90    }
91  }
92}