replace claude code with opencode
This commit is contained in:
parent
bea3ee8157
commit
fd1e9310e8
4 changed files with 24 additions and 15 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
|
||||||
}
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
19
assets/opencode/config.json
Normal file
19
assets/opencode/config.json
Normal 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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue