aayushch/laya
Local-first desktop agent for triaging work notifications and staging actions for approval
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Laya is a desktop app with two local services. n8n normalizes events from work tools and forwards them to the Python FastAPI/asyncio engine at engine/laya/main.py on port 8420. The engine classifies and routes events, gathers context, and stages Action Cards. The Tauri v2 shell and Svelte 5 UI use REST and WebSocket interfaces to surface cards for approval or dismissal. Approved actions, such as sending a reply, go back through n8n for execution.
The integration gateway runs on port 45678. Its event workflows, the engine's egress/ adapters, and the model interfaces are separate extension points: adding an event source does not by itself give the app a new outbound action. Structured data and full-text search use SQLite with WAL and FTS5; embedded ChromaDB stores vectors, with built-in ONNX embeddings or optional sentence-transformers. LiteLLM and the engine's CLI adapters provide separate paths for inference.
Key Capabilities & Differentiators
The engine prioritizes incoming events and routes them to six personas, from Engineering and Comms to HR and Finance. Spaces group event sources with per-space models and API keys. Semantic similarity proposes cross-service links, an LLM confirms them, and user corrections inform later grouping. Daily briefings, pipeline-cost analytics, and monthly caps with automatic pausing help users review activity and manage spend.
Inference can use Ollama or LM Studio, BYOK access to Claude, GPT, or Gemini, or OpenAI-compatible endpoints through LiteLLM. Card Research can use web search and sandboxed file access. Card Workspaces support Claude Code, Gemini CLI, Codex, Pi CLI, and Cursor Agent for multi-step work with approvals. The first four can also handle individual classification or synthesis stages using their CLI quota. Claude Code enforces JSON schemas natively; the other CLI inference backends use best-effort validation and retries.
Trade-offs & Limitations
Compared with native inboxes, Laya adds a cross-service queue and context before approval, but it also adds integration credentials, workflows, and model behavior to maintain. Compared with standalone n8n, it supplies a desktop approval surface and semantic triage rather than just predefined automations. That is useful when context determines the next action; a deterministic workflow remains the simpler choice when triggers and actions are already explicit.
Local inference gives teams control over where model processing runs, not a guarantee that all activity stays offline: SaaS connectors and web research can still reach external services. Model size, context length, and concurrency determine much of the local compute and memory demand; cloud inference shifts the model compute off the workstation but introduces usage costs and a data-sharing decision. Approval gates outbound actions but does not validate the underlying research or the proposed action. Pilots should test those separately and verify coverage for each required action, not just each event source.
Hardware & Deployment Guide
Start with a prebuilt macOS .dmg, Windows .msi or .exe, or Linux .deb or .AppImage. Release builds require no preinstalled development toolchain: on first launch Laya reuses compatible Python 3.10–3.14 or provisions it, and downloads a private Node.js 24 for n8n under ~/.laya/. API keys go in the OS keychain. First-run downloads and connected SaaS tools still need network access even if inference stays local.
Source builds require Python 3.10+, Node.js 20+ for the UI, Rust, and platform build dependencies. scripts/setup-dev.sh installs dependencies and scripts/dev.sh starts the development environment. The Windows .exe installer requests administrator approval; n8n upgrades on Windows can take 15–30 minutes because of antivirus scanning. On Linux systems affected by the AppImage's bundled Wayland libraries, prefer a native package where available. v3.2.0 adds Trello polling; v3.1.0 improves Jira creation-event and Slack mention detection.
Professionals juggling email, chat, issue trackers, and calendars who want one queue where an agent gathers context and stages actions they can review before execution.
You need a centrally managed, always-on service rather than a workstation app, require strictly offline operation while monitoring cloud tools, or can solve the problem with a few deterministic workflows.
Quick Start & Installation
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Comparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| laya ★ | 848 | +10 | Python | Apache-2.0 | Local-first desktop agent for triaging work notifications and staging actions fo |
| dify | 162.4k | +370 | Python | — | Visual workflow and RAG workspace for building and serving LLM apps |
| n8n | 213.1k | +787 | TypeScript | — | Visual Node.js platform for self-hosted workflows and multi-step AI agents |
| gpt-researcher | 31.1k | +92 | Python | Apache-2.0 | Planner–executor agent for cited research across the web and local documents |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/aayushch/laya.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about laya
How does an integration turn a notification into an approved action?
Do I need a GPU, and what should I budget for local operation?
Can we use Laya commercially on managed workstations?
When is Laya a better fit than a native inbox or n8n alone?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy