Self-host a Laya API server

Most Laya servers implement the same `POST /v1/systemone` wire format as TypeSafe's hosted Jev API. An existing Jev client can often switch to a self-hosted Laya by changing its base URL. The answers then come from Laya, a different and smaller model.

167 projects

laya

NandhaKishorM

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

23.9k·GitHub repo

laya.cpp

lkarlslund

A native C++ runtime runs Laya typed-decision models across GPU and Apple backends

89·GitHub repo

laya-server

1Panel-dev

Self-hosts Laya decision models through an API and web interface compatible with Jev

54·GitHub repo

sys1

alvarobartt

Serves Laya decision models through a Rust System One API with CPU, CUDA, and Metal support

43·GitHub repo

arbiter

0xBakeer

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

29·GitHub repo

stuntd

bladedevoff

Learns typed decision heads on a frozen Laya encoder and serves them through Jev- and OpenAI-compatible APIs

27·GitHub repo

ollaya

ollaya-dev

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

24·GitHub repo

laya-mps

afshinm

Runs Laya typed-decision inference locally on Apple Silicon using Metal Performance Shaders

21·GitHub repo

lev

jlt-commons

Implements a typed decision engine using Laya checkpoints and GGUF chat models

17·GitHub repo

laya-goish

centillex-labs

Runs Laya GGUF models in a Rust HTTP server for structured text decisions

16·GitHub repo

edgejev

yzfly

Exports, quantizes, and serves Laya and other Jev-style models for offline CPU inference

11·GitHub repo

laya-openvino

rupeshs

Adds an OpenVINO inference backend and serving support for Laya checkpoints

10·GitHub repo

laya-rs

redwolf2019

Provides a Rust HTTP inference runtime and server for multilingual Laya models

9·GitHub repo

laya-apple

tc3oliver

Runs Laya locally on Apple Silicon with MLX GPU and Apple Neural Engine support

8·GitHub repo

laya-jev-compatible-server

exfly

Serves Laya through a TypeSafe Jev-compatible HTTP API

5·GitHub repo

laya-go

neko233-com

Provides a Go server and agent integrations for structured Laya decisions

5·GitHub repo

deqio

ILuce

Serves multiple typed-decision models, including Laya, through a local API and browser UI

5·GitHub repo

laymbda

HQarroum

Runs the Laya decision model as a CPU-only AWS Lambda function with SnapStart

4·GitHub repo

Laya

ljw98

Provides a local web console and HTTP API for running Laya typed-decision models

3·GitHub repo

docker-laya

chneau

Serves Laya typed-decision predictions through an authenticated, multi-checkpoint FastAPI service

2·GitHub repo

laya-mcp

rdutra

An MCP server exposes local Laya-CoreML decisions through persistent decision tools

2·GitHub repo

JevCoreML

GodModeAI2025

Provides Core ML decision models, a Swift package, an HTTP server, and a demo app

2·GitHub repo

laya-jev-api

smallnest

Serves local Laya Core ML inference through a Jev-compatible HTTP API

2·GitHub repo

laya-serve

stiermid

Serves local Laya decision models through a Jev-compatible HTTP API

2·GitHub repo

Official: laya-serve

From the core README:

pip install "laya[serve]"
LAYA_DEVICE=cuda LAYA_PRELOAD=1 laya-serve   # binds 0.0.0.0:8000, preloads all 3 checkpoints
curl -s localhost:8000/v1/systemone -H 'content-type: application/json' -d '{
  "state": {"body": "billed twice, refund please or we cancel"},
  "questions": {"dept": {"type": "choice", "instructions": "which team?",
                "criteria": {"billing": "refunds", "tech": "bugs"}}}
}'

Set LAYA_API_KEY to require a bearer token. Other settings are LAYA_HOST, LAYA_PORT, LAYA_MODELS and LAYA_THREADS. A Nix flake and a NixOS module are included.

ollaya

ollaya works like Ollama for decision models:

curl -fsSL https://ollaya.dev/install.sh | sh
ollaya run laya --preset triage "I was charged twice for my subscription this month and want a refund."

It serves /v1/systemone, and the README says the official TypeSafe SDK works unchanged with TYPESAFE_BASE_URL=http://localhost:11435.

Docker

LAYA SERVER adds a web console and API-key management:

docker run -d --name laya-server --init --restart unless-stopped \
  -p 8080:8080 \
  -v laya-data:/data \
  -e LAYA_ADMIN_USERNAME=admin \
  -e LAYA_ADMIN_PASSWORD='change-this-admin-password' \
  1panel/laya-server:latest

docker-laya publishes ghcr.io/chneau/laya for amd64 and arm64. Its README reports roughly 0.35 s per predict on CPU.

Native servers

laya.cpp (C++, CUDA, Vulkan and Core ML), sys1 (Rust on candle) and laya-apple (MLX plus Neural Engine) all serve /v1/systemone.

Differences from Jev

The core README lists three for client ports. Options share a token budget instead of Jev's 255-option cap. Every score level needs a description. confidence is computed differently, so a threshold tuned on Jev does not transfer; gate on answer_confidence instead. laya-rs uses /v1/system-one with a hyphen and is not a drop-in replacement.

More ways to use Laya