User Tools

Site Tools


opencode

This is an old revision of the document!


OpenCode

curl -fsSL https://opencode.ai/install | bash

debian:~/project1# cat opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "permission": {
    "bash": "allow",
    "external_directory": "allow"
  },
  "provider": {
    "ollama": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Ollama (local)",
      "options": {
        "baseURL": "http://localhost:11434/v1"
      },
      "models": {
        "ornith-1.5:9b": {
          "name": "ornith-1.5:9b"
        }
      }
    }
  },
  "model": "ollama/ornith-1.5:9b"
}
opencode.1787721508.txt.gz · Last modified: 2026/08/26 08:18 by val