adjusting opencode setting

This commit is contained in:
2026-04-01 13:02:37 +02:00
parent 35ffada889
commit e90e09082f
3 changed files with 101 additions and 41 deletions

View File

@@ -2,7 +2,12 @@
"mcp": {
"MCP_DOCKER": {
"type": "local",
"command": ["docker", "mcp", "gateway", "run"],
"command": [
"docker",
"mcp",
"gateway",
"run"
],
"enabled": true
}
},
@@ -42,5 +47,22 @@
}
}
}
},
"share": "disabled",
"autoupdate": "notify",
"permission": {
"bash": {
"*": "ask",
"git *": "allow",
"npm *": "allow",
"rm *": "deny",
"grep *": "allow"
},
"read": {
"*": "allow",
"*.env": "deny",
"*.env.*": "deny",
"*.env.example": "allow"
},
}
}

4
config/opencode/tui.json Normal file
View File

@@ -0,0 +1,4 @@
{
"$schema": "https://opencode.ai/tui.json",
"theme": "catppuccin-macchiato"
}

View File

@@ -1,34 +1,60 @@
{
"agent_servers": {
"opencode": {
"type": "registry",
},
"OpenCode": {
"command": "opencode",
"args": [
"acp"
]
}
},
"disable_ai": false,
"edit_predictions": { "provider": "none" },
"git_panel": { "status_style": "icon", "default_width": 360 },
"tabs": { "git_status": false },
"edit_predictions": {
"provider": "none"
},
"git_panel": {
"status_style": "icon",
"default_width": 360
},
"tabs": {
"git_status": false
},
"vim_mode": true,
"title_bar": { "show_sign_in": false },
"outline_panel": { "button": false },
"collaboration_panel": { "button": false },
"notification_panel": { "button": false },
"title_bar": {
"show_sign_in": false
},
"outline_panel": {
"button": false
},
"collaboration_panel": {
"button": false
},
"notification_panel": {
"button": false
},
"agent": {
"favorite_models": [
{
"provider": "LM_Studio",
"model": "qwen/qwen3.5-9b",
"enable_thinking": false
}
],
"single_file_review": true,
"enable_feedback": false,
"tool_permissions": { "default": "allow" },
"tool_permissions": {
"default": "allow"
},
"default_profile": "write",
"default_model": {
"provider": "LM_Studio",
"model": "qwen/qwen3.5-9b",
"model": "qwen/qwen3.5-9b"
},
"commit_message_model": {
"provider": "openai_compatible.LM_Studio",
"model": "qwen/qwen3.5-9b",
"model": "qwen/qwen3.5-9b"
},
"model_parameters": [],
"model_parameters": []
},
// https://zed.dev/docs/ai/llm-providers
"language_models": {
"openai_compatible": {
"LiteLLM": {
@@ -43,8 +69,8 @@
"tools": true,
"images": true,
"parallel_tool_calls": false,
"prompt_cache_key": false,
},
"prompt_cache_key": false
}
},
{
"name": "claude-sonnet-4-5",
@@ -55,8 +81,8 @@
"tools": true,
"images": true,
"parallel_tool_calls": false,
"prompt_cache_key": false,
},
"prompt_cache_key": false
}
},
{
"name": "gpt-5-nano",
@@ -67,8 +93,8 @@
"tools": true,
"images": false,
"parallel_tool_calls": false,
"prompt_cache_key": false,
},
"prompt_cache_key": false
}
},
{
"name": "gpt-4.1-nano",
@@ -79,10 +105,10 @@
"tools": true,
"images": false,
"parallel_tool_calls": false,
"prompt_cache_key": true,
},
},
],
"prompt_cache_key": true
}
}
]
},
"LM_Studio": {
"api_url": "http://192.168.10.64:1234/v1",
@@ -96,8 +122,8 @@
"tools": true,
"images": false,
"parallel_tool_calls": true,
"prompt_cache_key": false,
},
"prompt_cache_key": false
}
},
{
"name": "qwen/qwen3.5-35b-a3b",
@@ -108,21 +134,21 @@
"tools": true,
"images": true,
"parallel_tool_calls": true,
"prompt_cache_key": false,
},
},
],
},
"prompt_cache_key": false
}
}
]
}
},
"openai": {
"available_models": [
{
"display_name": "gpt-4.1-nano",
"name": "gpt-4.1-nano",
"max_tokens": 128000,
},
],
},
"max_tokens": 128000
}
]
}
},
"base_keymap": "VSCode",
"auto_indent_on_paste": true,
@@ -130,13 +156,21 @@
"icon_theme": "Zed (Default)",
"ui_font_size": 16,
"buffer_font_size": 16,
"theme": { "mode": "dark", "light": "One Light", "dark": "One Dark" },
"theme": {
"mode": "dark",
"light": "One Light",
"dark": "One Dark"
},
"context_servers": {
"MCP_DOCKER": {
"env": {},
"enabled": false,
"command": "docker",
"args": ["mcp", "gateway", "run"],
},
},
"args": [
"mcp",
"gateway",
"run"
]
}
}
}