Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

feat: add a one-line curl installer for macOS and Linux

leepokaiabeb34a9e1ad
diff --git a/.github/workflows/host.yml b/.github/workflows/host.yml
index a4b09007..f0cc7dc8 100644
--- a/.github/workflows/host.yml
+++ b/.github/workflows/host.yml
@@ -63,10 +63,13 @@ jobs:
cp data/com.pokai.Codync.desktop $NAME/share/applications/
cp data/com.pokai.Codync.svg $NAME/share/icons/hicolor/scalable/apps/
tar czf $GITHUB_WORKSPACE/$NAME.tar.gz $NAME
+ cd $GITHUB_WORKSPACE && shasum -a 256 $NAME.tar.gz > $NAME.tar.gz.sha256
- uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/v')
with:
- files: codync-linux-*.tar.gz
+ files: |
+ codync-linux-*.tar.gz
+ codync-linux-*.tar.gz.sha256
release:
if: startsWith(github.ref, 'refs/tags/v')
diff --git a/.github/workflows/release-macos.yml b/.github/workflows/release-macos.yml
index 02f6b889..575d68c8 100644
--- a/.github/workflows/release-macos.yml
+++ b/.github/workflows/release-macos.yml
@@ -124,11 +124,12 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
run: |
# The host workflow may have created this release already (same tag).
+ (cd build && shasum -a 256 codync-macos.dmg > codync-macos.dmg.sha256)
gh release create ${{ github.ref_name }} \
- build/codync-macos.dmg \
+ build/codync-macos.dmg build/codync-macos.dmg.sha256 \
--title "Codync ${{ github.ref_name }}" \
--generate-notes \
- || gh release upload ${{ github.ref_name }} build/codync-macos.dmg --clobber
+ || gh release upload ${{ github.ref_name }} build/codync-macos.dmg build/codync-macos.dmg.sha256 --clobber
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -147,7 +148,7 @@ jobs:
desc "Message your coding agents as bots from iPhone, Mac, Linux or terminal"
homepage "https://www.codync.dev"
- depends_on macos: ">= :sonoma"
+ depends_on macos: :sonoma
app "Codync.app"
binary "#{appdir}/Codync.app/Contents/MacOS/codync-host"
diff --git a/README.md b/README.md
index c0a6ac66..9e21fddd 100644
--- a/README.md
+++ b/README.md
@@ -67,25 +67,34 @@ UI patterns (roster, character avatars, approval cards, trace sheet, "needs you
## Install
+**One line** (macOS or Linux):
+
+```bash
+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](https://github.com/leepokai/Codync/releases/latest/download/codync-macos.dmg) and drag it to Applications, or:
```bash
brew install --cask leepokai/codync/codync
```
-Both install the same signed, notarized app; the host ships inside it.
+All three install the same signed, notarized app.
Open Codync in the menu bar → **Install host**. **Open Codync** opens the full window; **Pair iPhone…** shows the QR code.
**Linux** — the host, plus the native GTK 4 / libadwaita app:
```bash
-brew install leepokai/codync/codync-host # or codync-host-linux-*.tar.gz from Releases
-codync-host install # systemd --user service
-codync-host pair # QR code in the terminal, or Settings in the 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 desktop app is `codync-linux-x86_64.tar.gz` / `codync-linux-arm64.tar.gz` from [Releases](https://github.com/leepokai/Codync/releases/latest): unpack it and run `bin/codync` (it ships a `.desktop` file and icon under `share/`).
+The script also installs the desktop app (`codync`, with its `.desktop` file and icon) when you're in a graphical session; it needs GTK 4 and libadwaita. By hand: unpack `codync-linux-<arch>.tar.gz` from [Releases](https://github.com/leepokai/Codync/releases/latest) and run `bin/codync`.
Building the Linux app yourself needs `libgtk-4-dev libadwaita-1-dev`: `cargo install --path apps/linux`.
@@ -130,7 +139,7 @@ Data lives in `~/.codync`. The local bearer token authorizes loopback helpers an
| `docs/` | [Documentation index](docs/README.md) and [file structure](docs/architecture/file-structure.md) |
| `relay/` | Cloudflare Worker APNs relay with encrypted per-device tickets |
| `web/` | Website (git submodule) |
-| `packaging/` | Homebrew formula template |
+| `packaging/` | Homebrew formula template and `install.sh` (the curl installer) |
Build, install, restart and full checks: [development guide](docs/guides/development.md).
diff --git a/docs/guides/linux-servers.md b/docs/guides/linux-servers.md
index 14a5aa85..79def5c2 100644
--- a/docs/guides/linux-servers.md
+++ b/docs/guides/linux-servers.md
@@ -19,13 +19,14 @@ Distro and C library don't matter. From the first release built by the updated w
Run as the user who owns the agents (not root, unless the agents are root's):
```sh
-brew install leepokai/codync/codync-host # or download codync-host-linux-<arch>.tar.gz from GitHub Releases
-codync-host install # systemd --user service, restarts on crash
-sudo loginctl enable-linger "$USER" # keep it running after you log out of SSH
+curl -fsSL https://raw.githubusercontent.com/leepokai/Codync/main/packaging/install.sh | sh -s -- --host-only
+# or: brew install leepokai/codync/codync-host
+codync-host install # systemd --user service, restarts on crash
+sudo loginctl enable-linger "$USER" # keep it running after you log out of SSH
codync-host status
```
-`install` saves the current `PATH` into the service, so install Node and the agents first. If you add an agent later and the host doesn't find it, run `codync-host install` again. `install` needs a real login session (SSH login, not `sudo su user`), otherwise `systemctl --user` can't reach the user's service manager.
+The script puts `codync-host` in `~/.local/bin` (`/usr/local/bin` as root; override with `CODYNC_BIN_DIR`), checks its SHA-256, and restarts the service on upgrade. `install` saves the current `PATH` into the service, so install Node and the agents first. If you add an agent later and the host doesn't find it, run `codync-host install` again. `install` needs a real login session (SSH login, not `sudo su user`), otherwise `systemctl --user` can't reach the user's service manager.
Other commands work the same as on a desktop: `codync-host pair`, `codync-host tui`, `codync-host uninstall` (keeps data in `~/.codync`). Logs go to the journal: `journalctl --user -u codync-host -f`.
diff --git a/packaging/install.sh b/packaging/install.sh
new file mode 100755
index 00000000..3f8b87a5
--- /dev/null
+++ b/packaging/install.sh
@@ -0,0 +1,133 @@
+#!/bin/sh
+# Codync installer — curl -fsSL https://raw.githubusercontent.com/leepokai/Codync/main/packaging/install.sh | sh
+#
+# macOS: the Codync app (the host ships inside it)
+# Linux: codync-host, plus the desktop app when a display is present
+#
+# Options (after `sh -s --`):
+# --host-only only codync-host (headless Macs, servers)
+# --app Linux: also install the desktop app without a display
+# Environment:
+# CODYNC_VERSION a release tag such as v2.2.1 (default: latest)
+# CODYNC_BIN_DIR where binaries go (default: ~/.local/bin, /usr/local/bin as root)
+set -eu
+
+HOST_ONLY=0
+FORCE_APP=0
+for arg in "$@"; do
+ case $arg in
+ --host-only) HOST_ONLY=1 ;;
+ --app) FORCE_APP=1 ;;
+ *) echo "Unknown option: $arg" >&2; exit 2 ;;
+ esac
+done
+
+say() { printf '\033[1m==>\033[0m %s\n' "$*"; }
+die() { printf '\033[31merror:\033[0m %s\n' "$*" >&2; exit 1; }
+
+RELEASES=https://github.com/leepokai/Codync/releases
+VERSION=${CODYNC_VERSION:-latest}
+if [ "$VERSION" = latest ]; then BASE=$RELEASES/latest/download; else BASE=$RELEASES/download/v${VERSION#v}; fi
+
+case $(uname -s) in
+ Darwin) OS=macos ;;
+ Linux) OS=linux ;;
+ *) die "Codync supports macOS and Linux." ;;
+esac
+case $(uname -m) in
+ arm64 | aarch64) ARCH=arm64 ;;
+ x86_64 | amd64) ARCH=x86_64 ;;
+ *) die "Unsupported CPU: $(uname -m) (x86_64 and arm64 only)." ;;
+esac
+
+if [ "$(id -u)" = 0 ]; then BIN_DIR=${CODYNC_BIN_DIR:-/usr/local/bin}; else BIN_DIR=${CODYNC_BIN_DIR:-$HOME/.local/bin}; fi
+TMP=$(mktemp -d)
+trap 'rm -rf "$TMP"' EXIT
+
+# Downloads a release asset into $TMP and checks it against its .sha256.
+fetch() {
+ say "Downloading $1"
+ curl -fL --progress-bar -o "$TMP/$1" "$BASE/$1" || die "download failed: $BASE/$1"
+ curl -fsSL -o "$TMP/$1.sha256" "$BASE/$1.sha256" || die "checksum missing: $BASE/$1.sha256"
+ want=$(cut -d' ' -f1 "$TMP/$1.sha256")
+ if command -v sha256sum >/dev/null; then got=$(sha256sum "$TMP/$1" | cut -d' ' -f1); else got=$(shasum -a 256 "$TMP/$1" | cut -d' ' -f1); fi
+ [ "$want" = "$got" ] || die "checksum mismatch for $1"
+}
+
+# Replaces $2 with $1 by rename, so a running binary is never overwritten in place.
+place() {
+ mkdir -p "$(dirname "$2")"
+ cp "$1" "$2.new" && chmod 755 "$2.new" && mv -f "$2.new" "$2"
+}
+
+install_host() {
+ name=codync-host-$OS-$ARCH
+ fetch "$name.tar.gz"
+ tar xzf "$TMP/$name.tar.gz" -C "$TMP"
+ place "$TMP/$name/codync-host" "$BIN_DIR/codync-host"
+ say "Installed $("$BIN_DIR/codync-host" --version) to $BIN_DIR"
+ restart_service "$BIN_DIR/codync-host"
+}
+
+# Restarts the background host if its service runs the binary at $1.
+restart_service() {
+ if [ $OS = linux ]; then
+ unit=${XDG_CONFIG_HOME:-$HOME/.config}/systemd/user/codync-host.service
+ grep -qF "$1" "$unit" 2>/dev/null && systemctl --user restart codync-host && say "Restarted the codync-host service"
+ else
+ grep -qF "$1" "$HOME/Library/LaunchAgents/com.pokai.codync.host.plist" 2>/dev/null &&
+ launchctl kickstart -k "gui/$(id -u)/com.pokai.codync.host" && say "Restarted the codync-host service"
+ fi
+ return 0
+}
+
+install_mac_app() {
+ fetch codync-macos.dmg
+ mnt=$TMP/mnt
+ hdiutil attach -quiet -nobrowse -readonly -mountpoint "$mnt" "$TMP/codync-macos.dmg"
+ osascript -e 'tell application id "com.pokai.Codync" to quit' >/dev/null 2>&1 || true
+ sudo=""
+ [ -w /Applications ] || sudo=sudo
+ $sudo rm -rf /Applications/Codync.app
+ $sudo ditto "$mnt/Codync.app" /Applications/Codync.app
+ hdiutil detach -quiet "$mnt"
+ mkdir -p "$BIN_DIR" && ln -sf /Applications/Codync.app/Contents/MacOS/codync-host "$BIN_DIR/codync-host"
+ say "Installed Codync.app to /Applications"
+ restart_service /Applications/Codync.app/Contents/MacOS/codync-host
+ open /Applications/Codync.app
+}
+
+install_linux_app() {
+ name=codync-linux-$ARCH
+ fetch "$name.tar.gz"
+ tar xzf "$TMP/$name.tar.gz" -C "$TMP"
+ place "$TMP/$name/bin/codync" "$BIN_DIR/codync"
+ data=${XDG_DATA_HOME:-$HOME/.local/share}
+ [ "$(id -u)" = 0 ] && data=/usr/local/share
+ mkdir -p "$data" && cp -R "$TMP/$name/share/." "$data/"
+ say "Installed the Codync desktop app to $BIN_DIR/codync"
+ if command -v ldd >/dev/null && missing=$(ldd "$BIN_DIR/codync" 2>&1 | grep 'not found'); then
+ echo " It won't start yet: it needs GTK 4, libadwaita and glibc 2.39+ (Ubuntu 24.04 or newer). Missing:"
+ echo "$missing" | sed 's/^[[:space:]]*/ /' | sort -u
+ fi
+}
+
+if [ $OS = macos ] && [ $HOST_ONLY = 0 ]; then
+ install_mac_app
+ echo
+ echo "Codync is open in the menu bar: choose Install host, then Pair iPhone…"
+else
+ install_host
+ if [ $OS = linux ] && [ $HOST_ONLY = 0 ] && { [ $FORCE_APP = 1 ] || [ -n "${WAYLAND_DISPLAY:-}${DISPLAY:-}" ]; }; then
+ install_linux_app
+ fi
+ echo
+ echo "Next:"
+ echo " codync-host install # run in the background (again after upgrading from another path)"
+ echo " codync-host pair # QR code for the iPhone"
+fi
+
+case :$PATH: in
+ *:"$BIN_DIR":*) ;;
+ *) echo; echo "Add $BIN_DIR to your PATH: export PATH=\"$BIN_DIR:\$PATH\"" ;;
+esac