Mng-dev-ai/claudex
Your own Claude Code UI, local sandbox, in-browser VS Code, terminal, multi-provider support (Max, Z.AI, OpenRouter), custom skills, and MCP servers.
Deep Analysis
开源自托管的Claude Code UI,提供本地沙箱代码执行、VS Code编辑器、多AI模型支持和扩展生态。
Core Features
沙箱执行
Docker容器隔离的代码执行环境,完全本地运行
IDE体验
浏览器内VS Code、终端、文件管理、端口转发
多模型支持
Anthropic、Z.AI、OpenRouter多个AI提供商切换
扩展生态
Skills、Agents、MCP服务器、斜杠命令支持
Technical Implementation
支持Claude OAuth、Z.AI API Key、OpenRouter API多种认证
在Monaco编辑器编写代码,通过FastAPI提交到后端
Celery将执行任务分发到Redis消息队列
Docker容器执行代码并返回结果
通过WebSocket实时推送执行日志和结果到前端
- 完全本地化自托管部署,数据隐私安全可控
- 支持VS Code全功能编辑器、终端和文件管理
- 灵活多源AI模型支持,可灵活切换使用
- 活跃社区生态,提供Discord社区支持和扩展市场
- 开发者本地构建私有Claude Code工作环境
- 企业团队自托管AI编码辅助平台
- 教学机构建立隔离的学生编程实验环境
- 安全敏感项目中使用本地AI进行代码协助
- 需要Docker支持和容器编排知识门槛较高
- 性能受本地机器资源限制
Claudex
Your own Claude Code UI. Open source, self-hosted, runs entirely on your machine.
Try it live: claudex.pro
Community
Join our Discord server to get help, share feedback, and connect with other users.
Why Claudex?
- Local sandbox - Run locally with Docker, fully isolated code execution.
- Use your own plans - Claude Max, Z.AI Coding, or OpenRouter.
- Full IDE experience - VS Code in browser, terminal, file explorer.
- Extensible - Skills, agents, slash commands, MCP servers.
Screenshots


Quick Start
git clone https://github.com/Mng-dev-ai/claudex.git
cd claudex
docker compose up -d
Features
Sandboxed Code Execution
Run AI agents in isolated Docker containers. Fully local, no external dependencies.
Full Development Environment
- VS Code editor in the browser
- Terminal with full PTY support
- File system management
- Port forwarding for web previews
- Environment checkpoints and snapshots
Multiple AI Providers
Switch between providers in the same chat:
- Anthropic - Use your Max plan
- Z.AI - Use your Coding plan
- OpenRouter - Access to multiple model providers
Extend with Skills & Agents
- Custom Skills - ZIP packages with YAML metadata
- Custom Agents - Define agents with specific tool configurations
- Slash Commands - Built-in (
/context,/compact,/review,/init) - MCP Servers - Model Context Protocol support (NPX, BunX, UVX, HTTP)
Scheduled Tasks
Automate recurring tasks with Celery workers.
Chat Features
- Fork chats from any message point
- Restore to any previous message in history
- File attachments with preview
Preview Capabilities
- Web preview for running applications
- Mobile viewport simulation
- File previews: Markdown, HTML, images, CSV, PDF, PowerPoint
Marketplace
- Browse and install plugins from official catalog
- One-click installation of agents, skills, commands, MCPs
Secrets Management
- Environment variables for sandbox execution
Custom Instructions
- System prompts for global context
- Custom instructions injected with each message
Configuration
Configure in the Settings UI after login:
| Setting | Description |
|---|---|
| Claude OAuth Token | For Max plan |
| Z.AI API Key | For Coding plan |
| OpenRouter API Key | For OpenRouter models |
You only need one AI provider key.
Architecture
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ Frontend │────▶│ FastAPI │────▶│ PostgreSQL │
│ React/Vite │ │ Backend │ │ Database │
└─────────────────┘ └────────┬────────┘ └─────────────────┘
│
┌────────────┼────────────┐
▼ ▼ ▼
┌───────────┐ ┌───────────┐ ┌─────────────────┐
│ Redis │ │ Celery │ │ Docker Sandbox │
│ Pub/Sub │ │ Workers │ │ │
└───────────┘ └───────────┘ └─────────────────┘
Tech Stack
Frontend: React 19, TypeScript, Vite, TailwindCSS, Zustand, React Query, Monaco Editor, XTerm.js
Backend: FastAPI, Python 3.13, SQLAlchemy 2.0, Celery, Redis, Granian
Services
| Service | Port |
|---|---|
| Frontend | 3000 |
| Backend API | 8080 |
| PostgreSQL | 5432 |
| Redis | 6379 |
Commands
docker compose up -d # Start
docker compose down # Stop
docker compose logs -f # Logs
API & Admin
- API Docs: http://localhost:8080/api/v1/docs
- Admin Panel: http://localhost:8080/admin
Default admin: admin@example.com / admin123
Contributing
- Fork the repository
- Create a feature branch
- Commit your changes
- Open a Pull Request
License
Apache 2.0 - see LICENSE
Related Skills
wshobson/agents
wshobsonIntelligent automation and multi-agent orchestration for Claude Code
The most comprehensive Claude Code plugin ecosystem, covering full-stack development scenarios with a three-tier model strategy balancing performance and cost.
ComposioHQ/awesome-claude-skills
ComposioHQA curated list of awesome Claude Skills, resources, and tools for customizing Claude AI workflows
The most comprehensive Claude Skills resource list; connect-apps is a killer feature.
code-yeongyu/oh-my-opencode
code-yeongyuThe Best Agent Harness. Meet Sisyphus: The Batteries-Included Agent that codes like you.
Powerful multi-agent coding tool, but note OAuth limitations.
nextlevelbuilder/ui-ux-pro-max-skill
nextlevelbuilderAn AI SKILL that provide design intelligence for building professional UI/UX multiple platforms
Essential for designers; comprehensive UI/UX knowledge base.
thedotmack/claude-mem
thedotmackA Claude Code plugin that automatically captures everything Claude does during your coding sessions, compresses it with AI (using Claude's agent-sdk), and injects relevant context back into future sessions.
A practical solution for Claude's memory issues.
OthmanAdi/planning-with-files
OthmanAdiClaude Code skill implementing Manus-style persistent markdown planning — the workflow pattern behind the $2B acquisition.
Context engineering best practices; an open-source implementation of Manus mode.

