|
| 1 | +# Installation |
| 2 | + |
| 3 | +How to install `ox` on macOS, Linux, and Windows. For first-run setup once installed, see the [quickstart](quickstart.md). |
| 4 | + |
| 5 | +## System requirements |
| 6 | + |
| 7 | +- **OS**: macOS 12+, a recent glibc-based Linux, or Windows 10+ (Alpine / musl-based Linux needs the source-build path) |
| 8 | +- **Architecture**: `x86_64` everywhere, plus `aarch64` on macOS (Apple Silicon) |
| 9 | +- **Network**: outbound HTTPS to `api.anthropic.com` |
| 10 | +- **From-source builds only**: [Rust](https://www.rust-lang.org/tools/install) 1.91+ |
| 11 | + |
| 12 | +## Install `ox` |
| 13 | + |
| 14 | +Pick whichever path matches how you usually install developer tools. |
| 15 | + |
| 16 | +### Prebuilt binary |
| 17 | + |
| 18 | +Download the latest release archive from [Releases](https://github.com/hakula139/oxide-code/releases/latest), extract, and move the `ox` binary onto your `PATH`: |
| 19 | + |
| 20 | +```bash |
| 21 | +# macOS aarch64 (Apple Silicon) |
| 22 | +curl -fsSL https://github.com/hakula139/oxide-code/releases/latest/download/oxide-code-aarch64-apple-darwin.tar.gz | tar -xz |
| 23 | +sudo mv ox /usr/local/bin/ |
| 24 | + |
| 25 | +# macOS x86_64 (Intel) |
| 26 | +curl -fsSL https://github.com/hakula139/oxide-code/releases/latest/download/oxide-code-x86_64-apple-darwin.tar.gz | tar -xz |
| 27 | +sudo mv ox /usr/local/bin/ |
| 28 | + |
| 29 | +# Linux x86_64 |
| 30 | +curl -fsSL https://github.com/hakula139/oxide-code/releases/latest/download/oxide-code-x86_64-unknown-linux-gnu.tar.gz | tar -xz |
| 31 | +sudo mv ox /usr/local/bin/ |
| 32 | + |
| 33 | +# Windows x86_64 (Git Bash / MSYS / WSL) |
| 34 | +curl -fsSLO https://github.com/hakula139/oxide-code/releases/latest/download/oxide-code-x86_64-pc-windows-msvc.zip |
| 35 | +unzip oxide-code-x86_64-pc-windows-msvc.zip |
| 36 | +``` |
| 37 | + |
| 38 | +Each archive ships a single `ox` executable. Each release also publishes a `<archive>.sha256` sidecar you can verify against. |
| 39 | + |
| 40 | +### Homebrew (macOS, Linux) |
| 41 | + |
| 42 | +Tap this repo, then install: |
| 43 | + |
| 44 | +```bash |
| 45 | +brew tap hakula139/oxide-code https://github.com/hakula139/oxide-code |
| 46 | +brew install oxide-code |
| 47 | +``` |
| 48 | + |
| 49 | +The formula pulls the prebuilt tarball published by `.github/workflows/release.yml`, so the install is binary-only and needs no Rust toolchain. |
| 50 | + |
| 51 | +### From source via cargo |
| 52 | + |
| 53 | +If you already have a Rust toolchain set up: |
| 54 | + |
| 55 | +```bash |
| 56 | +cargo install --git https://github.com/hakula139/oxide-code --locked |
| 57 | +``` |
| 58 | + |
| 59 | +This compiles `oxide-code` from the `main` branch and installs `ox` to `~/.cargo/bin`. Pass `--tag vX.Y.Z` to pin a specific release. |
| 60 | + |
| 61 | +### Nix |
| 62 | + |
| 63 | +The repo ships a flake that source-builds `ox`: |
| 64 | + |
| 65 | +```bash |
| 66 | +nix run github:hakula139/oxide-code # one-shot |
| 67 | +nix profile install github:hakula139/oxide-code # install to user profile |
| 68 | +``` |
| 69 | + |
| 70 | +Or as a flake input from another project: |
| 71 | + |
| 72 | +```nix |
| 73 | +inputs.oxide-code.url = "github:hakula139/oxide-code"; |
| 74 | +# Outputs: packages.${system}.{default, oxide-code} |
| 75 | +``` |
| 76 | + |
| 77 | +## Verify your installation |
| 78 | + |
| 79 | +```bash |
| 80 | +ox --version |
| 81 | +``` |
| 82 | + |
| 83 | +If `ox` is on `PATH`, this prints the version string. A `command not found` means the binary didn't land somewhere your shell searches, so re-check the move or install step for the path you used. |
| 84 | + |
| 85 | +## Update `ox` |
| 86 | + |
| 87 | +| Install method | Update command | |
| 88 | +| --------------- | ------------------------------------------------------------------------------------------ | |
| 89 | +| Prebuilt binary | Re-run the `curl ... \| tar -xz` + `sudo mv` block from above against `/releases/latest/`. | |
| 90 | +| Homebrew | `brew update && brew upgrade oxide-code` | |
| 91 | +| Cargo | `cargo install --git https://github.com/hakula139/oxide-code --locked --force` | |
| 92 | +| Nix profile | `nix profile upgrade oxide-code` (or refresh the flake input in your project) | |
| 93 | + |
| 94 | +## Uninstall `ox` |
| 95 | + |
| 96 | +| Install method | Uninstall command | |
| 97 | +| --------------- | -------------------------------------------------------------- | |
| 98 | +| Prebuilt binary | `sudo rm /usr/local/bin/ox` (or wherever you moved it) | |
| 99 | +| Homebrew | `brew uninstall oxide-code && brew untap hakula139/oxide-code` | |
| 100 | +| Cargo | `cargo uninstall oxide-code` | |
| 101 | +| Nix profile | `nix profile remove oxide-code` | |
| 102 | + |
| 103 | +To also remove session data and config: |
| 104 | + |
| 105 | +```bash |
| 106 | +rm -rf ${XDG_DATA_HOME:-$HOME/.local/share}/ox # session JSONLs |
| 107 | +rm -rf ${XDG_STATE_HOME:-$HOME/.local/state}/ox # log file |
| 108 | +rm -rf ${XDG_CONFIG_HOME:-$HOME/.config}/ox # user config (if you wrote one) |
| 109 | +``` |
0 commit comments