[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-109716":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":10,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":10,"pushedAt":25,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":15,"starSnapshotCount":15,"syncStatus":29,"lastSyncTime":30,"discoverSource":31},109716,"cc-remote","AkaraChen\u002Fcc-remote","AkaraChen","Claude Code with the model on a remote host and the tools on your machine","",null,"TypeScript",420,58,98,0,4,20,175,14,70.31,false,"main",true,[],"2026-11-21 10:31:19","2026-11-23 08:50:27","# cc-remote\n\nEnglish | [简体中文](README.zh-CN.md)\n\n**Use Claude Code on your laptop without installing or logging into it there.**\n\ncc-remote runs Claude Code on a server you can reach over ssh, and runs every tool it calls\non your own machine. The model, your login and your subscription stay on the server. Your\ncode, your shell, your toolchain and your editor stay with you.\n\nIt's an [ACP](https:\u002F\u002Fagentclientprotocol.com) agent, so it plugs straight into\n[acpc](https:\u002F\u002Fgithub.com\u002FAkaraChen\u002Facpc) in the terminal, Zed, paseo and any other ACP client. To your editor it looks exactly like Claude Code.\n\n```\n  your machine                                   server\n ┌───────────────────────────────┐   ssh    ┌─────────────────────────┐\n │ Zed \u002F paseo \u002F any ACP client  │          │ claude (logged in)      │\n │        ⇅                      │ ───────► │  model, prompts,        │\n │ cc-remote                     │ ◄─────── │  web search, subagents, │\n │  Read · Write · Edit · Bash   │          │  skills, its own MCP    │\n │  Glob · Grep · your MCP       │          │                         │\n └───────────────────────────────┘          └─────────────────────────┘\n```\n\n## Why\n\n- **Your Claude login lives somewhere else.** A dev box, a work server, a machine in a\n  region where Claude is available. Log in once there and use it from every computer you own.\n- **Your code stays local.** Unlike ssh-ing into the server and running `claude` there, the\n  files being edited and the commands being run are the ones on your machine, with your\n  dependencies, your git config and your build tools.\n- **Your local MCP servers come along.** The ones your editor passes and the ones in your local\n  Claude Code config run on your machine, OAuth logins included.\n- **Nothing to set up on the server.** No daemon, no port, no agent to install. If `ssh \u003Cyour-server>\n  claude --version` works, cc-remote works.\n- **One binary locally, on macOS, Linux and Windows.** No `claude` install and no Claude login\n  on your machine.\n- **It's real Claude Code.** cc-remote is\n  [claude-agent-acp](https:\u002F\u002Fgithub.com\u002Fagentclientprotocol\u002Fclaude-agent-acp), the ACP adapter\n  for Claude Code, with one change: the `claude` it starts runs on the server. Sessions,\n  permission prompts, modes, models, forks and diffs all work the way they do in\n  claude-agent-acp.\n\n## What runs where\n\n| Runs on your machine | Runs on the server |\n|---|---|\n| Read, Write, Edit, NotebookEdit, Bash (PowerShell on Windows), Glob, Grep | The model, the system prompt, the session |\n| The MCP servers your ACP client brings, and those in your local Claude Code config | Web search, subagents, skills |\n| Your `CLAUDE.md` files, git status, environment | The server's own settings and MCP servers |\n\n## Requirements\n\nThroughout this README, `\u003Cyour-server>` stands for your server: replace it with anything `ssh`\naccepts, such as a hostname, `user@host`, or a `Host` alias from `~\u002F.ssh\u002Fconfig`.\n\nBefore you start, have these two in place:\n\n- **ssh to the server works.** `ssh \u003Cyour-server>` logs you in without a password prompt (use a key, and\n  put ports, users and jump hosts in `~\u002F.ssh\u002Fconfig`).\n- **`claude` on the server is logged in.** Claude Code 2.1.248 or later, with a POSIX login shell.\n  Run `claude` there once and log in, or use `cc-remote --cli auth login` after installing.\n\nOn your machine you need [Bun](https:\u002F\u002Fbun.sh) to build cc-remote. The binary it builds has no\ndependencies. It runs on macOS, Linux and Windows; on Windows it also needs the OpenSSH client\nthat ships with Windows 10 and later.\n\n## Install\n\n```sh\ngit clone https:\u002F\u002Fgithub.com\u002FAkaraChen\u002Fcc-remote && cd cc-remote\nbun install\nbun run compile    # builds the binary for this machine into dist\u002Fcc-remote\nbun link           # puts cc-remote on your PATH, in ~\u002F.bun\u002Fbin\n```\n\n`bun run compile` picks the `build:\u003Cos>-\u003Carch>` script for the machine you run it on. To build\nevery platform at once (linux-x64, linux-arm64, darwin-arm64, windows-x64, windows-arm64), run\n`bun run build`; the binaries land in `dist\u002F`.\n\nTell it which host to use, then check the connection:\n\n```sh\nmkdir -p ~\u002F.config\u002Fcc-remote && echo \u003Cyour-server> > ~\u002F.config\u002Fcc-remote\u002Fhost\ncc-remote doctor\n```\n\ncc-remote looks for the host in this order: `--host`, then `$CC_REMOTE_HOST`, then\n`~\u002F.config\u002Fcc-remote\u002Fhost`. The host can be anything `ssh` accepts. Ports, keys and jump hosts\ngo in `~\u002F.ssh\u002Fconfig`.\n\nIf you need a different ssh command, set `CC_REMOTE_SSH`. It works like rsync's `RSYNC_RSH`:\n\n```sh\nexport CC_REMOTE_SSH=\"ssh -p 2222 -i ~\u002F.ssh\u002Fid_ed25519\"\n```\n\nIf the server isn't logged in yet, run `cc-remote --cli auth login`.\n\n## Use\n\nOnce cc-remote is installed, it works with any client that speaks ACP. Add an agent whose command\nis `cc-remote --host \u003Cyour-server>` (or just `cc-remote`, if you wrote the host file above).\n\n**acpc**, in the terminal. [acpc](https:\u002F\u002Fgithub.com\u002FAkaraChen\u002Facpc) gives any ACP agent the\nCodex terminal UI. Install it, add cc-remote as an agent, and start a session:\n\n```sh\ncurl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002FAkaraChen\u002Facpc\u002Fmain\u002Finstall.sh | sh\nacpc add --slug cc-remote --name \"Claude (remote)\" cc-remote --host \u003Cyour-server>\nacpc -a cc-remote\n```\n\nPass `--default` to `acpc add` to make it the agent plain `acpc` starts. In acpc, `\u002Fmodel` and\nShift+Tab switch Claude's models and modes, `\u002Fresume` reopens sessions, and `\u002Fagent` can move a\nconversation between cc-remote and your other agents.\n\n**Zed**, in `settings.json`:\n\n```json\n\"agent_servers\": {\n  \"Claude (remote)\": { \"command\": \"cc-remote\", \"args\": [\"--host\", \"\u003Cyour-server>\"] }\n}\n```\n\n**paseo**, in `~\u002F.paseo\u002Fconfig.json` under `agents.providers`:\n\n```json\n\"claude-remote\": {\n  \"extends\": \"acp\",\n  \"label\": \"Claude (remote)\",\n  \"command\": [\"cc-remote\", \"--host\", \"\u003Cyour-server>\"]\n}\n```\n\nFor paseo there is also a plugin in [`paseo-plugin\u002F`](paseo-plugin). Install it instead of editing\nthe config: it adds a \"Claude (remote)\" provider and a settings screen for the host, the ssh\ncommand and the executable path (Settings → Plugins → cc-remote). The \"Check\" button there runs\n`cc-remote doctor`.\n\n```sh\npaseo plugin install github:AkaraChen\u002Fcc-remote:paseo-plugin\n```\n\n### Commands\n\n```\ncc-remote [--host \u003Chost>]                  speak ACP on stdio (what your client runs)\ncc-remote [--host \u003Chost>] doctor           check ssh and the remote claude version\ncc-remote [--host \u003Chost>] --cli \u003Cargs...>  run `claude \u003Cargs...>` on the server\ncc-remote --version | --help\n```\n\n## Behavior\n\n**Permissions.** Permission requests go to your client, the same as with any ACP agent. Read, Glob\nand Grep never ask. \"Accept edits\" approves Write, Edit and NotebookEdit inside the session's\ndirectory. When a Bash command asks, the approval it offers is for a command prefix (such as\n`npm test:*`) rather than all of Bash. PowerShell commands on Windows work the same way. A command with `;`, `&`, `|`, redirects, `$(…)`, backticks\nor newlines is never approved automatically. Prefix approvals last until cc-remote exits.\n\n**Sessions.** Each session is mirrored to `~\u002F.claude\u002Fprojects\u002F` on your machine, in the same place\na local Claude Code would keep it. Your client can list, replay, load and fork sessions from there.\nIf you resume a session the server has never seen, such as a fork, cc-remote copies it to the\nserver first. On the server, each local directory gets its own empty working folder at\n`~\u002F.cc-remote\u002Fws\u002F\u003Cyour hostname>\u002F\u003Clocal path>\u002F`.\n\n**MCP servers.** Besides the servers your client passes, cc-remote starts the ones your local\nClaude Code would: user servers from `~\u002F.claude.json`, the ones added for this directory, and the\nproject's `.mcp.json` servers that you have approved (in `~\u002F.claude\u002Fsettings.json`,\n`.claude\u002Fsettings.local.json`, or by approving them in a local `claude`). They run on your\nmachine and reach claude the same way as your client's. When names clash, your client's server\nwins over your local config's, and either one wins over a server of the same name on the host.\nAn http or sse server that needs OAuth offers an `authenticate` tool until you log in. Calling it\nopens the login page in your local browser, takes the redirect on `localhost`, and then the\nserver's real tools appear. The tokens are kept in `~\u002F.config\u002Fcc-remote\u002Fmcp-auth\u002F`, separately\nfrom Claude Code's.\n\n**ssh.** By default all sessions share one connection (`ControlMaster`, kept open for 10 minutes).\nEvery connection sends `ServerAliveInterval=15` and `ServerAliveCountMax=3`, so a dead link fails\nin about a minute instead of hanging. If an `-o` with the same name comes earlier in\n`CC_REMOTE_SSH`, that one is used instead. Windows' OpenSSH can't share connections, so there each\nsession opens its own.\n\n**Windows.** The shell tool is PowerShell instead of Bash, as in Claude Code on Windows. cc-remote\nuses PowerShell 7 (`pwsh`) when it's on PATH, otherwise Windows PowerShell 5.1. Grep needs\n[ripgrep](https:\u002F\u002Fgithub.com\u002FBurntSushi\u002Fripgrep) (`rg`) on PATH. On the server, a local directory\nlike `C:\\Users\\me\\app` gets the working folder `~\u002F.cc-remote\u002Fws\u002F\u003Cyour hostname>\u002FC\u002FUsers\u002Fme\u002Fapp\u002F`.\n\n### Limits\n\n- Your project's `.claude\u002F` directory (commands, skills, agents, settings) is not sent to the\n  server. The server's user-level settings, skills and MCP servers still apply.\n- File checkpoints and rewind are recorded on the server, so they can't see your local edits.\n- Bridged MCP servers from your client expose their tools only, not resources or prompts.\n- LSP, Monitor and the worktree tools are turned off.\n\n## How it works\n\nThe Claude Agent SDK talks to `claude` over its stdin and stdout. claude-agent-acp runs the SDK on\nyour machine, and cc-remote starts `claude` through `ssh -T`, so that same stream crosses the\nnetwork.\n\nThe built-in file and shell tools are turned off on the server. cc-remote replaces them with\nlocal versions that have the same names and inputs, and `claude` calls them through the SDK's tool\nchannel, the same way it calls any in-process MCP tool. Your client's MCP servers use that same\nchannel. A proxy on the stream renames the tools back to their built-in names, so your client\nrenders diffs and terminals as usual. It also maps the server's paths to your local ones.\n\nclaude-agent-acp is patched in one place (`patches\u002F`): a hook that rewrites the `query()` options\nfor each session. See [`PLAN.md`](PLAN.md) for the full design.\n\n## Develop\n\n```sh\nbun install\nbun test\nbun src\u002Fmain.ts --host \u003Cyour-server>     # speaks ACP on stdio\nbun run compile                   # dist\u002Fcc-remote, for this machine\nbun run build                     # dist\u002Fcc-remote-{linux-x64,linux-arm64,darwin-arm64,windows-x64,windows-arm64}\n```\n\n`test\u002Fe2e\u002F` has a minimal ACP client and a fake ssh, which runs the \"remote\" side on this machine\nunder a separate `HOME`. See the header of `test\u002Fe2e\u002Fclient.ts` for usage.\n","cc-remote 是一个轻量级代理工具，实现本地编辑器（如 Zed、paseo）通过 ACP 协议调用远程服务器上运行的 Claude Code 模型服务，同时将所有代码操作（读写、编辑、Shell 执行等）保留在本地执行。其核心特点是分离计算与执行：模型推理和登录态在远程 SSH 可达的服务器上完成，而文件系统访问、MCP 工具调用、Git 环境、shell 依赖等全部运行于用户本机。无需在服务器部署额外服务或开放端口，仅需 `ssh \u003Cserver> claude --version` 可通即可使用。适用于需合规管控 Claude 账号与模型访问权限、但要求开发环境完全本地化（含代码、配置、工具链）的团队或个人开发者场景。",2,"2026-11-24 04:37:14","CREATED_QUERY"]