Installing the CLI
Install the oxagen CLI from npm. A single executable for a machine without Node.js can be several major versions behind.
Install the oxagen command from npm, the supported way to install it. A single executable exists for a machine without Node.js, but it can be several major versions behind npm.
From npm (recommended)
The npm package needs Node.js 22.15 or newer. On Node.js 23, it needs 23.8 or newer:
npm install -g @oxagen/cli
oxagen --versionnpm's latest version is the one production runs. Each production deploy publishes the CLI it shipped, numbered as a build of the next release, such as 2.1.4-12. A release publishes under its own number, such as 2.1.4. To install one version, name it: npm install -g @oxagen/cli@2.1.4.
To update the CLI, run npm install -g @oxagen/cli again.
A single executable
npm is the supported way to install the CLI. The single executables on downloads.oxagen.sh can be several major versions behind npm, so use one only on a machine that cannot run Node.js, and run oxagen --version after you install it. Each executable carries its own runtime, so it needs no Node.js. A .sha256 sits beside each file.
| Platform | File |
|---|---|
| macOS Apple silicon | oxagen-aarch64-apple-darwin |
| macOS Intel | oxagen-x86_64-apple-darwin |
| Linux x86_64 | oxagen-x86_64-unknown-linux-gnu |
| Windows x64 | oxagen-x86_64-pc-windows-msvc.exe |
On macOS or Linux, run the install script:
curl -fsSL https://docs.oxagen.sh/install.sh | shThe script downloads the file for your platform from latest/, checks its SHA-256, and installs it to ~/.local/bin. It never uses sudo. On Linux arm64, which has no executable yet, it installs from npm instead. To pin a version, run it as curl -fsSL https://docs.oxagen.sh/install.sh | OXAGEN_INSTALL_BASE=https://downloads.oxagen.sh/desktop/<version> sh.
To do the same steps by hand, download the file for your platform and its checksum, check it, and install it:
name=oxagen-aarch64-apple-darwin # the file for your platform, from the table
curl -fsSLO "https://downloads.oxagen.sh/latest/$name"
curl -fsSLO "https://downloads.oxagen.sh/latest/$name.sha256"
shasum -a 256 -c "$name.sha256" # on Linux: sha256sum -c "$name.sha256"
mkdir -p ~/.local/bin
install -m 755 "$name" ~/.local/bin/oxagenlatest/ holds the newest executable, which is older than the version npm installs. To pin one, replace latest with desktop/<version>, for example https://downloads.oxagen.sh/desktop/2.1.5/oxagen-aarch64-apple-darwin.
On Windows, download oxagen-x86_64-pc-windows-msvc.exe, rename it to oxagen.exe, and put it in a directory on your PATH. Or install from npm, which works on Windows too.
If ~/.local/bin is not on your PATH, add export PATH="$HOME/.local/bin:$PATH" to your shell profile.
Verify the install
Whichever method you used, confirm the binary works and read the top-level help:
oxagen --version
oxagen --helpoxagen --help lists every command group. Append --help to any command (for example oxagen graph search --help) to see its flags.
How to uninstall the CLI
Run this from your own terminal, not from an agent's shell:
oxagen agent uninstallIt unenrolls every agent on the machine, removes their hooks, collector service, and keys, and deletes ~/.config/oxagen, which holds your oxagen login session. While the local event log holds events that have not reached Oxagen, it removes nothing unless you type purge when it asks.
Then remove the command itself. For an npm install, run npm uninstall -g @oxagen/cli. For the single executable, delete ~/.local/bin/oxagen.
A machine where an earlier Oxagen desktop app ran gets the same command. It also removes the links, the shell profile lines, and the per-user copies that app recorded writing. Then remove the app: drag it to the Trash on macOS, remove it in Settings > Apps on Windows, or remove the package on Linux.
Next step
With the binary in place, set up your Oxagen account and authenticate the CLI.
CLI overview
The oxagen CLI: govern, ground, explain, meter, and rate your agent fleet from the terminal.
Wrap an agent
What wrapping means, how to wrap Claude Code, Codex, Cursor, and Stella, how to set it up from a coding agent, how to run two agents on one machine, and how to wrap a custom agent with oxagen agent run or oxagen hook.