This is an old revision of the document!
debian:~# curl -fsSL https://opencode.ai/install | bash
debian:~# source /root/.bashrc
debian:/etc# opencode #stats
debian:~/etc# ###cat opencode.jsonc
{
"$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"
}