replace claude code with opencode

This commit is contained in:
Brent Schroeter 2026-05-06 14:41:35 -07:00
parent bea3ee8157
commit fd1e9310e8
4 changed files with 24 additions and 15 deletions

View file

@ -45,10 +45,9 @@ RUN mise x -- cargo binstall -y cargo-nextest sqlx-cli
RUN go install golang.org/x/tools/gopls@latest RUN go install golang.org/x/tools/gopls@latest
RUN fish -c 'fish_add_path /home/$USERNAME/go/bin' RUN fish -c 'fish_add_path /home/$USERNAME/go/bin'
# Install Claude Code CLI. # Configure OpenCode.
RUN curl -fsSL https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/bootstrap.sh | bash RUN mkdir -p ~/.config/opencode
RUN fish -c 'fish_add_path /home/$USERNAME/.local/bin' COPY --chown=$USERNAME ./assets/opencode/config.json /home/$USERNAME/.config/opencode/config.json
COPY --chown=$USERNAME ./assets/claude/settings.json /home/$USERNAME/.claude/settings.json
# Copy Helix configurations. # Copy Helix configurations.
# It seems there's a bug in `apple/container`'s COPY implementation that fails # It seems there's a bug in `apple/container`'s COPY implementation that fails

View file

@ -1,11 +0,0 @@
{
"permissions": {
"defaultMode": "plan"
},
"enabledPlugins": {
"gopls-lsp@claude-plugins-official": true,
"rust-analyzer-lsp@claude-plugins-official": true
},
"outputStyle": "Explanatory",
"spinnerTipsEnabled": false
}

View file

@ -11,3 +11,5 @@ deno = "latest"
uv = "latest" uv = "latest"
"pipx:pyright" = "latest" "pipx:pyright" = "latest"
"pipx:ruff" = "latest" "pipx:ruff" = "latest"
"github:anomalyco/opencode" = "latest"

View file

@ -0,0 +1,19 @@
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"ollama": {
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "http://192.168.64.1:11434/v1"
},
"models": {
"qwen3.5:9b": {
"tools": true
},
"qwen3.6:27b": {
"tools": true
}
}
}
}
}