This commit is contained in:
2026-08-31 17:41:26 +01:00
parent 54738d95b1
commit d41aac2a41
4 changed files with 92 additions and 74 deletions
+9
View File
@@ -43,6 +43,7 @@
"@xberg-io/opencode-liter-llm"
"opencode-plugin-litellm@latest"
"@dietrichgebert/ponytail"
"opencode-autodiscover"
"@xberg-io/opencode-tree-sitter-language-pack"
# Token slimming: filters shell command output via snip CLI
# (https://github.com/VincentHardouin/opencode-snip)
@@ -67,6 +68,14 @@
apiKey = "{env:OPENCODE_GO_API_KEY}";
};
};
provider.commandcode = {
npm = "@ai-sdk/openai-compatible";
name = "Command Code";
options = {
baseURL = "https://api.commandcode.ai/provider/v1";
apiKey = "{env:COMMANDCODE_API_KEY}";
};
};
};
# TUI plugin: token-tracker (https://github.com/eserete/opencode-token-tracker)
tui = {
+8
View File
@@ -17,6 +17,11 @@
path = config.home.homeDirectory + "/.secrets/opencode-go-zen-key";
sopsFile = ../secrets/content/secrets.yaml;
};
secrets.commandcode-key = {
# Decrypted file path (available at runtime, not eval time)
path = config.home.homeDirectory + "/.secrets/commandcode-key";
sopsFile = ../secrets/content/secrets.yaml;
};
};
programs.fish = {
shellInit = ''
@@ -26,6 +31,9 @@
if test -f "$HOME/.secrets/opencode-go-zen-key"
set -x OPENCODE_GO_API_KEY (cat "$HOME/.secrets/opencode-go-zen-key")
end
if test -f "$HOME/.secrets/commandcode-key"
set -x COMMANDCODE_API_KEY (cat "$HOME/.secrets/commandcode-key")
end
'';
};
};