Created
June 12, 2026 12:49
-
-
Save athoune/398632fcfb2cb682f686b89a8c20fd24 to your computer and use it in GitHub Desktop.
Opencode in a macos container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # install | |
| container machine create oven/bun:alpine --name opencode | |
| container machine run -n opencode bun i -g opencode-ai@latest | |
| container machine run -n opencode --root ln -sf realpath /home/`id -un`/.bun/bin/opencode /usr/local/bin/ | |
| # run | |
| container machine run -n opencode -ti opencode | |
| # run a server | |
| container machine run -n opencode opencode serve --hostname 0.0.0.0 --mdns | |
| # ip | |
| container machine list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment