feat: update opencode config with new providers, clean up tmux config, add pi agent & installer scripts
This commit is contained in:
@@ -1,27 +1,75 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://opencode.ai/config.json",
|
"$schema": "https://opencode.ai/config.json",
|
||||||
"model": "openai/gpt-5.3-codex",
|
"model": "opencode-go/mimo-v2.5-pro",
|
||||||
"theme": "gruvbox",
|
|
||||||
"autoupdate": true,
|
"autoupdate": true,
|
||||||
"share": "disabled",
|
"share": "disabled",
|
||||||
"keybinds": {
|
|
||||||
"messages_half_page_up": "ctrl+u",
|
|
||||||
"messages_half_page_down": "ctrl+d",
|
|
||||||
"messages_first": "ctrl+g",
|
|
||||||
"messages_last": "ctrl+l",
|
|
||||||
},
|
|
||||||
"provider": {
|
"provider": {
|
||||||
"ollama": {
|
"vllm": {
|
||||||
"npm": "@ai-sdk/openai-compatible",
|
"npm": "@ai-sdk/openai-compatible",
|
||||||
"name": "Ollama",
|
"name": "dupont vLLM server",
|
||||||
"options": {
|
"options": {
|
||||||
"baseURL": "http://129.100.33.66:11434/v1"
|
"baseURL": "http://172.25.11.32/v1"
|
||||||
},
|
},
|
||||||
"models": {
|
"models": {
|
||||||
"qwen3-coder": {
|
"north-mini-code": {
|
||||||
"name": "qwen3-coder-next"
|
"name": "north-mini-code",
|
||||||
|
"limit": {
|
||||||
|
"context": 32768,
|
||||||
|
"output": 4096
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"allears": {
|
||||||
|
"npm": "@ai-sdk/openai-compatible",
|
||||||
|
"name": "allears",
|
||||||
|
"options": {
|
||||||
|
"baseURL": "http://192.168.33.74:11434/v1"
|
||||||
|
},
|
||||||
|
"models": {
|
||||||
|
"qwen3.5": {
|
||||||
|
"name": "qwen3.5:35b"
|
||||||
|
},
|
||||||
|
"qwen3.6": {
|
||||||
|
"name": "qwen3.6:35b"
|
||||||
|
},
|
||||||
|
"lfm2": {
|
||||||
|
"name": "lfm2:latest"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"dupont": {
|
||||||
|
"npm": "@ai-sdk/openai-compatible",
|
||||||
|
"name": "dupont",
|
||||||
|
"options": {
|
||||||
|
"discoverModels": true,
|
||||||
|
"baseURL": "http://172.25.11.30/v1"
|
||||||
|
},
|
||||||
|
"models": {
|
||||||
|
"north-mini-code": { "name": "north-mini-code" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"obelix": {
|
||||||
|
"npm": "@ai-sdk/openai-compatible",
|
||||||
|
"name": "obelix",
|
||||||
|
"options": {
|
||||||
|
"discoverModels": true,
|
||||||
|
"baseURL": "http://172.25.11.32/v1"
|
||||||
|
},
|
||||||
|
"models": {
|
||||||
|
"north-mini-code": { "name": "north-mini-code" }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"bianca": {
|
||||||
|
"npm": "@ai-sdk/openai-compatible",
|
||||||
|
"name": "bianca",
|
||||||
|
"options": {
|
||||||
|
"discoverModels": true,
|
||||||
|
"baseURL": "http://172.25.11.33/v1"
|
||||||
|
},
|
||||||
|
"models": {
|
||||||
|
"north-mini-code": { "name": "north-mini-code" }
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,61 @@
|
|||||||
|
{
|
||||||
|
"providers": {
|
||||||
|
"dupont": {
|
||||||
|
"baseUrl": "http://172.25.11.30/v1",
|
||||||
|
"api": "openai-completions",
|
||||||
|
"models": [
|
||||||
|
{
|
||||||
|
"id": "north-mini-code",
|
||||||
|
"name": "north-mini-code",
|
||||||
|
"reasoning": true,
|
||||||
|
"input": ["text"],
|
||||||
|
"contextWindow": 128000,
|
||||||
|
"maxTokens": 128000,
|
||||||
|
"cost": { "input": 1, "output": 1, "cacheRead": 1, "cacheWrite": 1 }
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"compat": {
|
||||||
|
"supportsDeveloperRole": true,
|
||||||
|
"supportsReasoningEffort": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"bianca": {
|
||||||
|
"baseUrl": "http://172.25.11.33/v1",
|
||||||
|
"api": "openai-completions",
|
||||||
|
"models": [
|
||||||
|
{
|
||||||
|
"id": "gemma-4-12B-coder",
|
||||||
|
"name": "gemma-4-12B-coder",
|
||||||
|
"reasoning": true,
|
||||||
|
"input": ["text"],
|
||||||
|
"contextWindow": 128000,
|
||||||
|
"maxTokens": 65536,
|
||||||
|
"cost": { "input": 1, "output": 1, "cacheRead": 1, "cacheWrite": 1 }
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"compat": {
|
||||||
|
"supportsDeveloperRole": true,
|
||||||
|
"supportsReasoningEffort": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"cloudflare": {
|
||||||
|
"baseUrl": "https://api.cloudflare.com/client/v4/accounts/e54fa0b493ef3bef55746b1de8d33693/ai/v1",
|
||||||
|
"api": "openai-completions",
|
||||||
|
"models": [
|
||||||
|
{
|
||||||
|
"id": "@cf/zai-org/glm-5.2",
|
||||||
|
"name": "@cf/zai-org/glm-5.2",
|
||||||
|
"reasoning": true,
|
||||||
|
"input": ["text"],
|
||||||
|
"contextWindow": 256000,
|
||||||
|
"maxTokens": 256000,
|
||||||
|
"cost": { "input": 1, "output": 1, "cacheRead": 1, "cacheWrite": 1 }
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"compat": {
|
||||||
|
"supportsDeveloperRole": true,
|
||||||
|
"supportsReasoningEffort": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"lastChangelogVersion": "0.80.2",
|
||||||
|
"theme": "light/dark",
|
||||||
|
"defaultProvider": "opencode-go",
|
||||||
|
"defaultModel": "deepseek-v4-flash",
|
||||||
|
"defaultThinkingLevel": "high",
|
||||||
|
"hideThinkingBlock": true,
|
||||||
|
"compaction": {
|
||||||
|
"enabled": true
|
||||||
|
},
|
||||||
|
"enableInstallTelemetry": false
|
||||||
|
}
|
||||||
@@ -1,20 +1,20 @@
|
|||||||
# set-option -g default-terminal 'screen-256color'
|
# set-option -g default-terminal 'screen-256color'
|
||||||
set-option -g terminal-overrides ',xterm-256color:RGB'
|
# set-option -g terminal-overrides ',xterm-256color:RGB'
|
||||||
# set -g default-terminal "tmux-256color"
|
# set -g default-terminal "tmux-256color"
|
||||||
set -as terminal-feature ",foot*:RGB"
|
set -as terminal-feature ",foot*:RGB"
|
||||||
|
|
||||||
# screen mode
|
# screen mode
|
||||||
# set -g default-terminal "${TERM}"
|
# set -g default-terminal "${TERM}"
|
||||||
# set -g default-terminal "tmux-256color"
|
# set -g default-terminal "tmux-256color"
|
||||||
set -ag terminal-overrides ",xterm-256color:RGB"
|
# set -ag terminal-overrides ",xterm-256color:RGB"
|
||||||
|
|
||||||
# colors
|
# colors
|
||||||
# set -ag terminal-overrides ",xterm*:Tc"
|
# set -ag terminal-overrides ",xterm*:Tc"
|
||||||
|
|
||||||
# undercurl support
|
# undercurl support
|
||||||
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm'
|
# set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm'
|
||||||
# underscore colours - needs tmux-3.0
|
# underscore colours - needs tmux-3.0
|
||||||
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m'
|
# set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m'
|
||||||
# allow terminal scrolling
|
# allow terminal scrolling
|
||||||
#set -g terminal-overrides 'xterm*:smcup@:rmcup@'
|
#set -g terminal-overrides 'xterm*:smcup@:rmcup@'
|
||||||
|
|
||||||
@@ -22,8 +22,8 @@
|
|||||||
set -g default-shell "/usr/bin/fish"
|
set -g default-shell "/usr/bin/fish"
|
||||||
|
|
||||||
# auto rename windows
|
# auto rename windows
|
||||||
set -g automatic-rename on
|
# set -g automatic-rename on
|
||||||
set -g automatic-rename-format '#{pane_current_command} #{b:pane_current_path}'
|
# set -g automatic-rename-format '#{pane_current_command} #{b:pane_current_path}'
|
||||||
set -g allow-rename on
|
set -g allow-rename on
|
||||||
|
|
||||||
# start with window 1 (instead of 0)
|
# start with window 1 (instead of 0)
|
||||||
@@ -97,7 +97,7 @@
|
|||||||
bind B command-prompt -p "New Session:" "new-session -A -s '%%'"
|
bind B command-prompt -p "New Session:" "new-session -A -s '%%'"
|
||||||
bind Tab switch-client -l
|
bind Tab switch-client -l
|
||||||
|
|
||||||
bind a run-shell -b "~/.local/bin/t"
|
bind t run-shell -b "~/.local/bin/t"
|
||||||
bind Enter run-shell -b "~/.local/bin/s"
|
bind Enter run-shell -b "~/.local/bin/s"
|
||||||
bind Q confirm kill-session
|
bind Q confirm kill-session
|
||||||
|
|
||||||
@@ -150,6 +150,7 @@
|
|||||||
set -g @plugin 'sainnhe/tmux-fzf'
|
set -g @plugin 'sainnhe/tmux-fzf'
|
||||||
set -g @plugin 'joshmedeski/tmux-fzf-url'
|
set -g @plugin 'joshmedeski/tmux-fzf-url'
|
||||||
set -g @plugin 'aserowy/tmux.nvim'
|
set -g @plugin 'aserowy/tmux.nvim'
|
||||||
|
set -g @plugin 'vieitesss/agent-radar'
|
||||||
|
|
||||||
set -g status-left ""
|
set -g status-left ""
|
||||||
source-file ~/.config/tmux/theme
|
source-file ~/.config/tmux/theme
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh -e
|
||||||
|
|
||||||
|
if [[ ! -x "$(command -v goose-desktop)" ]]; then
|
||||||
|
paru -Sy --needed --noconfirm goose-desktop-bin
|
||||||
|
fi
|
||||||
|
|
||||||
|
${DOTFILES_DIR}/sync-config config/goose
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh -e
|
||||||
|
|
||||||
|
if [[ ! -x "$(command -v goose)" ]]; then
|
||||||
|
paru -Sy --needed --noconfirm codename-goose-bin
|
||||||
|
fi
|
||||||
|
|
||||||
|
${DOTFILES_DIR}/sync-config config/goose
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/sh -e
|
||||||
|
|
||||||
|
if [[ ! -x "$(command -v obsidian)" ]]; then
|
||||||
|
paru -Sy --needed --noconfirm obsidian
|
||||||
|
fi
|
||||||
|
|
||||||
|
xdg-mime default obsidian.desktop x-scheme-handler/obsidian
|
||||||
|
xdg-settings set default-url-scheme-handler obsidian obsidian.desktop
|
||||||
@@ -6,4 +6,13 @@ if [[ ! -x "$(command -v pi)" ]]; then
|
|||||||
npm install -g pi-acp
|
npm install -g pi-acp
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
mkdir ~/.pi
|
||||||
|
ln -snf ~/.pi ~/.config/pi
|
||||||
|
ln -snf ~/.agents/.agents/AGENTS.md ~/.pi/agent/AGENTS.md
|
||||||
|
${DOTFILES_DIR}/sync-config config/pi
|
||||||
|
|
||||||
|
if [[ -x "$(command -v pass)" ]]; then
|
||||||
|
pass show agent/pi/agent/auth.json > ~/.pi/agent/auth.json
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user