> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getunbound.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Direct Install

> Install a tool without the CLI, or onto a custom Unbound domain

`unbound setup <tool>` is the normal path. Use the direct installer when the Unbound CLI isn't on the machine, or when your organization runs Unbound on its own hosts.

**macOS and Linux**

```bash theme={null}
python3 <(curl -fsSL https://getunbound.ai/setup/claude-code/hooks/install) --domain gateway.getunbound.ai
```

**Windows** — PowerShell has no process substitution, so download the installer first and run it:

```powershell theme={null}
$installer = Join-Path $env:TEMP 'unbound-install.py'
Invoke-WebRequest -Uri 'https://getunbound.ai/setup/claude-code/hooks/install' -OutFile $installer -UseBasicParsing
python $installer --domain gateway.getunbound.ai
Remove-Item $installer -Force
```

If `python` isn't on your `PATH`, use `py -3` in its place.

Replace `gateway.getunbound.ai` with your organization's Unbound dashboard host, and the route with the one for your tool from the table below.

## Routes

| Tool | Route |
| - | - |
| Claude Code | `/setup/claude-code/hooks/install` |
| Cursor | `/setup/cursor/install` |
| Codex | `/setup/codex/hooks/install` |
| GitHub Copilot | `/setup/copilot/hooks/install` |
| Augment Code | `/setup/augment/hooks/install` |

Run these **without** `sudo` — they configure the account you run them as. For fleet-wide deployment see [Deploy AI Tools via MDM](https://docs.getunbound.ai/mdm-integrations/deploy-ai-tools.md).

## Flags

| Flag | Purpose | Default |
| - | - | - |
| `--domain <host>` | Your Unbound **dashboard** host. The installer opens it in a browser to fetch your API key. Required unless you pass `--api-key` | — |
| `--api-key <key>` | Use a key you already have and skip the browser step | — |
| `--backend-url <url>` | Your Unbound backend, if your organization runs its own | `https://backend.getunbound.ai` |
| `--gateway-url <url>` | The AI gateway your tool is pointed at, if your organization runs its own | `https://api.getunbound.ai` |
| `--clear` | Remove this tool's Unbound configuration. Needs no key and no URLs | — |
| `--backfill` | Send recent local session history on install, so the dashboard isn't empty on day one. Backfills for **Claude Code hooks, Codex hooks and Copilot**. Cursor and Augment accept the flag and skip: Cursor prints `[backfill] Cursor backfill is not supported — no historical transcript data is available on disk.` and Augment prints `[backfill] Augment backfill is not supported.` | off |
| `--debug` | Verbose output | off |
| `--config-dir <path>` | Claude Code only: the Claude config directory. Must match `CLAUDE_CONFIG_DIR` in your environment, or Claude Code won't read the install | `$CLAUDE_CONFIG_DIR`, else `~/.claude` |

> [!WARNING]
>
> `--domain` only controls **where the browser goes to authenticate**. It does not move your model traffic.
>
> If your organization runs its own Unbound backend or gateway, pass `--backend-url` and `--gateway-url` as well. Passing `--domain` alone leaves the tool pointed at Unbound's default hosts, and everything appears to install correctly.

> [!NOTE]
>
> Pass every value in the `--flag value` form, with a space — not `--flag=value`. A run that is missing a value it needs stops with `Missing required argument: --domain or --api-key`. `--config-dir` is the one exception and accepts either form.
>
> These installers have no `--help` — the table above is the flag list.

## On a managed device

On an MDM-managed device the Claude Code, Codex, Cursor and Augment installers stop and change nothing, naming the tool — `Skipped — Claude Code is managed by your organization (MDM)`, and likewise for the other three. They exit with status 3. The Copilot installer has no such guard: on a managed device it installs anyway, into `~/.copilot`. It does not displace your MDM deployment — Copilot's managed settings file takes precedence over anything a per-user install writes.

## In a dev container

A dev container has its own filesystem, so the hooks the installer wrote into your home directory on the host are not there. Add the Unbound Feature to your `devcontainer.json` and Claude Code and Cursor inside the container enforce your policies too — prompts, tool calls and shell commands are all covered:

```json theme={null}
"features": {
  "ghcr.io/websentry-ai/setup/unbound-hooks:latest": {}
}
```

Supply your credentials at run time, either as `UNBOUND_CLAUDE_API_KEY` (Claude Code) or `UNBOUND_CURSOR_API_KEY` (Cursor) in the container's environment or by mounting `~/.unbound/config.json` — nothing is baked into the image.

The container needs `python3` and `curl`; the Feature installs them where it can. If either is missing, the build log says so — `unbound-hooks: WARNING` — and **no policy is enforced inside that container**: every call is allowed.

A discovery scan that runs inside a container is listed in AI Tools Discovery with a **Container** badge rather than **Device**.

> [!NOTE]
>
> Early access. It covers Claude Code and Cursor inside the container, and no other tool. Email [support@unboundsecurity.ai](mailto:support@unboundsecurity.ai) before relying on it for a fleet.

## If the browser step doesn't finish

The installer waits for a callback from the dashboard you named in `--domain`. If it hangs, or ends with `No API key received. Exiting.` or `Failed to receive callback. Exiting.`, the host you passed isn't the dashboard that can mint a key for your organization — check it against the URL you use to sign in.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.