Run Codex, Claude Code, and Antigravity from your desk or phone. Continue a plan across runtimes when you’re ready to switch.
OX starts the official CLIs on a per-user host so you can close the window, follow a turn from your phone, and pick it up again. Codex and Claude Code use your subscription or an OX API route. Antigravity uses the Google account signed in on the host.
iPhone (beta). Install TestFlight from the App Store on your iPhone. Open the OX Mobile beta invitation on the same phone, then tap Accept and Install in TestFlight. Once OX Mobile opens, scan a pairing QR code from your OX host or enter the invitation under Add host.
macOS 11 or later. Download the DMG for Apple Silicon or Intel. Open it, drag OX Desktop onto Applications, then launch OX Desktop from Applications. While it’s open, OX Desktop downloads signed updates and restarts when local agents are idle. If you installed from an older DMG, install the latest one once to enable automatic updates.
Linux (glibc 2.39 or later, x86-64 or ARM64) and macOS terminal installs. Use the installer for CLI commands and background updates:
curl -fsSL https://raw.githubusercontent.com/oxstack/ox/main/install.sh | sh -s -- --desktop
cd ~/Work/my-project && ox desktop .OX Desktop opens on the project folder you pass. If launched from the application menu, it opens your home directory and offers Choose project folder…. Install the official CLI for the route you want to use.
| You have | Install the CLI | Then |
|---|---|---|
| ChatGPT plan | npm install -g @openai/codex@latest (the same command upgrades it) |
codex login, or Sign in in the app |
| Claude plan | curl -fsSL https://claude.ai/install.sh | bash (claude update upgrades it) |
claude, then /login, or Sign in in the app |
| Google account | Antigravity CLI with ACP support | Sign in in the app, or follow the host setup |
| Any model through an API key | Codex or Claude Code | ox setup (Anthropic, OpenAI, OpenRouter or a local server), then pick the model in OX |
The first-run card can install or update Codex and links to setup for Claude Code and Antigravity. You can switch to an installed runtime or add an API provider.
The installer verifies the download's SHA-256 checksum, installs ox, ox-desktop and ox-host in ~/.local/bin, and puts OX Desktop in ~/Applications. If your shell cannot find ox, add the line the installer prints to your shell profile.
The same installer adds OX Desktop to your application launcher. It runs on Wayland or X11 with a Vulkan driver.
- Connect. Choose Codex, Claude Code, Antigravity or an API key on the first-run card. It checks again while you install or sign in. Later, choose the runtime and billing route in the header. To add an API model, open Settings → Accounts → Configure provider, or run
ox setup. A saved provider becomes the active route. Runox help settingsfor the desktop and phone screens, file paths and checks. - Send a prompt. Choose New session, type, press Enter. Existing Codex and Claude Code sessions from your terminal appear in the sidebar.
- Keep it running. Run
ox host installso the session host starts at login. Close the window during a turn; reopen it and the turn is still there. - Check the setup.
ox host doctorchecks the host, Tailscale Serve, paired devices and the stock client versions, and names the fix for anything that blocks.
- The relay (
ox). One small binary between the stock clients and your model provider. Add a provider key once and both clients get the same models, picker and web search. Any model in either client: a Claude model in Codex, a GPT model in Claude Code, OpenRouter or a self-hosted model in both. Relay and CLI - OX Desktop (
ox-desktop). A native Linux and macOS workbench for Codex, Claude Code and Antigravity sessions across projects and billing routes. Desktop guide - The session host (
ox-host). A per-user background process that owns every session, its approvals and its workers. Closing the desktop does not stop a turn. It starts on demand, or at login withox host install. Host design - OX Mobile. The native iPhone and Android app connects to your host over private Tailscale. Scan a pairing QR code to follow turns, answer approvals and questions, and start sessions. OX refuses Tailscale Funnel.
- Workers. A session can start a background Codex goal, Claude Code workflow or plain session as a separate job, on an API model or a subscription. Workers appear under their parent on both screens. Without the session host, workers start read-only unless the main agent asks for write, and classifier or YOLO workers are refused.
- Design reviews. Ask Codex or Claude for a second opinion from Antigravity. The answer comes back to the same thread. Design review setup
- Handoffs. Continue a conversation in another runtime, billing route, model or paired host. Use Continue in… to choose where it goes. The new session receives selected messages and the latest visible plan. Handoff setup
- One mode model. Every permission preset maps to one of four levels: read (Codex Read only, Claude Plan), write (Workspace, Accept edits), classifier (Auto-review, Auto) and YOLO (YOLO, bypass permissions). Agent-launched workers inherit the verified source level or request a lower one. The operator can choose a different level. A handoff with no chosen mode starts in the mode you saved for new sessions of its runtime, else at its source's level. Agents can lower a child's mode but never raise it. An agent-launched worker inherits a verified YOLO parent without another prompt. Explicit YOLO requests and handoffs use the operator confirmation or a stored grant. Mode model
- Install OX Mobile on your phone. Use the iPhone TestFlight beta or the Android build guide.
- Connect the host and phone to the same Tailscale network with MagicDNS and HTTPS enabled. On the host, open Settings → Remote access → Enable Tailscale Serve, then Pair a device.
- Open OX Mobile and choose Scan pairing QR code. Scan the QR shown on the host. You can also paste the invitation or enter the host address and code under Add host.
- On iPhone, open Host settings → Notifications to turn alerts on and choose which events send them.
Native phone setup · Browser fallback
On the server, run the installer with --host, then run ox host pair (if HTTPS port 8443 is already used in Tailscale Serve, pass --port <port>, or --listen-port <port> if loopback port 48162 is taken). It prints a QR code, the invitation link, and the host address and 12-character code. Scan the QR in OX on the phone, paste the link, or enter the address and code under Add host. All three redeem the same five-minute invitation. To pair without carrying a code, run ox host pair --window, scan or enter the printed address on the device, then accept the waiting request with ox host pending and ox host approve <id>. To reuse configured API keys, select the server and choose Send API keys…. From a paired browser, open Settings → Credentials → Copy keys to another host… on the host that already has the keys. Choose the destination, select the provider or Brave Search keys you want, and send. The receiver can use those keys and incur charges until you remove or rotate them.
Managed headless hosts install updates automatically when idle. Use Host settings → Host updates in OX Mobile, or select the server in desktop Settings → Hosts, to choose Automatic, Download only or Manual and the Dev or Stable channel.
If you only want the relay in your terminal, leave out --desktop:
curl -fsSL https://raw.githubusercontent.com/oxstack/ox/main/install.sh | sh
ox setup
ox codex # or: ox claudeWith stock OpenCode on PATH, run ox opencode
to use the same OX API providers from OpenCode's terminal interface. Run
ox opencode models for the model IDs accepted by OpenCode and
ox help opencode for interactive and scripted examples.
For a macOS DMG install, choose Settings → Appearance & input → OX updates → Check manually to turn off automatic updates. You can still use Settings → Accounts → Check for updates. macOS update details
Installer-managed copies of OX Desktop download and verify a complete release in the background. Choose Restart to update to switch the desktop, CLI, session host and bundled phone interface together, Restart when idle to switch automatically once all host-managed agents finish, or Later to defer the decision. You can bring the prompt back from Settings → Accounts → Restart to update.
For an older installation, rerun the install command once to enable background updates. Include --desktop for the full suite or omit it for the standalone CLI. Run ox update to apply an update from the terminal, including on a headless machine. A running host gives active turns up to ten minutes to finish. Check the running version with ox host doctor.
To remove the login service, run ox host uninstall. It keeps your sessions and pairings. ox host uninstall --purge also deletes OX's host state. Neither touches Codex or Claude Code sessions or sign-ins.
| What you see | What to do |
|---|---|
| Anything in the desktop or phone | ox host doctor. Each FAIL line ends with the fix. |
| Provider, key or model errors | ox doctor, then the relay troubleshooting table. |
| "The running OX session host speaks protocol …" | ox host restart. The desktop and host versions differ. |
| The phone says the host is restarting for an update | Wait a few seconds and send again. |
| Host doctor warns that Codex or Claude predates the tested baseline | Use the upgrade command in the warning if the client lacks a feature you need. |
| Remote access fails or port 8443 is taken in Tailscale | Run ox host pair --port <port> (or enter another HTTPS port in Settings → Remote access). If doctor reports Funnel, run tailscale funnel --https=8443 off. |
Find a guide by task, its implementation and its tests. For providers and billing, start with configuration. For sessions, start with the desktop guide or the native mobile guide.