Ollama can automatically set itself up for most popular coding harnesses. The process is documented on their end but it's missing from opencode documentation.
https://docs.ollama.com/integrations/opencode