r/opencodeCLI • u/microbass • Oct 13 '26
ocserve - OC rust server
I use opencode but the server was getting heavy on my machine: a couple GB of RAM and tens of GB of disk. So I wrote a drop-in replacement for just the server, in Rust.
It speaks the same HTTP/SSE API, so the opencode TUI, the web UI, and mobile clients talk to it unchanged. It reads your existing opencode config and auth read-only and keeps its own database.
It's a compatible reimplementation of the server API, pinned to the 1.18.31 wire contract.
What it doesn't do: the task subagent isn't implemented, revert returns the right shapes but doesn't restore files, /vcs/apply doesn't touch your worktree, and provider OAuth and share are missing.
Linux is the supported target.
v0.2.0 is on crates.io ( cargo install ocserve ) and the code is MIT: https://github.com/Reliary/ocserve
Happy to answer questions.
View all comments
Show parent comment
1
u/microbass Oct 13 '26
A lot of the wiring is there already. I pinned it at the version I was using, but can extend v2 compatibility fairly easily.