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

# LLM router

> Connect a model provider and assign a model to each reasoning level.

The **LLM router** screen assigns a model to each of three **reasoning levels**. The router then picks the right-sized model per request, so a quick lookup doesn't run on your most expensive model.

## The three reasoning levels

| Level | Use it for |
| - | - |
| **Advanced reasoning** | Coding, planning, complex analysis |
| **Balanced** | Most everyday requests |
| **Fast responses** | Simple requests where speed is preferred |

Every config assigns a model per level. One is enough.

## The screen

With no configs, the page shows **No configs yet!** and a **Setup new config** button.

Each config appears as a card with its name, provider, the model per level, and a **Default** badge on the current default. Actions: **Make default** (on non-default configs) and **Delete**.

**Available providers** below lists every usable provider with its model count and a **Requires API key** chip. Clicking one opens the config form with that provider preselected.

## Creating a config

**1. Name it and pick a provider**

The provider choice unlocks the reasoning-level dropdowns — they stay disabled until Nasiko knows which models to offer.

**2. Connect the provider**

* **Use saved secret** (default) — pick from secrets already in your workspace. See [Secrets](https://docs.nasiko.com/governance/secrets/overview.md).
* **Add new secret** — name it (e.g. `OPENAI_API_KEY`) and paste the key. Stored encrypted, used only for that provider.

Either way, the key is never displayed back to you.

**3. Assign a model per level**

Each dropdown lists only that provider's models; switching provider repopulates all three.

At least one is required — saving all three empty returns *"Choose a model for at least one reasoning level."*

**4. Save it**

Tick **Make this the default routing config** if it should be the default. It's ticked automatically for your first config.

> [!NOTE]
>
> Changing the default config changes which models subsequent requests use. It doesn't affect conversations that already ran, and it doesn't restart any agent.

## Model routing vs. agent selection

Two things get called "routing." This screen controls only the first:

| Decision | Where it's configured |
| - | - |
| Which **model** answers | This screen |
| Which **agent** answers | [Orchestrator and routing engine](https://docs.nasiko.com/build/routing-engine.md) |

Agent selection decides *who* handles the request; your routing config decides *which model* that work runs on.

> [!TIP]
>
> To lock a specific agent to one model, pin an [LLM config](https://docs.nasiko.com/models/llm-configs.md): `nasiko llm-config create ... --pin`.

## Related

> [card] [LLM configs](https://docs.nasiko.com/models/llm-configs.md)
>
> Create, attach, pin, and fall back.

> [card] [Providers](https://docs.nasiko.com/models/providers.md)
>
> Built-in catalog and custom endpoints.

> [card] [TokenOps dashboard](https://docs.nasiko.com/tokenops/dashboard.md)
>
> What your model choices cost.

> [card] [Secrets](https://docs.nasiko.com/governance/secrets/overview.md)
>
> Where provider keys are stored and rotated.


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