Catalog / LLM routing & guardrails
Laya Router Skill: local decision routing for Codex, Claude Code, OpenCode and Pi
Cross-platform Agent Skill plus MCP tool that gives coding agents a local Laya decision capability. Verified on Apple Silicon with MLX and PyTorch backends.
# Laya Router Skill [简体中文](README.zh-CN.md) · [繁體中文](README.zh-TW.md) Universal, cross-platform local decision routing for AI coding agents, powered by Laya and Laya-MLX. For ChatGPT Desktop (Codex), Codex CLI, Claude Code, OpenCode, Pi, and other Agent Skills compatible agents. Laya Router becomes available as a local decision capability. An agent invokes it only when its own skill or tool selection policy chooses to; use the CLI or configured MCP tool for an explicit call. **Version: v0.2.0.** Real MLX, PyTorch and stdio MCP smoke tests passed on an Apple Silicon Mac. Explicit ChatGPT Desktop (Codex), Codex CLI, Claude Code and OpenCode calls were verified. Native Windows/Linux and Intel Mac inference remain unverified. Laya Router is advisory only. Supported agents can invoke it when their skill or tool selection policy decides it is useful. Explicit invocation results are shown below; implicit invocation is agent-dependent and not guaranteed. ## Compatibility | Platform | Backend | CI | Real inference | | --- | --- | --- | --- | | macOS Apple Silicon | laya-mlx / MLX GPU | Python 3.11/3.12 verified | Verified | | macOS Apple Silicon (Torch) | upstream Laya / PyTorch MPS + CPU | Python 3.11/3.12 verified | Verified | | Windows | upstream Laya / PyTorch CPU/CUDA | Python 3.11/3.12 verified | Not yet verified on a native Windows device | | Linux | upstream Laya / PyTorch CPU/CUDA | Python 3.11/3.12 verified | Not yet verified on a native Linux device | | Intel macOS | upstream Laya / PyTorch | Architecture covered; no native-device CI | Not verified | | Client | Skill discovery | Explicit invocation | Implicit invocation | MCP / CLI | Status | | --- | --- | --- | --- | --- | --- | | ChatGPT Desktop (Codex) | Verified | Verified: three `laya_decide` calls | Agen