feat(opencode): added opencode config and install script

This commit is contained in:
2026-03-14 10:43:50 -04:00
parent 9fe7934bf0
commit 30793457ee
2 changed files with 35 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
{
"$schema": "https://opencode.ai/config.json",
"model": "openai/gpt-5.3-codex",
"theme": "gruvbox",
"autoupdate": true,
"share": "disabled",
"keybinds": {
"messages_half_page_up": "ctrl+u",
"messages_half_page_down": "ctrl+d",
"messages_first": "ctrl+g",
"messages_last": "ctrl+l",
},
"provider": {
"ollama": {
"npm": "@ai-sdk/openai-compatible",
"name": "Ollama",
"options": {
"baseURL": "http://129.100.33.66:11434/v1"
},
"models": {
"qwen3-coder": {
"name": "qwen3-coder-next"
}
}
}
}
}
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh -e
if [[ ! -x "$(command -v opencode)" ]]; then
paru -Sy --needed --noconfirm opencode-bin
fi
${DOTFILES_DIR}/sync-config config/opencode
ln -snf ${HOME}/.agents/prompts ${HOME}/.config/opencode/agents