anomalyco / anomalyco/opencode
OpenCode Defaults to CPU Instead of GPU
Open
@neriousy is already working on this.
Since Sep 1, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
For local models through Ollama, OpenCode uses CPU processing instead of GPU on Linux (Ubuntu). Running Ollama standalone, it uses GPU, is there a way to force GPU usage when using command opencode serve?
Plugins
No response
OpenCode version
No response
Steps to reproduce
- opencode serve
- enter prompt
- select local model through provider Ollama
- press enter to initiate processing
OpenCode then defaults to CPU processing instead of GPU.
Screenshot and/or share link
No response
Operating System
Ubuntu 26.04
Terminal
Terminal
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.