User Tools

Site Tools


opencode

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
opencode [2026/08/26 08:18]
val
opencode [2026/08/26 09:03] (current)
val
Line 4: Line 4:
  
 <​code>​ <​code>​
-curl -fsSL https://​opencode.ai/​install | bash+debian:​~# ​curl -fsSL https://​opencode.ai/​install | bash 
 + 
 +debian:~# source /​root/​.bashrc
  
 debian:​~/​project1#​ cat opencode.json debian:​~/​project1#​ cat opencode.json
Line 16: Line 18:
     "​ollama":​ {     "​ollama":​ {
       "​npm":​ "​@ai-sdk/​openai-compatible",​       "​npm":​ "​@ai-sdk/​openai-compatible",​
-      "​name":​ "​Ollama (local)",+      "​name":​ "​Ollama (remote)",
       "​options":​ {       "​options":​ {
-        "​baseURL":​ "​http://​localhost:11434/v1"+        "​baseURL":​ "​http://​val.bmstu.ru:1234/v1"
 +        "​headers":​ { 
 +          "​Authorization":​ "Basic YWRtaW46MTExMjM011NTY3OA=="​ 
 +        }
       },       },
       "​models":​ {       "​models":​ {
opencode.txt · Last modified: 2026/08/26 09:03 by val