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

NandhaKishorM

Runs multilingual typed-decision models and provides routing, serving, and integration options

23.9k·GitHub repo

typesafe-mcp

itsmostafa

Connects AI agents to typed-decision models through an MCP server

303·GitHub repo

quackd

rokbenko

A Python CLI coordinates robots using LLMs, vision-language-action models, and decision models

244·GitHub repo

laya-ultrafast

ipenywis

Runs a browser automation agent using local Laya decisions through MLX

181·GitHub repo

mu

qybaihe

Provides a coding agent with a judgment kernel that can use Laya as its local judge

179·GitHub repo
C

laya-typed-decisions

convaiinnovations

A Laya model fine-tuned for agent traces, customer service, invoices, and security incidents

4.1k·HF model

FluidUse

FluidInference

Automates form filling on Apple devices with on-device models, including Laya through Core ML

160·GitHub repo

keel

codejunkie99

A macOS coding workspace uses local Laya or hosted Jev to select task routes

122·GitHub repo

jevals

openlayer-ai

Agent evaluation and guardrail tools run with local Laya, Kev, or hosted Jev

86·GitHub repo

system1-agents

ThinkFlowLab

Prebuilt agents use Jev, Laya, or Cua-S1 for browser, computer, robotics, and game tasks

64·GitHub repo

laya-pilot

anthonyli

Generates and replays Excel browser tests using Playwright and local Laya decisions

45·GitHub repo
C

laya-browser

cklxx

Fine-tunes Laya as a browser-agent decision head for web navigation

564·HF model

arbiter

0xBakeer

Serves Laya and other typed-decision models locally with a Jev-compatible API

30·GitHub repo

laya-jev-GraphRAG

bodepudimuneendra-netizen

Builds graph-based retrieval pipelines with swappable local Laya and cloud Jev decisions

29·GitHub repo

hermes-nerve

keeltrace

Adds typed decision oversight and tool gating to Hermes agents using Jev or self-hosted Laya

25·GitHub repo

ollaya

ollaya-dev

Pulls and serves local decision models, including Laya, through a TypeSafe-compatible API

24·GitHub repo

laya-guard

scs0209

Locally judges AI coding-agent tool calls with regex checks and the Laya model

21·GitHub repo

laya-drift

pythongiant

Monitors opencode sessions for semantic drift using Laya typed-decision probes

15·GitHub repo

llm-honing

HectorHHZ

Trains and evaluates small decision models through game-playing loops and shared decision-server integrations

13·GitHub repo
S

laya-mind2web-browser-agent

ShaunSpark

Fine-tunes Laya on Mind2Web for browser automation decisions

143·HF model
C

MacJev-322M-4K-Laya

chaoliangUNSW

Fine-tunes Laya for long-context local Mac agents and compares it with the base model

58·HF model

laya-browser-agent

ChenneyZhuang

Runs Laya locally to provide typed decisions for browser agents

10·GitHub repo

fast-jev-compaction-laya

kaiyes

Compacts OpenCode context using decisions from a locally served Laya model

8·GitHub repo

kevala

bvolpato

A Rust WebAssembly engine runs Laya and other decision models locally in browsers

7·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