docs/examples/agents/goose.mdx
Goose publishes native Linux binaries for both aarch64 and x86_64. Its installer detects the guest architecture, which makes it a relatively small agent setup compared with a large Python environment.
<Tooltip tip="On microsandbox cloud, create the named volume first and omit replace-on-create from this command."><span className="msb-badge-limited">Limited on cloud <Icon icon="circle-info" size={11} /></span></Tooltip>
<CodeGroup> ```sh macOS & Linux msb run -t --name goose-demo --replace \ --cpus 2 --memory 2G --root-disk 3G \ --copy-dir ./my-project:/workspace \ --workdir /workspace \ --mount-named goose-data:/data/goose \ -e GOOSE_PATH_ROOT=/data/goose \ debian:bookworm-slim -- sh -lc ' apt-get update && apt-get install -y --no-install-recommends ca-certificates curl bzip2 git && curl -fsSL https://github.com/aaif-goose/goose/releases/download/v1.44.0/download_cli.sh | GOOSE_BIN_DIR=/usr/local/bin GOOSE_VERSION=v1.44.0 CONFIGURE=false bash && exec goose session ' ```msb run -t --name goose-demo --replace `
--cpus 2 --memory 2G --root-disk 3G `
--copy-dir ./my-project:/workspace `
--workdir /workspace `
--mount-named goose-data:/data/goose `
-e GOOSE_PATH_ROOT=/data/goose `
debian:bookworm-slim -- sh -lc '
apt-get update &&
apt-get install -y --no-install-recommends ca-certificates curl bzip2 git &&
curl -fsSL https://github.com/aaif-goose/goose/releases/download/v1.44.0/download_cli.sh |
GOOSE_BIN_DIR=/usr/local/bin GOOSE_VERSION=v1.44.0 CONFIGURE=false bash &&
exec goose session
'
On first launch Goose asks whether to share anonymous usage data, then walks through provider configuration. GOOSE_BIN_DIR installs the executable on the sandbox's normal PATH, including later msb exec sessions. GOOSE_PATH_ROOT keeps its configuration, data, and session state in the goose-data volume.
After leaving Goose, return to the same sandbox and workspace with:
msb exec -t goose-demo -- goose session
Exit the session and run:
msb exec goose-demo -- goose --version
The pinned installer reports 1.44.0.
Use the same review boundary as other coding-agent examples:
msb exec goose-demo -- sh -lc 'cd /workspace && git add -N . && git diff --binary > /tmp/goose.patch'
Copy the patch to the host:
msb cp goose-demo:/tmp/goose.patch ./goose.patch
Check that it applies cleanly before applying it:
git apply --check ./goose.patch
Remove the sandbox:
msb rm -f goose-demo
Remove persisted Goose data only when you no longer need it:
msb volume rm goose-data