Codync README

项目的 README,来自 github.com/leepokai/Codync。合并为一个 markdown 文件:README.md。

Codync icon

Codync

The open-source Grok Bot alternative.
Bring your own agent and subscription — Claude Code, Codex, Gemini CLI, Cursor and 40+ more — as teammates you can message from your phone.

Website · Docs · Compare · Launch film · X @trycodync · Support Codync ☕

Star Codync on GitHub Ko-fi
Free, open source, no paid tier. A ⭐ is how others find it; a ☕ keeps it going.

Download for macOS Download for Windows Download for Linux x86_64 Download for Linux ARM64

macOS: Apple Silicon + Intel (DMG) · Windows: x64 installer · Linux: AppImage · All downloads

App Store Homebrew Discord Feishu China Release License: Apache 2.0
iOS macOS Windows Linux Rust Swift Electron

Watch the Codync launch film on YouTube (1:45)

Codync desktop app on macOS: four bots in the sidebar and the welcome screen with no bot selected

Download on the App Store Get it on Google Play

[!WARNING] Official account: @trycodync is my only official account. Beware of impersonators and scams.

Codync turns the coding agents on your computer — Claude Code, Codex, Cursor, Pi, OpenCode, Grok Build, Gemini, Copilot, Hermes Agent and ~40 more — into persistent bots you delegate to from your iPhone, Mac, Windows PC, Linux desktop or any terminal, the way you'd message a colleague. Pick who, say what, put the phone away. You get a notification when a bot finishes or needs your approval.

Why bots? On a phone, "find the right working session, then pick an environment" is too slow. With bots you already know who to hand the intent to: open the chat, type, done.

Why Codync

Platforms

Platform App Highlights
📱 iPhone Native SwiftUI Chat with bots, approvals, push notifications, Live Activity, widgets, remote screen, voice calls
💻 macOS Desktop app (Electron), menu bar + window Runs the host, chat window, usage in the menu bar, iPhone pairing
🪟 Windows Desktop app (Electron), tray + window Runs the host, chat window, iPhone pairing (no remote screen yet)
🐧 Linux Desktop app (Electron), tray + window Chat window, iPhone pairing; the host runs on desktops and headless servers
⌨️ Terminal codync-host tui Message your bots from any terminal, over SSH too

The host (codync-host, Rust) runs on macOS, Windows and Linux; every client talks to it, so all your bots and chats are the same everywhere.

Looking for the former native Mac app (SwiftUI + AppKit)? Version 2.7.0 moved Mac and Linux to one Electron desktop app. The native implementation is preserved in Git history at 1055636; see the archived AppKit chat implementation notes.

How it works

Remote Apple client ⇄ encrypted channel (direct or Cloudflare cloud/) ⇄ codync-host ⇄ ACP agent
Local / SSH client  ⇄ loopback HTTP + SSE                             ⇄ codync-host
Host notifications → APNs worker (relay/) → iPhone

UI patterns (roster, character avatars, approval cards, trace sheet, "needs you / done" notifications) follow Grok Bot.

Install

One line (macOS or Linux):

curl -fsSL https://raw.githubusercontent.com/leepokai/Codync/main/packaging/install.sh | sh

On a Mac it installs the app (the host ships inside it); on Linux the host, plus the desktop app when a display is present. Add sh -s -- --host-only for servers and headless Macs. Re-run it to upgrade.

Mac — download codync-macos.dmg and drag it to Applications, or:

brew install --cask leepokai/codync/codync

All three install the same signed, notarized app.

Open Codync: it sets up the host on first launch. Open Codync opens the full window; Pair phone… shows the QR code.

Windows — download codync-windows-x64.exe and run it. It installs for your user and starts the host at sign-in. The installer isn't code-signed yet, so SmartScreen asks you to confirm it once (More info → Run anyway). Not on Windows yet: remote screen, on-device speech and the Claude Code status line hook. Details: desktop app.

iPhone and Android — get Codync on the App Store (iOS 26+, free) or on Google Play (Android 10+, free), then scan the QR code from Pair phone… on the Mac, the Windows or Linux app, or codync-host pair.

Why the iPhone app can be a version behind: every iPhone release goes through Apple's App Review first, which usually takes a day or more, so the App Store version can trail the Mac, Windows, Linux and host releases. Your computer accounts for that: an update that needs a newer phone app waits until the App Store has the iPhone version and Google Play has the Android version, then installs, and the iPhone app shows a reminder when a newer version is available.

Linux — the host, plus the desktop app:

curl -fsSL https://raw.githubusercontent.com/leepokai/Codync/main/packaging/install.sh | sh
# or: brew install leepokai/codync/codync-host
codync-host install   # systemd --user service
codync-host pair      # QR code in the terminal, or Settings in the app

The script also installs the desktop app (codync, an AppImage, with its .desktop file) when you're in a graphical session. By hand: codync-linux-<arch>.AppImage, .deb or .tar.gz from Releases.

Building the desktop app yourself: cd apps/desktop && npm ci && npm run dev.

Linux server / cloud VM — the host runs headless on any distro (static binary, x86_64 + arm64). Setup, remote access and limitations: Linux servers (contributor notes).

Remote access is direct on the same network or over Tailscale, with no account. From anywhere else, a free Cloudflare relay, end-to-end encrypted, needs the computer and the phone in the same account. Details: Remote access (protocol).

Agents — install and sign in to whichever you use; Codync finds them. Claude Code, Codex and Pi run through their ACP adapters (fetched by npx, so Node.js is needed for those).

codync-host install also routes Claude Code's status line through codync-host statusline so live limits reach the host; an existing status line keeps working (it's wrapped, and restored on uninstall).

If an update fails

Quit Codync completely and reopen it first; a downloaded update may still be waiting for the old app to exit. If updating still fails, uninstall the app and reinstall the latest version from Releases. On macOS, stop/remove the old host service before replacing Codync.app. Keep ~/.codync and Codync's settings folders to retain your bots, conversations and computer identity; do not use Reset all data, a cleanup utility, or Homebrew --zap for this repair. Follow the reinstallation steps.

codync-host

Command
codync-host install / uninstall background service (launchd on macOS, systemd --user on Linux, the sign-in Run key on Windows)
codync-host tui [--url … --token …] message your bots from a terminal (this computer by default; SSH-friendly)
codync-host send --bot <id-or-name> [--wait] [--json] <text>... send from a script, optionally waiting for the final reply
codync-host import <file> [--dry-run] [--only a,b] [--skill] import bots from another app's export file; --skill prints the skill that writes one
codync-host pair [--json] pairing QR code / link
codync-host status installed? running?
codync-host serve [--port 19222] run in the foreground
codync-host statusline [-- <your command>] Claude Code status line command (wraps yours)
codync-host reset-token rotate the local loopback bearer token
codync-host cloud [--assistants on|off] [--leave] cloud enablement, URL and status; whether ChatGPT, Claude and other connected assistants may message this computer's bots; --leave takes this computer out of its account
codync-host network codync-network, your computers' network: create, invite, join, status, promote, remove, recover
codync-host devices list/revoke authorized remote devices
codync-host access review device access requests

For non-interactive work, send a message and wait for a machine-readable result:

codync-host send --bot reviewer --wait --json "Review the current diff without modifying files."

--bot accepts an ID or an exact, case-insensitive name; duplicate names require an ID. Use positional text or --file request.txt to read UTF-8 (--file - reads stdin). --reply-to <id> quotes a message of the bot's chat: the entryId or replyId of an earlier --json result. Without --wait, the command prints the accepted message's id, seq and turn; with --wait, it prints the reply once the bot is done (a reply in several messages comes joined; a turn that ends with no text, such as only a reaction, prints nothing). Group chats can't be waited on. Queued messages retain the host's batching behavior, so multiple sends can share one reply and turn.

