leon-ai/leon
Self-hosted personal AI assistant with a tool-executing agent loop and profile memory
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
Leon is a TypeScript and Node.js pnpm workspace with separate core/, server/, apps/, skills/, and tools/ areas. Its continuous agent loop loads relevant context and function-level tool guidance as needed, executes tools, and uses their results to decide what to do next. Independent calls can run concurrently in isolated workers. Large outputs are kept as artifacts rather than carried in full through subsequent model turns.
Native skills define explicit actions; agent skills guide tasks whose next steps depend on intermediate results. Both use the same tool system, where tools declare functions, settings, dependencies, and binaries. JavaScript and Python skills connect to the core through their respective bridges, and tcp_server/ provides communication with third-party nodes. The manifest also includes @modelcontextprotocol/client and @fastify/static, evidence of MCP client and static-serving dependencies, not of a public MCP server.
Key Capabilities & Differentiators
Leon separates temporary context from persistent facts and preferences, daily summaries, and recent discussions, with memory scoped to each profile. It retrieves relevant records and can revisit original conversations for exact details. The Aurora component library gives the web preview a way to present interactive charts and forms in a conversation, so the assistant can return more than a text summary.
The manifest includes AI SDK adapters for OpenAI and OpenAI-compatible endpoints, Anthropic, DeepSeek, Groq, and other providers, plus OpenRouter and Hugging Face inference packages. This is evidence of multiple integration paths, not a compatibility matrix for every model or a guarantee of offline operation. The project publishes results for selected WildClawBench and PinchBench tasks; those results are more useful for inspecting task-specific behavior than for predicting latency, cost, or reliability on your own workloads.
Trade-offs & Limitations
Compared with flow-based automation, Leon can adapt to intermediate results and reuse personal context without requiring every branch to be specified in advance. That flexibility also makes execution less predictable. Prefer native skills for routines that need explicit steps, and leave the agent loop for tasks where the right action depends on what it finds. Unlike a managed assistant, Leon lets you operate the application and choose integrations, but leaves runtime upgrades, tool dependencies, and access controls to you.
Worker isolation helps separate tool execution, but the available details do not establish a security boundary suitable for untrusted tools or tenants. Review tool permissions, network access, and provider data handling before connecting sensitive accounts. The unfinished interface and version split also make this a better candidate for a personal pilot than for a critical workflow that depends on stable deployment and upgrade procedures.
Hardware & Deployment Guide
Run the source preview on macOS, Linux, or Windows with Node.js 24 or later and pnpm. In the checkout, run pnpm install, follow the setup prompts, then run pnpm start. The preview is at http://localhost:5366/web-app/, the legacy interface is at /, and pnpm run check checks the setup. For a provider-backed setup, budget separately for remote inference and local tool work. For an offline requirement, verify the model and every tool in the workflow without network access before adopting it.
develop is the line for the new agent and web preview; master is the previous, pre-agentic version. The first 2.0 desktop alpha has not shipped, and older guides mostly cover the previous version. The February 19, 2026 tags tcp-server_v2.0.0, nodejs-bridge_v1.3.0, and python-bridge_v1.4.0 are component milestones, not a Leon 2.0 application release.
Developers and technically comfortable users piloting a self-hosted personal assistant that remembers preferences, runs custom skills, and presents interactive results in chat.
You need a released desktop app, a verified fully offline stack with no integration work, or a production-ready service with predictable execution and upgrades.
Quick Start & Installation
# Clone the repository git clone https://github.com/leon-ai/leon.git # Go to the project root cd leon # Install pnpm npm install --global pnpm@latest # Install dependencies pnpm install # Run Leon pnpm start
Comparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| leon ★ | 17.7k | +28 | TypeScript | MIT | Self-hosted personal AI assistant with a tool-executing agent loop and profile m |
| lobehub | 86.3k | +228 | TypeScript | — | A self-hostable agent workspace for team tasks, shared context, and MCP tools |
| dify | 162.2k | +388 | Python | — | Visual workflow and RAG workspace for building and serving LLM apps |
| nod | 5.8k | +2.4k | TypeScript | Apache-2.0 | A self-hosted agent with a private browser for approval-gated web and app tasks |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/leon-ai/leon.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about leon
How do I choose a skill type and connect it to Leon?
Do I need a GPU, and how should I size the host?
Can I use Leon commercially, and what does self-hosting cover?
When should I choose Leon over a flow-based automation platform or a managed assistant?
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