Supported platforms
The Linux binaries are statically linked, so they don’t depend on your
distribution’s C library. There is no Windows build, and no build for Intel
Macs: the last release with one,
o4-macos-x86_64.tar.gz, is 0.2.54. On an
Intel Mac, the install script stops at the download step with
download failed — does version <version> exist for macos/x86_64?, and
Homebrew won’t install o4. To install 0.2.54 there, run the install script
with O4_VERSION=0.2.54.
Install
- Install script
- Homebrew
- Release archive
Run:The script:
- Checks that
curl,tar, andsha256sumorshasumare installed. - Detects your operating system and architecture, and stops with an error on anything other than macOS or Linux on x86_64 or arm64.
- Looks up the latest release, unless you set
O4_VERSION. - Downloads the archive for your platform and its
.sha256checksum file. - Checks the archive against the checksum and stops if they don’t match.
- Installs the binary as
o4in~/.local/bin, creating the folder if needed. An existingo4in that folder is replaced. - Tells you if the install folder isn’t on your
PATH(see Add o4 to your PATH).
Set them on the
bash side of the pipe, so the script sees them:Add o4 to your PATH
The install script and the manual steps puto4 in ~/.local/bin. If that
folder isn’t on your PATH, the script prints a note and the command to fix
it, for example:
~/.zshrc if you have one, then ~/.bashrc. If you have
neither, it prints only the export line; add that line to your shell’s
startup file. Run the suggested command, then open a new terminal. For zsh,
that’s:
~/.bashrc instead of ~/.zshrc. Homebrew installs don’t need
this step.
Check the install
command not found, the install folder isn’t on your
PATH yet. If you installed o4 more than one way, run which -a o4 to see
every copy on your PATH; the first one listed is the one that runs.
Next, follow the Quickstart to connect a model and run your
first task.
Update o4
Runo4 update. It downloads the latest release, checks it against the
published checksum, and replaces the binary you ran:
o4 update --check only reports whether a newer release exists, and
o4 update --version 0.2.67 installs that release, even if it’s older. Without
--version, o4 never replaces a build that is newer than the latest release.
If o4 was installed with Homebrew, o4 update doesn’t replace it and tells you
to run brew upgrade open4rena/tap/o4 instead.
You can also install again with the method you used before:
- Install script
- Homebrew
- Release archive
Run the install script again. It downloads the latest release and replaces
the binary in the install folder.If you installed into a custom folder, set
O4_INSTALL_DIR again.new o4 installed · restart to update on the second row below the prompt
until you restart. Quit, then run the o4 resume <session-id> command from
the summary o4 prints when it exits, to continue the same session on the new
version.
Uninstall o4
Remove the binary with the method you used to install it:- Install script or archive
- Homebrew
O4_INSTALL_DIR, remove o4 from that folder instead.~/.o4. To remove them too:
.o4 folder with project
settings and data. Those folders stay in place; delete them yourself if you
don’t need them.