--timeout <seconds> defaults to 1800 active seconds. Pending approval pauses the clock and prints a summary to stderr; the command never approves a request or stops the bot on timeout. Notices also go to stderr. --json emits one JSON object with botId, entryId, entrySeq, turn, status (completed, failed, or timeout), optional stopReason, reply and replyId, notices, elapsedSeconds (wall time), and waitedForApprovalSeconds. Without --wait, completed means the send was accepted. Errors before acceptance only use stderr. Exit codes are 0 completed/accepted, 1 stopped/limited/declined/failed, 2 invalid arguments, missing/ambiguous bot or --wait on a group chat, 3 unavailable host or refused API request, and 4 timeout. See codync-host send --help for all options.

Data lives in ~/.codync. The local bearer token authorizes loopback helpers and SSH-forwarded callers. Use --port and CODYNC_HOME when targeting a host with a different port or data directory; development builds default to port 19223 and ~/.codync-dev. Remote devices use individual keys and grants over the encrypted channel; revoke a lost device through device management rather than rotating the loopback token. Host methods and caller permissions live in host/src/api/.

FAQ

Is Codync free? Yes. $0 with every feature included, Apache 2.0 licensed. You pay only your agent's provider, through the plan or key you already have.

Can I use my Claude or ChatGPT plan? Yes. Codync runs the agents already signed in on your computer: Claude Code with your Claude plan, Codex with your ChatGPT plan, and so on. It never calls a provider's API with your login.

Is there a Claude Code or Codex app for iPhone? Codync is one, free: Claude Code or Codex keeps running on your Mac or Linux machine, and you chat with it, approve its edits and get notified from the iPhone. Guides: Claude Code on iPhone · Codex on iPhone.

Which agents can it run? Claude Code, Codex, Cursor, Gemini, Copilot, OpenCode and about 40 more through the ACP registry. Each bot picks its own.

How is it different from Grok Bot, Muse or Dots? The same bot-based way of working (named bots, group chats, replies, approvals, memory), but open source, free, running on your own computer and with any coding agent. Side-by-side pages: codync.dev/compare.

Where does my data go? Bots, chats and memory stay on your computer. The phone reaches it directly on the same network or over Tailscale. With an account, it can also go through an end-to-end encrypted relay that can't read your messages.

Do I need an account? No. Without one, your phone pairs by scanning a QR code and connects over Wi-Fi or Tailscale. A free account (Apple, Google or GitHub) adds the relay, which needs the computer and the phone in the same account. An account alone never unlocks a computer: you still pair by scanning a QR code, or approve a 6-digit code on the computer.

Which computers can run it? A Mac, a Windows PC, or a Linux desktop or headless server. The iPhone app and the terminal UI over SSH talk to the same host.

Repository

Path
host/ codync-host — Rust daemon: ACP client, SQLite transcript, HTTP/SSE API, push, usage
apps/ios/ iOS app: pairing, roster, push, Live Activity glue
apps/ios/Kit/ The iPhone app's Swift package: CodyncKit (wire models, host client, theme, avatars; shared with the widgets) and CodyncUI (store + screens)
apps/ios/Widgets/ Bots, usage and per-provider usage widgets + bot Live Activity
apps/desktop/ Desktop app for macOS, Windows and Linux (Electron, React, TypeScript): menu bar/tray + chat window; installs/monitors the host
cloud/ Cloudflare accounts, D1, encrypted channel relay and offline mailbox
apps/shared/Config/ Environment configuration (Clerk key, cloud URL) for the iPhone and desktop apps
apps/screen-macos/, apps/screen-linux/ Platform screen capture/input helpers
docs/ Documentation index and file structure
relay/ Cloudflare Worker APNs relay with encrypted per-device tickets
private-relay/ Single-process Node relay a person runs for their own computers: the cloud relay's WebSocket subset, without accounts
web/ Website (Next.js static export, deployed on Vercel)
packaging/ Homebrew cask and formula templates (published to leepokai/homebrew-codync on release) and install.sh (the curl installer)

Build, install, restart and full checks: development guide.

The Xcode project is generated: xcodegen generate --spec apps/project.yml.

cd host && cargo test            # host
cd apps/desktop && npm test      # desktop app (also: npm run typecheck)
# iPhone package: xcodebuild test -scheme CodyncKit-Package (apps/ios/Kit, iOS Simulator)
cd cloud && npm test            # cloud API / channel relay
cd relay && npm test             # relay tickets

