Skip to content

Instantly share code, notes, and snippets.

@athoune
Created June 12, 2026 12:49
Show Gist options
  • Select an option

  • Save athoune/398632fcfb2cb682f686b89a8c20fd24 to your computer and use it in GitHub Desktop.

Select an option

Save athoune/398632fcfb2cb682f686b89a8c20fd24 to your computer and use it in GitHub Desktop.
Opencode in a macos container
# 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