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.

Updated 2026-12-01

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.

TypeClaude code mod
Authoralanrsoares
Repositoryalanrsoares/claude-mods
Popularityno public popularity data yet
CategoryAgents & automation
SecurityReview before installing (64/100)
Rank#4,790 of 9,397 Claude Code mods; #382 in Agents & automation
LicenseMIT
Last commit2026-12-01
Hooks7 events
SeesAgent calls, every prompt
Draws onnothing

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.

CheckResult
Sends data over the networkReview
Starts no processesPass
Writes no files or configPass
Reads environment variablesReview
Watches every prompt or eventReview
Doesn't drive ClaudePass
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.sleep
$.command.register
$.env.getreads env vars
$.http.fetchnetwork requests
$.session.version
$.state.get
$.state.set
$.store.getkeeps its own state
$.store.setkeeps its own state
$.ui.statusdraws interface

How do I install laya-router?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. 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
  3. 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)