Laya for agents

Agents make many small decisions: which tool to call, whether an input is safe, which element to click. Laya answers each one as a typed probability in one forward pass, locally, so an agent can branch on a number instead of parsing prose from an LLM.

606 projects

laya-mcp

frankdavid888

Packages Laya as an MCP server for AI assistants to make typed decisions

0·GitHub repo

mcp-laya

dockndevai

Provides an MCP server exposing Laya typed-decision tools to agents

0·GitHub repo

laya-rex

luiz0ar

A browser dashboard uses Laya decisions to control the T-Rex Runner game

0·GitHub repo

laya-ecosystem

MiguelFAraujo

Provides utilities for supervision, context compaction, search, and UI decisions using Laya and Jev

0·GitHub repo

hey-laya

touhidsiddiqueeraj-bit

Runs an offline voice assistant that uses Laya for on-device decisions

0·GitHub repo

laya---jev

rosdebbu

Farm and market co-pilot agent that routes vernacular farmer queries with a local Laya router

0·GitHub repo

everything-laya

its-negy-lmsy

Provides an MCP server and Python toolkit for self-hosted Laya

0·GitHub repo

laya-call-router

riefer02

Demonstrates fine-tuned Laya decisions in an inspectable dealership call-routing workflow

0·GitHub repo

laya-mcp-server

carl0s

An MCP server and REST endpoint expose Laya for structured text and JSON decisions

0·GitHub repo

pi-laya-router

codenamekt

Routes Pi coding-agent prompts to mapped models using a local Laya intent classifier

0·GitHub repo

-Semantic-Firewall-laya

manas95826

Authorizes AI-agent tool calls using retrieved security context and Laya decisions

0·GitHub repo

laya-v2-agent-routing

mdad-elec

Fine-tunes a Laya System-One router to select the price tier for each agent turn

0·GitHub repo

100-days-of-jev-and-laya

kashyaprparmar

Collects 100 practical projects using Jev and local Laya for typed decisions

0·GitHub repo

laya-fine-tune-bn-eco-voice

nafi-ullah

Fine-tunes multilingual Laya for typed decisions in a Bangla e-commerce voice agent

0·GitHub repo

lx

iheeb1

Prunes shell output using RTK rewrites and Laya classifications

0·GitHub repo

dev

phix

Hardens and rebrands Laya as a local typed-decision engine with server and MCP support

0·GitHub repo

nlaut

benkya

Runs natural-language browser tests with deterministic, vision-model, and Laya-based judgments

0·GitHub repo

intents

ezeike

Documents and sketches decision-model patterns for routing user input to application actions

0·GitHub repo

stopline

mdabydeen

Uses Jev or Laya to classify browser-agent actions before applying a policy gate

0·GitHub repo

LayaDecisionMcp

cl2raul66

A local MCP server exposes Laya typed decisions to OpenCode and other MCP clients

0·GitHub repo

nexus-decisor-laya

janiojandson

A JavaScript Nexus decision component built around the Laya System 1 model

0·GitHub repo

5dive-laya

5dive-ai

A 5dive add-on for reflex decisions using a local Laya model

0·GitHub repo

Laya_local

RickyFer22

A Pong game and experiment using Laya for real-time decisions alongside physics-based prediction

0·GitHub repo

laya-compaction

tristankenney

A Claude Code plugin that compacts context using scores from a local Laya model

0·GitHub repo

MCP servers

The core package includes an optional MCP stdio server with laya_predict, laya_route, laya_preset and laya_status tools:

pip install "laya[mcp]"
laya-mcp-server
{
  "mcpServers": {
    "laya": {
      "command": "laya-mcp-server",
      "env": { "LAYA_DEVICE": "cpu" }
    }
  }
}

Other options:

  • laya-mcp (NVentimiglia): pip install laya-mcp, with guardrail, routing, PR-diff and moderation tools.
  • ollaya: claude mcp add ollaya -- ollaya mcp.
  • typesafe-mcp: built for Jev, and can point at a local Laya server through TYPESAFE_BASE_URL.

Browser automation

  • laya-browser-agent: Playwright/CDP browser decisions with Laya, speaking TypeSafe's /v1/systemone dialect. It also publishes a fine-tuned browser checkpoint.
  • laya-ultrafast: a port of browser-use/jev-ultrafast that runs Laya through laya-mlx (Apple Silicon only).
  • The core repository documents a browser-agent fine-tune on one 16 GB GPU. Element top-1 accuracy went from 0.10 zero-shot to 0.66, and task success from 0% to 62%.

Agent frameworks and evals

  • system1-agents: prebuilt browser-use, computer-use, robotics and game agents on Jev, Laya or Cua-S1.
  • jevals: agent evals and guardrails as typed decisions (pip install jevals), with Laya as a local option.
  • FluidUse: on-device computer use on macOS, with Laya over Core ML.

Caveats

laya-ultrafast states it plainly: Laya answers narrow questions well (which field is the destination, whether two dates match) but does not reliably answer "what should the browser do next?". Those projects combine narrow Laya questions with rules. The zero-shot numbers above also show that fine-tuning is where most of the gain comes from.

Hosted option

An agent that runs in the cloud may not have a GPU or a Mac next to it. layahost serves Laya, and Cloudflare's open Clef models, over the Jev-compatible /v1/systemone. It has an MCP server for agents, an n8n community node (n8n-nodes-layahost) and a prompt_injection template for screening web pages, emails and tool output before an agent reads them. layahost is run by the makers of laya.tools.

More ways to use Laya