
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
cc-remote-agent
Advanced tools
PC daemon for Claude Code Remote — Control Claude Code on your PC from any device.
cc-remote-agent is the PC daemon for the Claude Code Remote project. It runs on the computer you want to control remotely, connects to the cloud server via WebSocket, and executes commands received from web clients.
Server: https://hub.docker.com/r/zhangthexiaoning/cc-remote-server
npm install -g cc-remote-agent
ANTHROPIC_API_KEY environment variable set (required for Chat mode)# Using npm
npm install -g @anthropic-ai/claude-code
# Or using Homebrew (macOS)
brew install claude-code
# Linux/macOS
export ANTHROPIC_API_KEY=your-api-key
# Windows (PowerShell)
$env:ANTHROPIC_API_KEY="your-api-key"
First, deploy the server using Docker:
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
Get your JWT Token from the Web UI, then run:
cc-agent bind --token <your-jwt-token> --name "My Office PC"
cc-agent start --server https://your-server.com
cc-agent status
| Command | Description |
|---|---|
cc-agent bind --token <token> --name <name> | Bind machine to account |
cc-agent start --server <url> | Start daemon and connect to server |
cc-agent status | View connection status and machine info |
cc-agent projects | Scan local Git project directories |
cc-agent install-service | Install as system service (auto-start) |
┌─────────────┐ ┌──────────────┐ ┌─────────────┐
│ Client │◄────────►│ Server │◄────────►│ PC Agent │
│ (Web/PWA) │ Socket.io│ (Docker) │ Socket.io │ (This pkg) │
└─────────────┘ +JWT └──────────────┘ +JWT └─────────────┘
│ │
▼ ▼
┌──────────────┐ ┌─────────────┐
│ SQLite │ │ Claude Code │
└──────────────┘ └─────────────┘
Agent runs on your local PC and is responsible for:
Configuration is stored at ~/.cc-remote-agent/config.json:
{
"machineId": "xxx-xxx-xxx",
"machineToken": "yyy-yyy-yyy",
"machineName": "My Office PC",
"serverUrl": "https://your-server.com"
}
# Check network connectivity
ping your-server.com
# Check if server is running
curl https://your-server.com/health
which claude
# Or: export PATH=$PATH:/path/to/claude
echo $ANTHROPIC_API_KEY
export ANTHROPIC_API_KEY=sk-ant-xxxxx
| OS | Minimum Version |
|---|---|
| macOS | 10.15+ |
| Linux | glibc 2.17+ |
| Windows | 10+ (WSL2 recommended) |
MIT
Claude Code Remote 的 PC 守护进程 —— 让你从任意设备远程控制本地 PC 上的 Claude Code。
cc-remote-agent 是 Claude Code Remote 项目的 PC 端守护进程。它运行在你需要远程控制的电脑上,通过 WebSocket 连接到云端 Server,接收来自 Web 客户端的指令并执行。
服务端镜像: https://hub.docker.com/r/zhangthexiaoning/cc-remote-server
npm install -g cc-remote-agent
ANTHROPIC_API_KEY 环境变量已设置(Chat 模式需要)# 使用 npm
npm install -g @anthropic-ai/claude-code
# 或使用 Homebrew (macOS)
brew install claude-code
# Linux/macOS
export ANTHROPIC_API_KEY=your-api-key
# Windows (PowerShell)
$env:ANTHROPIC_API_KEY="your-api-key"
首先使用 Docker 部署服务端:
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
从 Web UI 登录获取 JWT Token,然后执行:
cc-agent bind --token <your-jwt-token> --name "我的办公PC"
cc-agent start --server https://your-server.com
cc-agent status
| 命令 | 说明 |
|---|---|
cc-agent bind --token <token> --name <name> | 绑定机器到账户 |
cc-agent start --server <url> | 启动守护进程并连接服务端 |
cc-agent status | 查看连接状态和机器信息 |
cc-agent projects | 扫描本地 Git 工程目录 |
cc-agent install-service | 安装为系统服务(开机自启) |
┌─────────────┐ ┌──────────────┐ ┌─────────────┐
│ 客户端 │◄────────►│ Server │◄────────►│ PC 守护进程 │
│ (Web/PWA) │ Socket.io│ (Docker) │ Socket.io │ (Agent) │
└─────────────┘ +JWT └──────────────┘ +JWT └─────────────┘
│ │
▼ ▼
┌──────────────┐ ┌─────────────┐
│ SQLite │ │ Claude Code │
└──────────────┘ └─────────────┘
Agent 运行在本地 PC 上,负责:
配置文件位于 ~/.cc-remote-agent/config.json:
{
"machineId": "xxx-xxx-xxx",
"machineToken": "yyy-yyy-yyy",
"machineName": "我的办公PC",
"serverUrl": "https://your-server.com"
}
# 检查网络连通性
ping your-server.com
# 检查服务端是否运行
curl https://your-server.com/health
which claude
# 或: export PATH=$PATH:/path/to/claude
echo $ANTHROPIC_API_KEY
export ANTHROPIC_API_KEY=sk-ant-xxxxx
| 系统 | 最低版本 |
|---|---|
| macOS | 10.15+ |
| Linux | glibc 2.17+ |
| Windows | 10+ (推荐 WSL2) |
MIT
FAQs
[中文](#中文) | [English](#english)
We found that cc-remote-agent demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.