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.

License:Apache-2.0Language:TypeScript15932
agentanthropicClaudeclaude-codecode-executionfastapillmPythonReactsandboxTypeScript

Deep Analysis

开源自托管的Claude Code UI,提供本地沙箱代码执行、VS Code编辑器、多AI模型支持和扩展生态。

Recommended

Core Features

沙箱执行

Docker容器隔离的代码执行环境,完全本地运行

IDE体验

浏览器内VS Code、终端、文件管理、端口转发

多模型支持

Anthropic、Z.AI、OpenRouter多个AI提供商切换

扩展生态

Skills、Agents、MCP服务器、斜杠命令支持

Technical Implementation

Architecture:React前端 + FastAPI后端 + Docker沙箱 + Redis/Celery消息队列
Execution Flow:
用户认证授权

支持Claude OAuth、Z.AI API Key、OpenRouter API多种认证

代码编辑与提交

在Monaco编辑器编写代码,通过FastAPI提交到后端

任务队列调度

Celery将执行任务分发到Redis消息队列

沙箱隔离执行

Docker容器执行代码并返回结果

实时反馈

通过WebSocket实时推送执行日志和结果到前端

Key Components:
Docker代码隔离沙箱
FastAPI高性能异步后端
React 19现代化前端框架
Celery + Redis任务队列与消息通信
Highlights
  • 完全本地化自托管部署,数据隐私安全可控
  • 支持VS Code全功能编辑器、终端和文件管理
  • 灵活多源AI模型支持,可灵活切换使用
  • 活跃社区生态,提供Discord社区支持和扩展市场
Use Cases
  • 开发者本地构建私有Claude Code工作环境
  • 企业团队自托管AI编码辅助平台
  • 教学机构建立隔离的学生编程实验环境
  • 安全敏感项目中使用本地AI进行代码协助
Limitations
  • 需要Docker支持和容器编排知识门槛较高
  • 性能受本地机器资源限制
Tech Stack
React 19TypeScriptViteTailwindCSSFastAPIPython 3.13SQLAlchemyCeleryRedisPostgreSQLDocker

Claudex

Your own Claude Code UI. Open source, self-hosted, runs entirely on your machine.

Try it live: claudex.pro

License: Apache 2.0
Python 3.13
React 19
FastAPI
Discord

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

Chat Interface

Agent Workflow

Quick Start

git clone https://github.com/Mng-dev-ai/claudex.git
cd claudex
docker compose up -d

Open http://localhost:3000

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:

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

Default admin: admin@example.com / admin123

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Open a Pull Request

License

Apache 2.0 - see LICENSE

Highly Recommended
agents

wshobson/agents

wshobson

Intelligent 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.

25.6k2.8k3 days ago
Highly Recommended
awesome-claude-skills

ComposioHQ/awesome-claude-skills

ComposioHQ

A 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.

19.9k2.0k3 days ago
Recommended
oh-my-opencode

code-yeongyu/oh-my-opencode

code-yeongyu

The Best Agent Harness. Meet Sisyphus: The Batteries-Included Agent that codes like you.

Powerful multi-agent coding tool, but note OAuth limitations.

17.5k1.2k3 days ago
Highly Recommended
ui-ux-pro-max-skill

nextlevelbuilder/ui-ux-pro-max-skill

nextlevelbuilder

An AI SKILL that provide design intelligence for building professional UI/UX multiple platforms

Essential for designers; comprehensive UI/UX knowledge base.

15.3k1.5k3 days ago
Recommended
claude-mem

thedotmack/claude-mem

thedotmack

A 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.

14.0k9143 days ago
Highly Recommended
planning-with-files

OthmanAdi/planning-with-files

OthmanAdi

Claude 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.

9.3k8113 days ago