# Repository Briefing: leon-ai/leon
> Source: https://repoforai.com/repo/leon-ai/leon (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/leon-ai/leon
- **Official Docs / Website**: https://getleon.ai
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: TypeScript
- **License**: MIT
- **Engineering Health**: A (87/100 · Maintenance 35/35 · Adoption 21/25 · Releases 11/20 · License 20/20)
- **Deployment / Stack Signals**: Self-Hosted
- **Momentum**: 17,743 ★ total (+4 24h / +28 7d) · 1,492 forks
- **Topics**: `ai`, `ai-agent`, `ai-assistant`, `artificial-intelligence`, `assistant`, `automation`, `bot`, `chatbot`, `leon`, `nodejs`, `offline`, `personal-assistant`
- **When to Use**: Best for: Developers and technically comfortable users piloting a self-hosted personal assistant that remembers preferences, runs custom skills, and presents interactive results in chat. Skip if: 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.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Agent runtime: A continuous loop uses tool results to select the next step, check outcomes, and recover from failures.
- Context budget: Guidance loads down to the needed tool function, large outputs stay in artifacts, and older exchanges can be compacted.
- Memory scope: Profiles separate persistent facts and preferences, daily summaries, and recent discussions; retrieval can consult original conversations.
- Skill execution: Native and agent skills share the tool system, and independent tool calls can run concurrently in isolated workers.
- Integration surface: JavaScript and Python skill bridges, a TCP service for third-party nodes, and an MCP client dependency.
- Conversation UI: The local web preview uses Aurora components for interactive charts, forms, and visual responses.
```

## Quick Start / Clone
```bash
# 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
```
