madewithlaya

Catalog / Tools & apps

0057GitHub

laya-go: Go server plus agent CLI and MCP for Laya decisions

One process serves the model API and an admin UI; agents call decide over MCP, HTTP or CLI and take top.id as the action. Windows service installer included.

Open source ↗ github.comcostfree, self-hostedtime-
neko233-com/laya-goREADME ↗
# Laya Go

English | [中文](README.zh.md)

Open horizontal **System 1** decision models for agents. Laya does **not** generate text. It scores structured features once and returns ranked pattern probabilities in microseconds to milliseconds. This repo is the Go **server + agent integration** that replaces legacy **JEV**.

**How to use:** run `laya-deploy` (default `0.0.0.0:7710`). Agents call `decide` via MCP, HTTP, or CLI and take `top.id` as the action.

---

## 30-second start

**Deploy host (Administrator PowerShell):**

```powershell
git clone https://github.com/neko233-com/laya-go.git
cd laya-go
.\deploy\install-service.ps1 -Port 7710
```

Service `LayaDeploy` listens on `0.0.0.0:7710` (model API + admin UI in one process).

**Local or teammate machines (agent access):**

```powershell
.\deploy\install-mcp.ps1 -Url http://127.0.0.1:7710
# teammates: use the deploy host IP, e.g. http://192.168.x.x:7710
```

**Restart** Codex / MiMo / Claude. MCP tool name: `laya`.

**Verify:**

```sh
curl -s http://127.0.0.1:7710/health
curl -s http://127.0.0.1:7710/v1/decide -H 'content-type: application/json' \
  -d '{"features":{"intent_change":0.9,"target_known":0.8},"top_k":3}'
```

Admin dashboard: `http://127.0.0.1:7710/admin` (use the deploy host IP on LAN).

---

## Pick your path

| Role | Goal | Start here |
| --- | --- | --- |
| Ops / deploy | Install service, expose LAN, monitor, hot-reload | Install + Admin below |
| Teammate | Install MCP or use HTTP from your agent | Agent usage below |
| Agent builder | Encode state as features, consume `top.id` | Make it pleasant below |
| Coming from JEV | Compat API + action map | [`docs/jev-migration.md`](docs/jev-migration.md) |

---

## Install

### Server (deploy host)

| Mode | Command | Notes |
| --- | --- | --- |
| Windows 

Also filed under Tools & apps

  1. 0005

    laya-mlx plays Snake at 60 decisions per second

    介绍比Jev快50倍,在你设备上跑的laya-mlx! 只在你的设备上占用最高1G内存 Laya是一个开源的类似于Jev的,基于文本输出概率的分类系统 我将其移植到MLX,并且做了一些性能优化! 视频中就是这个模型在我的本地M3Max上玩贪吃蛇 这个模型能够以每秒决策60次的速度玩贪吃蛇! https://t.co/31KGUiNunb

    @mizorewww · Tools & apps · free, local · 60 decisions/s

  2. 0112

    Laya on Axera AX650 and AX8850 edge NPUs, under 70 ms

    AXERA-TECH's conversion of all three Laya checkpoints for its edge AI chips, reported at latency under 70 ms per decision on AX650/AX8850.

    AXERA-TECH · Tools & apps · free, on-device · < 70 ms on AX650 / AX8850

  3. 0099

    laya-mcp (PerryLink): a warm sidecar that fixes Laya's silent truncation and constant noul

    MCP server plus HTTP sidecar: token-budget preflight that reports what would be cut, a persisted calibration store, structured errors, and a noul fix (P(true) 0.5 → 1.0).

    @PerryLink · Tools & apps · free, local

  4. 0097

    Gomoku against Laya-MLX: you play black, the model picks white's move from six candidates

    Local 15x15 Gomoku on Apple Silicon. Rules in Python, board in the browser, every AI move one real Laya choice over up to six candidates, probabilities shown. No Gomoku training.

    smile-magic · Tools & apps · free, local