opencode
opencode copied to clipboard
it run with olllama
https://github.com/anomalyco/opencode/releases/download/v1.1.1/opencode-linux-x64-baseline.tar.gz
/home/m/Desktop/opencode/opencode-linux-x64-baseline
chmod +x opencode ./opencode
mkdir -p ~/.config/opencode nano ~/.config/opencode/opencode.json
{ "$schema": "https://opencode.ai/config.json", "provider": { "ollama": { "npm": "@ai-sdk/openai-compatible", "name": "Ollama (local)", "options": { "baseURL": "http://localhost:11434/v1" }, "models": { "gpt-oss:20b": { "name": "gpt-oss 20B (local)" } } } }, "model": "ollama/gpt-oss:20b" }
cotl+o enter cotl_x