Skip to main content

Self-hosted web console for the Claude Code CLI: multi-machine Hub + PWA, drives the stream-json subprocess.

Project description

Vibing everything

自托管的 Claude Code 远程控制台 (项目仓库名 ClaudeCodeRemote / CCR, 品牌 "Vibing everything"). 用 Claude CLI 的 stream-json 协议托管会话, 通过 Web/PWA 提供完整的 claude.ai/code 体验 — 聊天、工具批准、diff、推送, 跨 设备同步, 全部跑在自己机器上.

现状 (2026-05)

可用功能:

  • 多机 Hub 聚合: 任意台机器跑 CCR server, 反向 WS 接到一个 Hub, 一个 PWA 面板看所有机器上的 session, 跨机切换无感知
  • 完整聊天 UI: 消息流 + Markdown / 代码高亮 + 工具调用卡 + diff 渲染
    • 权限审批卡 + 自定义 askuser 问答卡
  • PWA: 加到主屏当 app 用; 自适应 iPhone 刘海; 边缘右滑接管系统手势
  • OAuth 登录: Google / GitHub / Gitee (已配); Feishu / DingTalk (代码 现成, 配 client id 即用)
  • 多 LLM 后端: 同一台 CCR server 可对接 Anthropic / DeepSeek / Kimi / Qwen 等 (通过 ANTHROPIC_BASE_URL + 各家 OpenAI-compatible 网关)
  • 自定义 MCP ask_user: 绕过 SDK builtin AskUserQuestion 的硬编码极短 timeout, 用户答题想多久就多久 (见 claude_code_remote/mcp/)

架构

PWA (vibe.qpqi.group)
    ↓ HTTPS + WSS
Hub (FastAPI, 聚合 + auth + forward)
    ↓ 反向 WS tunnel (servers 主动接出)
CCR server × N (每台机器一份, 跑 claude CLI subprocess)
    ↓ stdio stream-json
claude CLI (Anthropic / 第三方 LLM 网关)

部署

  • 自己机器跑 server: 见 PWA Help 页 (登录后顶栏齿轮旁) 的 quick path
  • Hub 容器化: 见 deploy/docker-compose.hub.yml
  • 单机本地 (无 Hub): 见 deploy/README.md

开发约定

新会话进来先读 CLAUDE.md (项目说明 + spec-first 工作流) 和 REQUIREMENTS.md (2026-05-12 设计稿, 目标 + 技术路线 仍然准确).

可视化 SPEC 在 ~/SynologyDrive/Claude/ccr-spec.html (本地路径, 用户私有 工作文件; 每次 UI 改动应同步 SVG mockup + 行为表).

仓库

源: https://github.com/hwaipy/ClaudeCodeRemote

app.py 是 2026-05 前的 Flask + tmux 启动器基线, 已不使用, 保留作 参考 (UI 配色 / systemd 习惯), 后续会清掉.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

claude_code_remote-1.0.2.tar.gz (2.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

claude_code_remote-1.0.2-py3-none-any.whl (2.2 MB view details)

Uploaded Python 3

File details

Details for the file claude_code_remote-1.0.2.tar.gz.

File metadata

  • Download URL: claude_code_remote-1.0.2.tar.gz
  • Upload date:
  • Size: 2.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for claude_code_remote-1.0.2.tar.gz
Algorithm Hash digest
SHA256 0e9daf488950fe47030fcd39afb35c2d8a058fee33ffb0f97706362cd3d1c899
MD5 2c8ed3f4c2ea4abba1a78077afdc4ebd
BLAKE2b-256 55b1a4d438ebf09e7ada57bbcc8f9cb19f07cc99999768d1a6156a7989ea061a

See more details on using hashes here.

Provenance

The following attestation bundles were made for claude_code_remote-1.0.2.tar.gz:

Publisher: publish.yml on hwaipy/ClaudeCodeRemote

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file claude_code_remote-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for claude_code_remote-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 145abf19fe5529877efbe6a71d4cb555281571624f74c7616dafa565101d9753
MD5 7d12753e1d57ff3078cbc29e3dc8a236
BLAKE2b-256 a50a8df34d8ed5858f3a4564af4cd74ea78539e34432ca5c465bf6dc62366ab7

See more details on using hashes here.

Provenance

The following attestation bundles were made for claude_code_remote-1.0.2-py3-none-any.whl:

Publisher: publish.yml on hwaipy/ClaudeCodeRemote

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page