router
Model router for agentic systems. Routes every prompt to the right model in <50ms. Cut costs 40-70% with just an endpoint change
What XERJ indexed
Snapshot
Only cmd/router, docs, internal/config, internal/providers/openai, internal/proxy at commit cbe7584424 (2026-10-16).
Selected work

“opt in to Codex subscription extra credits on self-hosted route…”. 11 files, 461 lines in internal/providers, internal/proxy, internal/config.
Licence
The repository
LICENSE file checked at the pinned commit; the author agreed to inclusion.
The XERJ corpus
The author agreed by email on 2026-10-17. Same terms as the repository. Answers name the repo, the commit and the file:line.
selected for the XERJ Corpus Hublicence clearedsuggested use: adapt with attribution
agentic-codingai-gatewayanthropicclaude-codecodexmodel-routeropenai-compatible
Example questions
- How does router implement agentic-coding?
- What does internal/providers do in router?
- Show the ai-gateway code in router.
The prompt
Paste it into your AI agent. It clones weave-os/router at the pinned commit and indexes it on your machine.
Search the GitHub repository weave-os/router with XERJ (https://hub.xerj.org/corpus/weave-os--router). Run these in a shell, in order, and check each result before the next: 1. xerj --help (success: it prints usage). If xerj is missing: curl -fsSL https://xerj.org/get | sh 2. git clone https://github.com/weave-os/router router && git -C router checkout cbe758442460ca68db8f4fe9837db087c50cf1e5 3. Start a local node and leave it running: xerj --insecure --data-dir ./xerj-data 4. xerj autoindex ./router --url http://127.0.0.1:9200 --prefix router --progress plain 5. xerj autoindex map --url http://127.0.0.1:9200 Then answer my question from the indexed files and cite the ax_path of every hit. Query syntax: https://xerj.org/llms.txt Licence: Apache-2.0. Keep the copyright notice and credit the authors.
Related
Adam CreegerAI, prompts and agents corporaagent-managergriptapeaiderfunkeyyou/codex-model-routercaidaoli/ccLoadsaaranshM/unsnooze
Selected work and consent: the XERJ registry.