# Quickstart

Install the CLI, check the local supervisor and start a session using your own Claude Code or Codex sign-in.

Canonical URL: https://ohputer.com/router/docs/quickstart

## 1. Install on macOS or Linux

Install with the SHA-256 verified shell script or Homebrew. See the [release manifest](https://ohrouter.com/release.json) for available builds by operating system and architecture.

To upgrade a running daemon, install the new binaries, then wait for your active sessions to finish. Run `oh-router daemon stop` followed by `oh-router daemon start`, and use `oh-router daemon status` to check its version.

On Apple Silicon you can also use the command bundled in [OH for Mac](https://oh.computer/docs/agents). The OH cask installs the app, and the standalone formula provides Homebrew’s `oh-router` command.

Install into `~/.local/bin` (or set `OH_ROUTER_INSTALL_DIR`) with SHA-256 verification:

**Shell installer**

```sh
curl -fsSL https://ohputer.com/install.sh | sh
oh-router --version
```

Or install via Homebrew on macOS and Linux:

**Homebrew**

```sh
brew install hraness/tap/oh-router
oh-router --version
```

## 2. Check the local supervisor

OH Router starts its supervisor when needed. You can also start it explicitly and check that it accepts local commands. A new installation returns an empty session list. To try a terminal before signing in to a provider, open a project folder and run `oh-router spawn --kind shell --cwd "$PWD"`.

**Start and inspect the supervisor**

```sh
oh-router daemon start
oh-router ps --json
```

## 3. Start a session in a project folder

Install the provider CLI on this machine and run `oh-router profiles list --json`. Router discovers existing fleet profiles in place. If one shows a ready personal sign-in, use its ID to launch. For a new Codex profile, run `oh-router profiles add --provider codex --id my-mac` and copy its `personal_dir`.

Replace the quoted path with that profile’s personal_dir. Complete the provider’s sign-in in the terminal, then probe the profile to confirm the personal sign-in.

**Sign in to this profile**

```sh
env CODEX_HOME="/path/from/personal_dir" codex login
oh-router profiles probe --provider codex --id my-mac
```

In your project directory, start a session with that profile and read the session list.

**Start Codex in this project**

```sh
oh-router codex --profile my-mac --cwd "$PWD" "Summarize this project"
oh-router ps --json
```

> Coding agents can load the public skill bundle from `https://ohrouter.com/integrations/oh-router.json`, which carries `skills/oh-router/SKILL.md` and its license.

For Claude Code, add a Claude profile and run `claude auth login` with its personal directory as `CLAUDE_CONFIG_DIR`. To capture Claude turns and identify its transcript, run `oh-router daemon setup-hooks --claude-dir "/path/from/personal_dir"` with the same profile folder, then add `--write` to apply the settings. Confirm the sign-in with `oh-router profiles probe --provider claude --id ID`, then start it with `oh-router claude --profile ID`.

Use the returned session ID with `oh-router inspect ID --json`. To queue a follow-up, run `oh-router steer ID --mode queue "Summarize the test suite"`. The [CLI reference](/router/docs/cli) covers changing models and ending a session.
