User Tools

Site Tools


opencode

This is an old revision of the document!


OpenCode

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

debian:~# source /root/.bashrc

debian:/etc# opencode #stats

debian:~/etc# ###cat opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "permission": {
    "bash": "allow",
    "external_directory": "allow"
  },
  "provider": {
    "ollama": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Ollama (remote)",
      "options": {
        "baseURL": "http://val.bmstu.ru:1234/v1",
        "headers": {
          "Authorization": "Basic YWRtaW46MTExMjM011NTY3OA=="
        }
      },
      "models": {
        "ornith-1.5:9b": {
          "name": "ornith-1.5:9b"
        }
      }
    }
  },
  "model": "ollama/ornith-1.5:9b"
}
opencode.1787918447.txt.gz · Last modified: 2026/08/28 15:00 by val