๐ LambChat
An open-source AI Agent platform for building, running, and sharing agents that actually do the work
English ยท ็ฎไฝไธญๆ ยท Documentation ยท Contributing
๐ Why LambChat
LambChat is built for teams who want more than a chatbot UI. It gives you a complete AI Agent system with model management, MCP connectivity, skills, storage, sharing, approvals, and deployment-ready backend/frontend infrastructure in one project.
| Agent Runtime | Tools and MCP | Skills and Memory | Production Infra |
|---|---|---|---|
| Deep agent graphs, streaming output, sub-agents, thinking mode, scheduled runs, and human approval. | System and user MCP, encrypted secrets, tool cache, upload/reveal tools, and sandbox execution. | Skill marketplace, GitHub sync, persona presets, model routing, and MongoDB-backed memory. | FastAPI, React 19, auth/RBAC, tracing, health checks, arq tasks, realtime sync, and deployment assets. |
๐ธ Product Preview
| Chat and execution | Skills marketplace | Operations console |
|---|---|---|
![]() Streaming agent work |
![]() Reusable skills |
![]() MCP and tools |
![]() Rich file library |
![]() Model routing |
![]() Responsive UI |
View the full screenshot gallery
![]() Login |
![]() Register |
![]() Password Reset |
![]() Email Verification |
![]() Registration Pending |
![]() Chat |
![]() Streaming |
![]() Share |
![]() Skills |
![]() Marketplace |
![]() MCP Config |
![]() Agents |
![]() Models |
![]() Channels |
![]() Files |
![]() Persona |
![]() Memory |
![]() Notifications |
![]() Settings |
![]() Feedback |
![]() Shared Session |
![]() Roles |
![]() Users |
![]() Tablet |
๐ฌ Use Cases
| # | Case | Description | Demo |
|---|---|---|---|
| 1 | Supply Chain PDF Report | Generates a polished PDF efficiency report with charts, benchmark comparisons, and delivery, inventory, fulfillment, and logistics analysis from a single prompt. | View Session |
| 2 | Godfather Fan Website | Builds a responsive English promo site for The Godfather trilogy with a cinematic visual direction, marquee hero section, generated images, and multi-device polish. | View Session |
| 3 | Story Breakdown from Image | Understands visual input, identifies the stories shown in an image, and produces detailed plot-by-plot explanations with multimodal reasoning. | View Session |
| 4 | EV Market Trend Analysis | Turns recent 2025-2026 electric vehicle data into a structured market analysis covering growth, regional performance, and key industry takeaways. | View Session |
| 5 | ๐ฎ Batch Game UI Icon Generation | Feed it one reference image and it analyzes the art style, generates 48 game UI icons across 9 categories (candies, buttons, labels, currencies, characters, skills, navigation, frames, specials), auto-organizes them into folders, and saves the workflow as a reusable skill for next time. | View Session |
| 6 | ๐ฅง E-Commerce Product Image Suite | Enter a product keyword (e.g., "durian") and a target platform (Taobao / JD / Pinduoduo), and the Agent runs the full pipeline: audience analysis โ visual strategy โ auto-generate main image, lifestyle scene, detail shots, and combo images โ a complete set of product-ready visuals in one shot. | View Session |
๐๏ธ Architecture