Changelog

For release-by-release changes, see GitHub Releases.

Versioning

Clients and the host each name the oldest version of the other they still work with (minApp in the host's hello, minHost in each client), so an app can meet an older or newer host. Details: compatibility.

Community

Discord Feishu · China community
Join Discord for questions, help and feedback. Can't reach Discord? Join the Telegram group instead. Join the Feishu group, a community for Codync users in China to share tips, ask questions and give feedback.

Contact

Credits

The desktop notch island's design is inspired by the work of @novra.design.

Code signing policy

Free code signing provided by SignPath.io, certificate by SignPath Foundation, for the Windows releases once SignPath Foundation accepts the project (earlier releases are unsigned). What is signed and who approves it: code signing policy.

License

Apache 2.0 for the code (see NOTICE); versions up to 2.11.0 were MIT. The Codync name, logo and the Codync Cloud relay are not covered, and hosted or multi-tenant services must run their own relay and accounts: see TRADEMARK.md.

Star History

Star History Chart

Codync (leepokai/Codync)

正在搜索数据库…

这是什么?Codync 把你电脑上已安装的编程智能体(Claude Code、Codex、Cursor、Gemini、Copilot,以及通过 ACP registry 接入的约 40 个其他智能体)变成持久的具名机器人,你可以像给同事发消息那样,从 iPhone、Mac、Linux 桌面或任意终端与它们对话。它是 Grok Bot 和 Muse 的免费开源替代品。
这是我安装的应用,还是我基于它写代码的框架?它是一个名为 codync-host 的 Rust 守护进程,加上完全原生的客户端应用:iPhone 和 Mac 用 SwiftUI,Linux 用 GTK 4 / libadwaita,SSH 场景用终端界面——不涉及任何 WebView 或 Electron。
怎么让它跑起来?在 macOS 或 Linux 上运行一行式安装脚本(服务器加 --host-only),它会安装 codync-host,并在有显示器的机器上安装桌面应用;在 Mac 上也可以改为下载 codync-macos.dmg。然后从 App Store 安装 iPhone 应用,扫描 “Pair iPhone...” 中显示的二维码完成配对。
除了我已在用的编程智能体,还需要别的东西吗?Codync 会自动检测 PATH 中已有的智能体,但有些会在首次使用时通过 npx 或 uvx 拉取——其中 Claude Code、Codex 和 Pi 是通过 npx 拉取的 ACP 适配器运行的,因此需要 Node.js。
主机端能在 Windows 上运行吗?不能——codync-host 只为 macOS 和 Linux 构建(Linux 上是可在任何发行版运行的静态二进制文件);iPhone 应用、终端应用等客户端连接到这台主机。
能把主机端跑在无桌面的云服务器上吗?可以——codync-host 以静态二进制(x86_64 和 arm64)的形式在任意 Linux 发行版上无界面运行,适合挂在没有显示器的云虚拟机或服务器上。
远程给机器人发消息时,我的数据会经过哪里?消息会经过一个免费的 Cloudflare 托管中继,由于手机与电脑之间是端到端加密,中继只能看到密文;在同一 Wi-Fi 或 Tailscale 下,手机则直接连接。
机器人之间能互相求助吗?可以——内置的 team MCP 服务器让一个机器人可以发现并联系你的其他可见机器人,这样 Claude 机器人可以请 Codex 机器人做评审,同时各自保留自己的项目文件夹和审批。
远程屏幕功能是做什么的?它通过 WebRTC 和硬件 H.264 把电脑屏幕串流到 iPhone,让你可以远程查看和操控电脑,机器人也能通过内置的计算机工具使用同一块屏幕。
多个机器人能在同一个会话里一起聊天吗?可以——群聊里容纳多个机器人加上你;每条消息会触发一轮简短互动,被 @(或全部)的机器人依次回复,并可互相回应,最多三轮。
作者
leepokai
大小
74.5 MB
星标
2.2K
时长
8个月
提交 · 90 天