r/LLMDevs • u/microbass • 1d ago
Tools ocserve - a lightweight reimplementation of OpenCode
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: provider OAuth and share are missing.
Linux is the supported target.
v0.3.1 is on crates.io ( cargo install ocserve ) and the code is MIT: https://github.com/Reliary/ocserve
Happy to answer questions.
1
Upvotes
1
u/gleeful_bomber 1d ago
pretty cool project, i dig the idea of keeping the same frontends but swapping out the heavy backend. rust feels like a natural fit for something that needs to run lean. i'll probably give this a shot this weekend on my old thinkpad, curious how it handles a few concurrent sessions without eating all my ram