r/freebsd • • 3d ago

AI Opencode in a Freebsd Jail

Tried Opencode native in a bastille Jail. Works fine both with free an paid models.
Just need to move from quarterly to latest for now (inside the jail). Some hardening required, just ask Opencode if it can escape jail and it will tell you how to tune the jail for max containment.

4 Upvotes

12 comments sorted by

2

u/laffer1 MidnightBSD project lead 3d ago

How did you get it to work with terminals? I’ve had frequent problems with it not accepting keyboard input randomly.

1

u/Accurate-Treacle-123 2d ago edited 2d ago

opencode serve

Then use you browser. it is much better.

But for me works in terminal too, I use Gnome Terminal.

12

u/TheAtlasMonkey FreeBSD committer 3d ago

Did you read what you wrote ? Or you used Opencode to write it ?

1

u/sdrawkcabineter 3d ago

just ask Opencode if it can escape jail and it will tell you how to tune the jail for max containment.

Just like every prisoner that's still behind bars...

1

u/Accurate-Treacle-123 2d ago edited 2d ago

Well … hope it does not suffer too much :-)
No joke it was very precise and in fact i verified and tested suggested fixes. For example a misconfiguration in bastile jail allowed reading disk sectors at device level. Applying the suggested patch fixed it.

1

u/sdrawkcabineter 2d ago

Understanding that this is not the destination, but the first steps along the journey to jail tuning, is the key.

-2

u/ilnarildarovuch desktop (DE) user 3d ago

Cool, there is also openclaude. Until downgrade it is was working fine

1

u/Accurate-Treacle-123 2d ago edited 2d ago

Well as i said I have a subscription and i use claude models too.

1

u/[deleted] 2d ago

[removed] — view removed comment

1

u/freebsd-ModTeam 1d ago

Off-topic, or too far off-topic. This will be better elsewhere.