cc-remote-server
Multi‑user remote web UI to share and manage Claude Code sessions and terminals on your machines
5.3K
Remotely control Claude Code on any PC from your phone or browser.
Claude Code Remote Server is the core server component of the Claude Code Remote project, providing:
| Login | Machine List | Machine Search |
![]() | ![]() | ![]() |
| Project List | Chat Mode | Terminal Mode |
![]() | ![]() | ![]() |
| Session History | ||
![]() |
bugfix:
actions/upload-artifact@v3 and actions/download-artifact@v3 in CI workflow (updated to v4)contents: write permission to workflowfeature:
--config-dir parameter for running multiple instancesbugfix:
feature:
bugfix:
feature:
bugfix:
/ slash commands were not recognized in some scenariosdocker run -d \
--name cc-remote-server \
-p 3000:3000 \
-v cc-remote-data:/app/data \
-e JWT_SECRET=your-super-secret-jwt-key \
-e CORS_ORIGIN=https://your-web-domain.com \
zhangthexiaoning/cc-remote-server:latest
After starting, visit http://localhost:3000/health to verify the service is running.
| Variable | Description | Default | Required |
|---|---|---|---|
PORT | Server listening port | 3000 | No |
JWT_SECRET | JWT signing secret | - | Yes (production) |
JWT_EXPIRES_IN | Token validity period | 7d | No |
CORS_ORIGIN | Allowed frontend origin (CORS) | * | No |
DATABASE_URL | SQLite database path | file:./data/prod.db | No |
NODE_ENV | Runtime environment | production | No |
https://cc-remote.example.com)The image includes SQLite database. Mount the data directory for persistence:
docker run -d \
--name cc-remote-server \
-p 3000:3000 \
-v /path/to/data:/app/data \
-e JWT_SECRET=your-super-secret-jwt-key \
zhangthexiaoning/cc-remote-server:latest
Or use Docker Volume:
docker volume create cc-remote-data
docker run -d \
--name cc-remote-server \
-p 3000:3000 \
-v cc-remote-data:/app/data \
-e JWT_SECRET=your-super-secret-jwt-key \
zhangthexiaoning/cc-remote-server:latest
services:
cc-remote-server:
image: zhangthexiaoning/cc-remote-server:latest
container_name: cc-remote-server
restart: unless-stopped
ports:
- "3000:3000"
volumes:
- cc-remote-data:/app/data
environment:
- PORT=3000
- JWT_SECRET=your-super-secret-jwt-key-change-me
- JWT_EXPIRES_IN=7d
- CORS_ORIGIN=*
- NODE_ENV=production
volumes:
cc-remote-data:
Install and start the Agent on the PC you want to control remotely:
npm install -g cc-remote-agent
cc-agent
On first run, you'll be guided interactively to enter server address, email, password, and machine name. Binding and connection are handled automatically.
cc-agent --status # Check status
cc-agent --rebind # Rebind machine
cc-agent --unbind # Unbind machine
┌─────────────┐ ┌──────────────┐ ┌─────────────┐
│ Client │◄────────►│ Server │◄────────►│ PC Agent │
│ (Web/PWA) │ Socket.io│ (This Image) │ Socket.io │ │
└─────────────┘ +JWT └──────────────┘ +JWT └─────────────┘
│
▼
┌──────────────┐
│ SQLite │
│ (Users/Hosts)│
└──────────────┘
Server (this image) relays all communication between clients and agents. It does not execute code or access the file system directly.
# HTTP health check
curl http://localhost:3000/health
# Docker health check
docker inspect --format='{{.State.Health.Status}}' cc-remote-server
linux/amd64linux/arm64| Tag | Description |
|---|---|
latest | Latest stable release |
1.1.2 | Specific version |
1.1 | Major version |
# Check logs
docker logs cc-remote-server
# Check port usage
netstat -tlnp | grep 3000
Make sure the data directory /app/data is mounted.
MIT
For questions or feedback, email: [email protected]
从手机/浏览器远程控制任意 PC 上的 Claude Code。
Claude Code Remote Server 是 Claude Code Remote 项目的核心服务端组件,提供:
| 登录页面 | 机器列表 | 机器搜索 |
![]() | ![]() | ![]() |
| 项目列表 | 对话模式 | 终端模式 |
![]() | ![]() | ![]() |
| 会话历史 | ||
![]() |
bugfix:
actions/upload-artifact@v3 和 actions/download-artifact@v3(更新至 v4)contents: write 权限feature:
--config-dir 参数,可同时运行多个 Agent 实例bugfix:
feature:
bugfix:
feature:
bugfix:
/ 斜杠命令在部分场景下无法识别的问题docker run -d \
--name cc-remote-server \
-p 3000:3000 \
-v cc-remote-data:/app/data \
-e JWT_SECRET=your-super-secret-jwt-key \
-e CORS_ORIGIN=https://your-web-domain.com \
zhangthexiaoning/cc-remote-server:latest
启动后访问 http://localhost:3000/health 验证服务是否正常。
| 变量 | 说明 | 默认值 | 必填 |
|---|---|---|---|
PORT | 服务监听端口 | 3000 | 否 |
JWT_SECRET | JWT 签名密钥 | - | 是(生产环境) |
JWT_EXPIRES_IN | Token 有效期 | 7d | 否 |
CORS_ORIGIN | 允许的前端域名(CORS) | * | 否 |
DATABASE_URL | SQLite 数据库路径 | file:./data/prod.db | 否 |
NODE_ENV | 运行环境 | production | 否 |
https://cc-remote.example.com)镜像内置 SQLite 数据库,建议挂载数据目录:
docker run -d \
--name cc-remote-server \
-p 3000:3000 \
-v /path/to/data:/app/data \
-e JWT_SECRET=your-super-secret-jwt-key \
zhangthexiaoning/cc-remote-server:latest
或使用 Docker Volume:
docker volume create cc-remote-data
docker run -d \
--name cc-remote-server \
-p 3000:3000 \
-v cc-remote-data:/app/data \
-e JWT_SECRET=your-super-secret-jwt-key \
zhangthexiaoning/cc-remote-server:latest
services:
cc-remote-server:
image: zhangthexiaoning/cc-remote-server:latest
container_name: cc-remote-server
restart: unless-stopped
ports:
- "3000:3000"
volumes:
- cc-remote-data:/app/data
environment:
- PORT=3000
- JWT_SECRET=your-super-secret-jwt-key-change-me
- JWT_EXPIRES_IN=7d
- CORS_ORIGIN=*
- NODE_ENV=production
volumes:
cc-remote-data:
在需要远程控制的 PC 上安装并启动 Agent:
npm install -g cc-remote-agent
cc-agent
首次运行会交互式引导输入服务器地址、邮箱、密码和机器名称,自动完成绑定和连接。
cc-agent --status # 查看状态
cc-agent --rebind # 重新绑定
cc-agent --unbind # 解除绑定
┌─────────────┐ ┌──────────────┐ ┌─────────────┐
│ 客户端 │◄────────►│ Server │◄────────►│ PC 守护进程 │
│ (Web/PWA) │ Socket.io│ (本镜像) │ Socket.io │ (Agent) │
└─────────────┘ +JWT └──────────────┘ +JWT └─────────────┘
│
▼
┌──────────────┐
│ SQLite │
│ (用户/机器) │
└──────────────┘
Server(本镜像) 负责中转客户端与 Agent 之间的所有通信,不直接执行代码或访问文件系统。
# HTTP 健康检查
curl http://localhost:3000/health
# Docker 健康检查
docker inspect --format='{{.State.Health.Status}}' cc-remote-server
linux/amd64linux/arm64| 标签 | 说明 |
|---|---|
latest | 最新稳定版本 |
1.1.2 | 指定版本号 |
1.1 | 主版本号 |
# 查看日志
docker logs cc-remote-server
# 检查端口占用
netstat -tlnp | grep 3000
确保挂载了数据目录 /app/data。
MIT
有任何问题可邮件反馈:[email protected]
Content type
Image
Digest
sha256:9d280eca2…
Size
283 MB
Last updated
22 days ago
docker pull zhangthexiaoning/cc-remote-server