What is laya-router?
laya-router is a Claude Code mod by alanrsoares that rates each prompt with a local laya-serve, names a model tier, fills it in on Agent calls and can route the main loop. It is listed under Agents & automation and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | alanrsoares |
| Repository | alanrsoares/claude-mods |
| Popularity | no public popularity data yet |
| Category | Agents & automation |
| Security | Review before installing (64/100) |
| Rank | #4,790 of 9,397 Claude Code mods; #382 in Agents & automation |
| License | MIT |
| Last commit | 2026-12-01 |
| Hooks | 7 events |
| Sees | Agent calls, every prompt |
| Draws on | nothing |
Is laya-router safe to install?
laya-router scores 64/100 on the MCPMods security check: Review before installing. Things to review: sends data over the network; reads environment variables; watches every prompt or event. It passed 5 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| Sends data over the network | Review |
| Starts no processes | Pass |
| Writes no files or config | Pass |
| Reads environment variables | Review |
| Watches every prompt or event | Review |
| Doesn't drive Claude | Pass |
| Passes claude plugin validate | Pass |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.sleep | |
$.command.register | |
$.env.get | reads env vars |
$.http.fetch | network requests |
$.session.version | |
$.state.get | |
$.state.set | |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.ui.status | draws interface |
How do I install laya-router?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/alanrsoares/claude-mods claude plugin validate ./claude-mods/laya-router
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add alanrsoares/claude-mods && claude plugin install laya-router@alan-mods
Or ask Claude to set it up
Paste this into Claude Code and it installs laya-router for you:
Install the "laya-router" Claude Code mod from https://github.com/alanrsoares/claude-mods/tree/main/laya-router. Run claude plugin validate on it first and show me what it can access before you enable it.
More from alanrsoares/claude-mods
This repository has 5 Claude Code mods on MCPMods.
- agent-gate: Puts every Agent (subagent) call to the permission decider instead of running it unasked. (Low risk)
- bash-tidy: Drops redundant cd from Bash commands and asks before cat/grep/sed -i that Read, Grep or Edit would do. (Low risk)
- headroom-hud: HUD band and side pane: model/effort, context gauge, session cost, headroom proxy savings, and guided /compact. (Review before installing)
- verify-gate: Asks before git commit or gh pr create while edited code has not passed a check command since its last edit. (Low risk)