# cortiq-router

AllaiGate model routing for Ulpi — inexpensive models for simple tasks, stronger models for complex work.

- Type: Plugin
- Version: 0.5.2
- Updated: 22 Nov 2026
- Publisher: infosave2007
- Category: Models

[Contact us](https://www.ulpi.io/en/support#contact)

## What it does

AllaiGate model routing for Ulpi — inexpensive models for simple tasks, stronger models for complex work. Classifies every call of a turn (POST /v1/route), picks a model from your globalTiers/taskRules and rewrites the outgoing request via llm_request middleware; tier entries with their own endpoint (Ollama, LM Studio, vLLM, llama.cpp, cortiq, cloud) run through llm_execution with fail-open.

Config: \~/.config/cortiq-ulpi-router/config.json, key: CORTIQ_ROUTER_KEY. Built-in statistics: /cortiq-router stats.

## How to set it up

Disclosure — sends the text of every model call (the user's message, and on each tool-loop step the tool outputs, up to 12,000 characters by default) to the AllaiGate classifier (router.allaigate.com by default) with your CORTIQ_ROUTER_KEY; set to send only the first message of each turn; tier entries with their own endpoint send the whole conversation to that endpoint; its config file (\~/.config/cortiq-ulpi-router/config.json) is shared by all profiles.

```
toolSteps: "low"
```

## Review notes

What an owner reads and accepts before the install is approved.

- Ulpi has not reviewed this version: it is listed in the public plugin catalog, and the install still fetches it at its pinned commit, checks its shape and scans it before you approve

## More in Models

- [council](https://www.ulpi.io/en/marketplace/plugins/council): LLM Council (karpathy/llm-council) as a Ulpi plugin.
- [cpa-status](https://www.ulpi.io/en/marketplace/plugins/cpa-status): /cpa in chat for CLIProxyAPI (CPA) pools: account health per provider (active, limited, cooling, error, disabled), the CPA version with an update hint.
- [Crowbot](https://www.ulpi.io/en/marketplace/plugins/crowbot): crowbot.sh as a model provider: frontier models plus the uncensored open models with their refusals removed.

[All listings →](https://www.ulpi.io/en/marketplace) · [Publisher's guide →](https://www.ulpi.io/en/docs) · [Report a problem →](https://www.ulpi.io/en/security#report)
