by Laliet
⭐️ A cross-platform web-based All-in-One assistant tool for Claude Code, Codex & Gemini CLI, based on CC Switch.
# Add to your Claude Code skills
git clone https://github.com/Laliet/cc-switch-webWeb-based CC Switch for Claude Code, Codex, Gemini CLI, OpenCode & OMO.
🙏 This project is a fork of farion1231/cc-switch by Jason Young. Thanks to the original author for the excellent work. This fork adds Web Server mode for cloud/headless deployment.
Cross-platform web-based All-in-One assistant for Claude Code, Codex, Gemini CLI, OpenCode & OMO
English | 中文 | Legal Notice | Changelog
Recommended stable release: v0.10.1
v0.10.1is the current stable release
cc-switch-web is a cross-platform web-based CC Switch for Claude Code, Codex, Gemini CLI, OpenCode, and oh-my-opencode (OMO). It lets you switch providers, manage MCP servers, install skills, edit system prompts, and run the same workflow on desktop or headless cloud environments.
Whether you're working locally or in a headless cloud environment, cc-switch-web offers a seamless experience for:
If you have any questions, you can contact me here https://linux.do/t/topic/1217545
v0.10.0 was the verification prerelease milestone for this release lineALLOW_LAN_CORS=1 / CC_SWITCH_LAN_CORS=1 for private LAN auto-allow
Main Interface
Prompt Management
MCP Server Management
Skills Marketplace
Extended Provider List
Configure Provider
Recommended: Use Web Server Mode for headless/cloud deployments and remote access.
Lightweight web server for headless environments. Access via browser, no GUI dependencies.
Download precompiled server binary—no compilation required:
| Architecture | Download | | ------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | | Linux x86_64 (glibc) | cc-switch-server-linux-x86_64 | | Linux aarch64 (glibc) | cc-switch-server-linux-aarch64 |
Note (glibc): Binaries are built on Ubuntu 22.04 (glibc baseline).
If you seeGLIBC_2.xx not found, use Docker or build from source.
Check your glibc withldd --version.
One-Line Deploy:
curl -fsSL https://raw.githubusercontent.com/Laliet/cc-switch-web/main/scripts/deploy-web.sh | bash -s -- --prebuilt
Quick fixes:
GLIBC_2.xx not found: use Docker (ghcr.io/laliet/cc-switch-web:latest) or build from source.docker run -p 3000:3000 ghcr.io/laliet/cc-switch-web:latest.Advanced options:
# Custom install directory and port
INSTALL_DIR=/opt/cc-switch PORT=8080 curl -fsSL https://raw.githubusercontent.com/Laliet/cc-switch-web/main/scripts/deploy-web.sh | bash -s -- --prebuilt
# Create systemd service for auto-start
CREATE_SERVICE=1 curl -fsSL https://raw.githubusercontent.com/Laliet/cc-switch-web/main/scripts/deploy-web.sh | bash -s -- --prebuilt
Docker image published to GitHub Container Registry (ghcr.io):
docker run -p 3000:3000 ghcr.io/laliet/cc-switch-web:latest
⚠️ Note: Docker image name must be lowercase (
laliet, notLaliet)
Advanced Docker options:
# Use the deploy script (custom port/version/data dir/background)
./scripts/docker-deploy.sh -p 8080 --data-dir /opt/cc-switch-data -d
# Build locally (optional)
docker build -t cc-switch-web .
docker run -p 3000:3000 cc-switch-web
Dependencies: libssl-dev, pkg-config, Rust 1.78+, pnpm (no WebKit/GTK needed)
# 1. Clone and install dependencies
git clone https://github.com/Laliet/cc-switch-web.git
cd cc-switch-web
pnpm install
# 2. Build web assets
pnpm build:web
# 3. Build and run server
cd src-tauri
cargo build --release --features web-server --example server
HOST=0.0.0.0 PORT=3000 ./target/release/examples/server
admin~/.cc-switch/web_passwordCORS_ALLOW_ORIGINS=https://your-domain.com for cross-origin (CORS_ALLOW_ORIGINS="*" is ignored). For LAN/private origins, enable ALLOW_LAN_CORS=1 (or CC_SWITCH_LAN_CORS=1) to auto-allowAuthentication:
Security Headers:
Best Practices:
ALLOW_HTTP_BASIC_OVER_HTTP=1 only if you understand the risks~/.cc-switch/web_password file secure (mode 0600)Environment Variables:
| Variable | Description | Default |
|----------|-------------|---------|
| PORT | Server port | 3000 |
| HOST | Bind address | 127.0.0.1 |
| ENABLE_HSTS | Enable HSTS header | true |
| CORS_ALLOW_ORIGINS | Allowed origins (comma-separated) | (same-origin) |
| CORS_ALLOW_CREDENTIALS | Allow credentials in CORS | false |
| ALLOW_LAN_CORS | Auto-allow private LAN origins for CORS | false |
| CC_SWITCH_LAN_CORS | Auto-set when LAN CORS auto-allow is enabled | (unset) |
| ALLOW_HTTP_BASIC_OVER_HTTP | Suppress HTTP warning | false |
| WEB_CSRF_TOKEN | Override CSRF token | (auto-generated) |
Full-featured desktop app with graphical interface, built with Tauri.
| Platform | Download | Description | | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------- | | Windows | CC-Switch-v0.10.1-Windows.msi | Installer (current stable) | | | [CC-Switch-v0.10.1-Windows-Portable.z
No comments yet. Be the first to share your thoughts!