Canonical: https://weaveos.com/router/quickstart

[Home](https://weaveos.com/)/[Weave Router](https://weaveos.com/products/router)/Weave Router quickstart

Router setup · Sources checked October 16, 2026

# Weave Router quickstart

Run npx @weave-os/router to open hosted setup. Choose a client explicitly to configure it from the terminal, then check status before starting work. Hosted setup does not require cloning the repository, Docker, or a local database.

[Compare Router plans](https://weaveos.com/pricing/router)[Read the guide ↓](https://weaveos.com/router/quickstart#article-what-do-you-need-before-setup)

On this page

- [What do you need before setup?](https://weaveos.com/router/quickstart#article-what-do-you-need-before-setup)
- [How do you start hosted setup?](https://weaveos.com/router/quickstart#article-how-do-you-start-hosted-setup)
- [How do you verify that setup worked?](https://weaveos.com/router/quickstart#article-how-do-you-verify-that-setup-worked)
- [Should you use user scope or project scope?](https://weaveos.com/router/quickstart#article-should-you-use-user-scope-or-project-scope)
- [How does self-hosted setup differ?](https://weaveos.com/router/quickstart#article-how-does-self-hosted-setup-differ)
- [How do you switch back or remove the configuration?](https://weaveos.com/router/quickstart#article-how-do-you-switch-back-or-remove-the-configuration)
- [Sources](https://weaveos.com/router/quickstart#sources)

## What do you need before setup?

The Router installer requires Node.js 18 or newer, with npm and `npx`. Have the coding client you want to configure available separately. On macOS and Linux, the installer uses Bash. On Windows, PowerShell supports basic setup; commands such as `status`, `models`, subscription login, and account management require Git Bash or WSL.

The installer can reuse `jq` or download a checksum-verified copy on supported platforms. Network access to npm, GitHub, and your chosen Router endpoint is needed. See the [current installer requirements](https://github.com/weave-os/router/tree/main/install/npm#requirements) for architecture and platform details.

## How do you start hosted setup?

Run this in a terminal:

```bash
npx @weave-os/router
```

With no explicit client target, the command opens the hosted setup page. To configure a native client from the terminal, select it explicitly:

```bash
# Choose the client you use.
npx @weave-os/router --claude
npx @weave-os/router --codex
```

Follow the authentication and setup prompts. These commands configure a connection to hosted Weave Router. They do not start a local Router server. Plan features and access are described on the [Router pricing page](https://weaveos.com/pricing/router).

Use the client-specific guides for [Claude Code](https://weaveos.com/router/claude-code) and [Codex CLI](https://weaveos.com/router/codex) before changing an existing configuration.

## How do you verify that setup worked?

Check the configured client explicitly:

```bash
npx @weave-os/router status --claude
npx @weave-os/router status --codex
```

The status command checks connectivity, native configuration, and account health. Resolve an error there before treating the installation as ready. A command completing is not proof that a new session used the Router.

Quit and reopen Claude Code after changing its routing setting. Codex picks up the change on its next run. Check status again if a session continues using an older configuration.

Router chooses a model for each upstream API request, called an action in its documentation. A single user interaction can contain several actions. A model shown for one request does not describe the entire conversation.

## Should you use user scope or project scope?

The native installer supports user-level and project-level configuration. To select a project installation, run it from the intended repository:

```bash
npx @weave-os/router --claude --scope project
# Or, for Codex:
npx @weave-os/router --codex --scope project
```

Project scope changes where configuration is managed. Follow the installer’s credential handling and inspect any files before committing them. Never commit Router keys or provider credentials.

## How does self-hosted setup differ?

Scroll horizontally if needed →

| Setup               | Starting point                  | What you operate                                       |
| ------------------- | ------------------------------- | ------------------------------------------------------ |
| Hosted              | `npx @weave-os/router`          | Your client connection and hosted account setup        |
| Local self-hosted   | `npx @weave-os/router --local`  | Docker Compose services and provider credentials       |
| Existing deployment | `--base-url` with your endpoint | Your deployment, credentials, and access configuration |

Use the local option for the Docker Compose setup, or supply an existing deployment URL:

```bash
npx @weave-os/router --local
npx @weave-os/router --base-url https://router.example.com
```

The URL above is a placeholder. Replace it with your deployment. Self-hosting has its own provider credentials, service dependencies, and operations requirements. Follow the [deployment instructions](https://github.com/weave-os/router#or-self-host-the-whole-stack) rather than assuming hosted account or plan behavior applies to your server.

## How do you switch back or remove the configuration?

For a user-scope install, disable the chosen client without deleting its Router configuration:

```bash
npx @weave-os/router off --claude
npx @weave-os/router off --codex
```

Use `on` in place of `off` to enable routing again. Reopen Claude Code or start the next Codex run after switching. For a project install, include `--scope project` from the same repository.

To remove the installed client configuration, use `--uninstall --claude` or `--uninstall --codex`. Match the original scope. The client-specific guides explain what the installer owns and preserves.

## Sources

- [Hosted Router setup documentation](https://docs.weaveos.com/router/getting-started)
- [Current Router quickstart](https://github.com/weave-os/router#30-second-quickstart)
- [Installer commands and requirements at the reviewed revision](https://github.com/weave-os/router/blob/cbe758442460ca68db8f4fe9837db087c50cf1e5/install/npm/README.md)
- [Router routing terminology](https://github.com/weave-os/router/blob/cbe758442460ca68db8f4fe9837db087c50cf1e5/docs/SEMANTICS.md)

## Choose your Router setup

Select hosted setup or review self-hosted requirements and plan access.

[Compare Router plans](https://weaveos.com/pricing/router)

## Related pages

- [Configure Claude Code ↗](https://weaveos.com/router/claude-code)
- [Configure Codex CLI ↗](https://weaveos.com/router/codex)
- [Router benchmark methodology ↗](https://weaveos.com/router/benchmark-methodology)

On this page

- [What do you need before setup?](https://weaveos.com/router/quickstart#article-what-do-you-need-before-setup)
- [How do you start hosted setup?](https://weaveos.com/router/quickstart#article-how-do-you-start-hosted-setup)
- [How do you verify that setup worked?](https://weaveos.com/router/quickstart#article-how-do-you-verify-that-setup-worked)
- [Should you use user scope or project scope?](https://weaveos.com/router/quickstart#article-should-you-use-user-scope-or-project-scope)
- [How does self-hosted setup differ?](https://weaveos.com/router/quickstart#article-how-does-self-hosted-setup-differ)
- [How do you switch back or remove the configuration?](https://weaveos.com/router/quickstart#article-how-do-you-switch-back-or-remove-the-configuration)
- [Sources](https://weaveos.com/router/quickstart#sources)
