opencode.ai

i managed to get a freebsd-native opencode binary going.

i found that neither the current bun or zig packages were able to pull it off.

however, reverting those tools back (using (freebsd) binaries from the respective authors' archives), got me further.

the opencode repo had some nuggets for freebsd, but the work was incomplete.
i used opencode/big-pickle to finish/polish that work.

but, the opentui module needed a whole freebsd section added.
again, i used opencode/big-pickle to flesh that out.

in the end, i have a freebsd-native opencode binary.

i've used it to do some coding and research, via opencode+zen.

"works for me".

i'm generally suspicious of AI tooling, so, i run this binary in a limited jail, to constrain what evil it can get up to.

your mileage may vary.

hopefully, one day the bun and zig packages will work, and opencode will finish and commit their freebsd code.

 
i managed to get a freebsd-native opencode binary going.

i found that neither the current bun or zig packages were able to pull it off.

however, reverting those tools back (using (freebsd) binaries from the respective authors' archives), got me further.

the opencode repo had some nuggets for freebsd, but the work was incomplete.
i used opencode/big-pickle to finish/polish that work.

but, the opentui module needed a whole freebsd section added.
again, i used opencode/big-pickle to flesh that out.

in the end, i have a freebsd-native opencode binary.

i've used it to do some coding and research, via opencode+zen.

"works for me".

i'm generally suspicious of AI tooling, so, i run this binary in a limited jail, to constrain what evil it can get up to.

your mileage may vary.

hopefully, one day the bun and zig packages will work, and opencode will finish and publish their freebsd code.



i found this in the notes:

opencode provenance (likely)

Strong signal points to unmerged/duplicate FreeBSD work in upstream issue flow:
- anomalyco/opencode issue: #28642 (“FreeBSD support”) mentions a prior PR #29783 (closed as duplicate).

Commit pages exist for:
- 710f16e — “feat: add FreeBSD platform support”
- d7608cd — “fix(build): quote path defines and add FreeBSD target”
 
i managed to get a freebsd-native opencode binary going.

i found that neither the current bun or zig packages were able to pull it off.

however, reverting those tools back (using (freebsd) binaries from the respective authors' archives), got me further.

the opencode repo had some nuggets for freebsd, but the work was incomplete.
i used opencode/big-pickle to finish/polish that work.

but, the opentui module needed a whole freebsd section added.
again, i used opencode/big-pickle to flesh that out.

in the end, i have a freebsd-native opencode binary.

i've used it to do some coding and research, via opencode+zen.

"works for me".

i'm generally suspicious of AI tooling, so, i run this binary in a limited jail, to constrain what evil it can get up to.

your mileage may vary.

hopefully, one day the bun and zig packages will work, and opencode will finish and commit their freebsd code.

Wow. My hat's off and many thanks.
(I remember using Big Pickle like year ago in opencode. It generated for me python data diode proxy with error controls. It was just for testing but it impressed me - I would sweat for months to do something similar even as prototype.
Everyone wondered which company provided that Big Pickle for free. My money was on Deepseek or Qwen but who knows.)

These workarounds for FreeBSD are no good, tho. We need native support - these harnesses have (possibly breaking) updates like every afternoon.
OpenCode, Pi, Hermes at the very least, if not the model native ones.

FreeBSD would be ideal - jails and zfs snapshots for security and the Handbook pdf for context.
 
After trying to run pretty much every agent, the only one that worked (for me) out of the box was claude. I installed it through npm

pkg install nodejs npm
npm install -g @anthropic-ai/claude-code

Then I had to mess with the path and the config for the provider (I source from lm studio on my own network). Otherwise it wants you to login which I don't.

My goal was to bootstrap any agent to vibe-code the migration of hermes. Since my goal is done, I won't be working on the opencode problem, but if people need help setting up claude, well, try AI first, but I took notes so feel free to ask.
I don't have Claude subscription (or any other as I am stingy old bastard) but I am sure people or future me would appreciate a short How-to.
I am intrigued and impressed by your hack to get Claude connect to LM Studio. I use Ollama (soon switching to custom compiled llama.cpp) but I guess it is similar.
Can you post some guidelines if not too spicy?
Please and thank you.
 
Back
Top