โจ Features
๐ค Agent Runtime
- deepagents Architecture โ Compiled graph runtime with fine-grained state management
- Multi-Agent Types โ Core, fast, and search agents
- Plugin System โ
@register_agent("id")decorator for custom agents - Streaming Output โ Native SSE support
- Sub-agents โ Multi-level delegation
- Thinking Mode โ Extended thinking for Anthropic models
- Scheduled Tasks โ Cron, interval, date, and manual task triggers with persisted scheduler state
- Human-in-the-Loop โ Approval system with countdown timer, auto-extension, and urgent-state styling
- Persona Presets โ Reusable persona configuration with permissions and runtime binding
๐ง Model, Memory, and Skills
- Multi-Provider Models โ OpenAI, Anthropic, Google Gemini, and Kimi
- Full CRUD โ Create, edit, delete, reorder, and batch import models via UI
- Channel Routing โ Route the same model through different channels with
model_id - Role-based Access โ
MODEL_ADMINpermission and per-role model visibility - Cross-session Memory โ Native MongoDB-backed memory system
- Dual Skills Storage โ File system plus MongoDB backup
- GitHub Sync โ Import custom skills from GitHub
- Skill Marketplace โ Browse, install, publish, and manage skills in bulk
๐ Tools, MCP, and Execution
- System + User MCP โ Global and per-user MCP configuration
- Encrypted Storage โ API keys encrypted at rest
- Dynamic Tool Caching โ Cache MCP tools with manual refresh
- Multiple Transports โ SSE and HTTP
- Permission Control โ Transport-level access policies
- Sandbox Integration โ Daytona and E2B execution support
- Built-in Tools โ File reveal, project reveal, upload URL, env vars, audio transcription, persona preset tools, and more
๐ Product Features
- File Library โ Browse revealed files with code preview, favorites, and project-based filtering
- Rich Previews โ PDF, Word, Excel, PPT, Markdown, Mermaid, Excalidraw, images, and video playback
- Project Folders โ Organize sessions into projects with drag-and-drop
- Session Sharing โ Generate public share links for conversations
- Feedback โ Thumbs rating, text comments, session linking, and run-level stats
- Notifications โ In-app notification storage and delivery hooks
๐ Infra, Realtime, and Frontend
- Realtime โ Redis + MongoDB dual-write, WebSocket, auto-reconnect, and shared-session updates
- Task Runtime โ Local or Redis-backed arq execution with embedded worker lifecycle
- Security โ JWT, RBAC, bcrypt, OAuth (Google/GitHub/Apple), email verification, CAPTCHA, and sandbox controls
- Observability โ LangSmith tracing, structured logging, health checks, and distributed memory diagnostics
- Channels โ Native Feishu integration plus an extensible multi-channel architecture
- Frontend Stack โ React 19, Vite 6, TailwindCSS 3.4, PWA workers, Capacitor mobile builds, Tauri desktop shell, rich rendering, and responsive layouts
- i18n โ English, Chinese, Japanese, Korean, and Russian
โ๏ธ Configuration
Multiple setting categories can be configured through the UI or environment variables:
| Category | Description |
|---|---|
| Frontend | Default agent, welcome suggestions, UI preferences |
| Agent | Debug mode, logging level |
| Model | Multi-provider model management, per-model config, channel routing |
| Session | Session management, message history, SSE cache |
| Database | MongoDB connection, optional PostgreSQL |
| Storage | Persistent storage, S3/OSS/MinIO/COS |
| Security | Encryption and security policies |
| Sandbox | Code sandbox settings (Daytona / E2B) |
| Skills | Skill system config |
| Tools | Tool system settings |
| Tracing | LangSmith and tracing |
| User | User management, registration, default role |
| Memory | Memory system (native) |
| Scheduler | Dynamic scheduled tasks and runtime registration |
| Task Runtime | Local execution or arq queue settings |
๐ Quick Start
Prerequisites
- Python 3.12+
- uv
- Node.js 18+
- pnpm 10+
- MongoDB
- Redis
Docker
git clone https://github.com/Yanyutin753/LambChat.git
cd LambChat
cd deploy
cp .env.example .env # Edit with your config
docker compose up -d
Open http://localhost:8000.
Local Development
Install dependencies:
cp .env.example .env # Edit with your config
make install-all
Run the backend and frontend together:
make dev-all
Backend: http://127.0.0.1:8000 Frontend dev server: http://127.0.0.1:3001
You can also run them separately:
make dev # FastAPI backend: uv run python main.py
make frontend-dev # Vite frontend
๐ Required Configuration
Edit the .env file with the following recommended settings:
# Recommended: Set a stable JWT secret (auto-generated on each restart if unset, invalidating existing sessions)
JWT_SECRET_KEY=your-stable-secret-key
# Recommended: Set MCP encryption salt (auto-generated on each restart if unset, invalidating saved MCP configs)
MCP_ENCRYPTION_SALT=your-stable-encryption-salt
# Optional: Configure MongoDB connection
MONGODB_URL=mongodb://localhost:27017
MONGODB_DB=agent_state
MONGODB_USERNAME=admin
MONGODB_PASSWORD=your-mongo-password
# Optional: Configure Redis connection
REDIS_URL=redis://localhost:6379/0
REDIS_PASSWORD=your-redis-password
# Optional: enable scheduled tasks
ENABLE_SCHEDULED_TASK=true
# Optional: choose task execution backend
TASK_BACKEND=arq # local or arq
::: tip LLM models are configured through the Model Config UI after deployment โ no environment variables needed. :::
Code Quality
make format # Format (ruff format)
make lint # Lint (ruff check)
make typecheck # Type check (mypy)
make test # Backend tests (pytest)
make check-all # Run all checks (lint + typecheck + test)
Frontend, Mobile, and Docs
cd frontend
pnpm run build # TypeScript + Vite build
pnpm run packaged:build # Build packaged frontend assets
pnpm run mobile:sync # Build and sync Capacitor projects
pnpm run package:desktop # Package desktop app assets
cd ..
pnpm run docs:dev # VitePress docs site
pnpm run docs:build
Project Structure
.
โโโ main.py # Uvicorn entrypoint for src.api.main:app
โโโ src/
โ โโโ agents/ # Core, fast, search, and team agent graphs
โ โโโ api/ # FastAPI app, middleware, and route modules
โ โ โโโ routes/ # Chat, auth, MCP, skills, files, scheduler, teams, etc.
โ โโโ infra/ # Runtime services: auth, llm, mcp, scheduler, task, storage, memory
โ โโโ kernel/ # Settings, schemas, config definitions, and shared types
โโโ frontend/
โ โโโ src/ # React app source
โ โ โโโ components/ # Chat, panels, pages, auth, skill, MCP, team, file UI
โ โ โโโ services/ # API clients and browser service integrations
โ โ โโโ stores/ # Frontend state stores
โ โ โโโ i18n/ # Locale files and tests
โ โ โโโ workers/ # Browser/PWA workers
โ โโโ android/ # Capacitor Android project
โ โโโ ios/ # Capacitor iOS project
โ โโโ src-tauri/ # Tauri desktop shell
โ โโโ scripts/ # Frontend build, packaging, and i18n scripts
โโโ docs/ # VitePress documentation
โโโ deploy/ # Docker Compose deployment
โโโ k8s/ # Kubernetes manifests
โโโ nginx/ # Reverse proxy config
โโโ scripts/ # Sandbox and maintenance utilities
โโโ tests/ # Backend, API, infra, agent, and unit tests
โญ Star History
๐ License
MIT โ Project name "LambChat" and its logo may not be changed or removed.
LambChat is built for people who want AI agents that can actually do the work.
Created by Clivia
GitHub ยท Email ยท ไธญๆ README
WeChat for deployment help, product feedback, and collaboration
























