Supported platforms
The Linux binaries are statically linked, so they don’t depend on your
distribution’s C library. Each build carries its own copy of ripgrep, so the
model’s
rg searches work without a separate ripgrep install; o4 unpacks it
into ~/.o4/bin the first time a command runs and puts it first on that
command’s PATH. There is no
Windows build, and no build for Intel Macs. On an Intel Mac, the install
script stops with o4 for macOS requires Apple Silicon., and Homebrew won’t
install o4. On an Apple silicon Mac, the script picks the arm64 build even
from a shell running under Rosetta.
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. - Runs
o4 --versionto check that the new binary starts, and stops withinstalled binary did not start successfullyif it doesn’t. - Prints a summary: the version installed (or, when it replaced an
existing
o4, the old and new versions), the install path, and a provider key it found in your environment, if any. - 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:
$SHELL): ~/.zshrc for
zsh, ~/.bashrc for bash, and ~/.profile for any other shell. For fish, it
prints fish_add_path followed by the folder instead. 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.4.22 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 prompt box’s bottom edge
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.