HUB
Sign inSign up

orz2333/docker-cc-switch

By orz2333

•Updated 5 months ago

Image
Developer tools
0

456

orz2333/docker-cc-switch repository overview

⁠English Introduction

Run cc-switch (Claude Code / Codex / Gemini CLI configuration switcher) in your browser — no GUI dependencies required on the host.

🚀 Quick Start docker run -d --name cc-switch -p 3000:3000 -e PASSWORD=your-password --shm-size=1gb yelloworz/docker-cc-switch

Then open http://localhost:3000⁠ in your browser.

✨ Features • Browser Access — Full GUI experience via LinuxServer.io Selkies streaming • Multi-Arch — amd64 / arm64, works on both x86 servers and ARM NAS • Persistent Data — Mount /config to preserve all settings, database, and Skills • Auto Restart — cc-switch relaunches automatically on exit (RESTART_APP=true)

📋 Environment Variables • PASSWORD — Browser access password (set this in production!) • PUID / PGID — Container user UID/GID, default 1000 • TZ — Timezone, default Asia/Shanghai • LC_ALL — Locale, default zh_CN.UTF-8 • CUSTOM_PORT / CUSTOM_HTTPS_PORT — HTTP/HTTPS ports, default 3000/3001

📁 Data Directory Mount /config to persist all data: • /config/.cc-switch/ — Database, settings, backups, and Skills • /config/.claude — Claude Code config • /config/.codex — Codex config • /config/.gemini — Gemini config

To manage host configs directly, mount the corresponding directories into /config.

📖 Full Documentation https://github.com/YellowOrz/docker-cc-switch⁠

⁠中文简介

在浏览器中运行 cc-switch(Claude Code / Codex / Gemini CLI 一站式配置切换器),无需在宿主机安装任何 GUI 依赖。

🚀 快速开始 docker run -d --name cc-switch -p 3000:3000 -e PASSWORD=your-password --shm-size=1gb yelloworz/docker-cc-switch

然后浏览器打开 http://localhost:3000⁠ 即可。

✨ 特性 • 浏览器访问 — 完整 GUI 体验,基于 LinuxServer.io Selkies 流式传输 • 多架构支持 — amd64 / arm64,x86 服务器和 ARM NAS 均可运行 • 数据持久化 — 挂载 /config 保留所有配置、数据库和 Skills • 自动重启 — cc-switch 关闭后自动拉起(RESTART_APP=true)

📋 环境变量 • PASSWORD — 浏览器访问密码(生产环境务必设置) • PUID / PGID — 容器用户 UID/GID,默认 1000 • TZ — 时区,默认 Asia/Shanghai • LC_ALL — 语言,默认 zh_CN.UTF-8 • CUSTOM_PORT / CUSTOM_HTTPS_PORT — HTTP/HTTPS 端口,默认 3000/3001

📁 数据目录 挂载 /config 即可持久化所有数据: • /config/.cc-switch/ — 数据库/设置/备份/Skills • /config/.claude — Claude Code 配置 • /config/.codex — Codex 配置 • /config/.gemini — Gemini 配置

如需直接管理宿主机配置,将对应目录挂载到 /config 下即可。

📖 完整文档 https://github.com/YellowOrz/docker-cc-switch⁠

Tag summary

Content type

Image

Digest

sha256:df2b2af91…

Size

1.1 GB

Last updated

5 months ago

docker pull orz2333/docker-cc-switch