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(host): install more agents with their native installers

leepokaie41e828f85e3
diff --git a/docs/features/marketplace.md b/docs/features/marketplace.md
index 6271e0a3..c67ee638 100644
--- a/docs/features/marketplace.md
+++ b/docs/features/marketplace.md
@@ -9,7 +9,7 @@ The Extensions screen configures capabilities installed on the selected computer
| Connected apps | `host/src/market/composio.rs` | Expose connected Composio apps as connectors |
| Skills | `host/src/market/skills.rs` | Instruction folders containing `SKILL.md`, stored under `~/.codync/skills/<id>`; on for every bot unless a bot turns it off |
-Install runs the CLI's own native installer where it has one (Claude Code, Codex, Cursor, OpenCode…, `Install` in `backends.rs`); CLIs published only on npm install with `codync-host npm install -g <package>`, npm on the computer's own Node or else on Codync's. Many agents' ACP adapters run through `npx` (Claude, Codex, Gemini, Qwen…). On a computer without Node.js, the agent list marks each of them `node: "missing"` (only then is the field there; `added` once Codync's copy is in place) and they aren't available; Extensions shows one *Add Node.js* notice above the agents, each such agent reads *Needs Node.js*, and its setup sheet gets a Node.js step between Install and Sign in. Adding it (`agentSetup {step: "node"}`, a setup terminal running `codync-host node`) downloads the official Node.js of a pinned version (`VERSION` and SHA-256s in `node.rs`) once into `~/.codync/node/<version>`; npm installs with it go to `~/.codync/node/global`. Both folders come last on the agent search path, so the computer's own Node and CLIs always win, and nothing outside `~/.codync` changes. Linux builds of Node need glibc: on musl distros (Alpine) install Node.js yourself.
+Install runs the CLI's own native installer where it has one, on Windows too (Claude Code, Codex, Grok, Qwen, Droid, Qoder, Cursor…, `Install` in `backends.rs`); CLIs published only on npm (Gemini, Cline, Auggie, Kilo…) install with `codync-host npm install -g <package>`, npm on the computer's own Node or else on Codync's. A CLI with its own ACP mode then runs as installed, without Node.js. Refreshing the agents re-reads the PATH a fresh login would get (the login shell's; on Windows the user's and machine's PATH from the registry), so a CLI found by an installer that just ran shows up without restarting the host. Many agents' ACP adapters run through `npx` (Claude, Codex, Gemini, Qwen…). On a computer without Node.js, the agent list marks each of them `node: "missing"` (only then is the field there; `added` once Codync's copy is in place) and they aren't available; Extensions shows one *Add Node.js* notice above the agents, each such agent reads *Needs Node.js*, and its setup sheet gets a Node.js step between Install and Sign in. Adding it (`agentSetup {step: "node"}`, a setup terminal running `codync-host node`) downloads the official Node.js of a pinned version (`VERSION` and SHA-256s in `node.rs`) once into `~/.codync/node/<version>`; npm installs with it go to `~/.codync/node/global`. Both folders come last on the agent search path, so the computer's own Node and CLIs always win, and nothing outside `~/.codync` changes. Linux builds of Node need glibc: on musl distros (Alpine) install Node.js yourself.
The Connectors shelf opens with a short featured list, then pages through the whole MCP Registry (`marketConnectors {search, cursor}` → `{items, nextCursor}`, 60 metadata records per API page; the UI initially shows 12 and reveals another 12 only when *Load more connectors* is pressed). Apps through Composio use the same 12-at-a-time display with *Load more apps*. Searching resets the visible batch; late responses from an older search are ignored. Scrolling never triggers another catalog fetch. Listed: stdio npm/PyPI/OCI/NuGet packages (the registry's runtime and package arguments become inputs) and streamable-HTTP or SSE remotes (URL `{variables}` become inputs). Not listed: MCPB bundles and packages that serve HTTP locally; add those as a custom connector.
diff --git a/host/src/agent/backends.rs b/host/src/agent/backends.rs
index 951dbdf4..8595c003 100644
--- a/host/src/agent/backends.rs
+++ b/host/src/agent/backends.rs
@@ -118,7 +118,10 @@ pub const HARNESSES: &[Harness] = &[
local: Some("{bin} acp"),
registry: Some("cursor"),
setup: "Install Cursor CLI (curl https://cursor.com/install -fsS | bash) and run `cursor-agent login`.",
- install: Some(Install::Script("curl https://cursor.com/install -fsS | bash")),
+ install: Some(Install::Scripts {
+ unix: "curl https://cursor.com/install -fsS | bash",
+ windows: "powershell -NoProfile -ExecutionPolicy Bypass -Command \"irm 'https://cursor.com/install?win32=true' | iex\"",
+ }),
login: "NO_OPEN_BROWSER=1 {bin} login",
signed_in: Some(SignInCheck { args: "status", ok: says_logged_in }),
},
@@ -166,7 +169,10 @@ pub const HARNESSES: &[Harness] = &[
local: Some("{bin} agent stdio"),
registry: Some("grok-build"),
setup: "Install Grok Build (curl -fsSL https://x.ai/cli/install.sh | bash) and run `grok login --device-auth`.",
- install: Some(Install::Npm("@xai-official/grok")),
+ install: Some(Install::Scripts {
+ unix: "curl -fsSL https://x.ai/cli/install.sh | bash",
+ windows: "powershell -NoProfile -ExecutionPolicy Bypass -Command \"irm https://x.ai/cli/install.ps1 | iex\"",
+ }),
login: "{bin} login --device-auth",
signed_in: None,
},
@@ -187,8 +193,11 @@ pub const HARNESSES: &[Harness] = &[
bins: &["copilot"],
local: Some("{bin} --acp --stdio"),
registry: Some("github-copilot-cli"),
- setup: "Install Copilot CLI (npm install -g @github/copilot) and run `copilot login`.",
- install: Some(Install::Npm("@github/copilot")),
+ setup: "Install Copilot CLI (curl -fsSL https://gh.io/copilot-install | bash) and run `copilot login`.",
+ install: Some(Install::Scripts {
+ unix: "curl -fsSL https://gh.io/copilot-install | bash",
+ windows: "winget install --id GitHub.Copilot -e",
+ }),
login: "{bin} login --device-code",
signed_in: None,
},
@@ -198,8 +207,11 @@ pub const HARNESSES: &[Harness] = &[
bins: &["qwen"],
local: Some("{bin} --acp"),
registry: Some("qwen-code"),
- setup: "Install Qwen Code (npm install -g @qwen-code/qwen-code), run `qwen` and type /auth.",
- install: Some(Install::Npm("@qwen-code/qwen-code")),
+ setup: "Install Qwen Code (its standalone installer), run `qwen` and type /auth.",
+ install: Some(Install::Scripts {
+ unix: "curl -fsSL https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen-standalone.sh | bash",
+ windows: "powershell -NoProfile -ExecutionPolicy Bypass -Command \"irm https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen-standalone.ps1 | iex\"",
+ }),
login: "{bin}",
signed_in: None,
},
@@ -223,7 +235,10 @@ pub const HARNESSES: &[Harness] = &[
local: Some("{bin} acp"),
registry: Some("kimi"),
setup: "Install Kimi Code (curl -fsSL https://code.kimi.com/kimi-code/install.sh | bash) and run `kimi login`.",
- install: Some(Install::Script("curl -fsSL https://code.kimi.com/kimi-code/install.sh | bash")),
+ install: Some(Install::Scripts {
+ unix: "curl -fsSL https://code.kimi.com/kimi-code/install.sh | bash",
+ windows: "powershell -NoProfile -ExecutionPolicy Bypass -Command \"irm https://code.kimi.com/kimi-code/install.ps1 | iex\"",
+ }),
login: "{bin} login",
signed_in: None,
},
@@ -234,7 +249,10 @@ pub const HARNESSES: &[Harness] = &[
local: Some("{bin} exec --output-format acp-daemon"),
registry: Some("factory-droid"),
setup: "Install Droid (curl -fsSL https://app.factory.ai/cli | sh) and sign in with `droid`.",
- install: Some(Install::Npm("droid")),
+ install: Some(Install::Scripts {
+ unix: "curl -fsSL https://app.factory.ai/cli | sh",
+ windows: "powershell -NoProfile -ExecutionPolicy Bypass -Command \"irm https://app.factory.ai/cli/windows | iex\"",
+ }),
login: "{bin}",
signed_in: None,
},
@@ -245,7 +263,10 @@ pub const HARNESSES: &[Harness] = &[
local: None,
registry: Some("amp-acp"),
setup: "Install Amp (curl -fsSL https://ampcode.com/install.sh | bash) and run `amp login`.",
- install: Some(Install::Script("curl -fsSL https://ampcode.com/install.sh | bash")),
+ install: Some(Install::Scripts {
+ unix: "curl -fsSL https://ampcode.com/install.sh | bash",
+ windows: "powershell -NoProfile -ExecutionPolicy Bypass -Command \"irm https://ampcode.com/install.ps1 | iex\"",
+ }),
login: "{bin} login",
signed_in: None,
},
@@ -300,7 +321,10 @@ pub const HARNESSES: &[Harness] = &[
local: Some("{bin} acp"),
registry: None,
setup: "Install Kiro CLI (curl -fsSL https://cli.kiro.dev/install | bash) and run `kiro-cli login`.",
- install: Some(Install::Script("curl -fsSL https://cli.kiro.dev/install | bash")),
+ install: Some(Install::Scripts {
+ unix: "curl -fsSL https://cli.kiro.dev/install | bash",
+ windows: "powershell -NoProfile -ExecutionPolicy Bypass -Command \"irm 'https://cli.kiro.dev/install.ps1' | iex\"",
+ }),
login: "{bin} login",
signed_in: None,
},
@@ -311,7 +335,10 @@ pub const HARNESSES: &[Harness] = &[
local: Some("{bin} acp"),
registry: Some("devin"),
setup: "Install the Devin CLI (curl -fsSL https://cli.devin.ai/install.sh | bash) and run `devin auth login`.",
- install: Some(Install::Script("curl -fsSL https://cli.devin.ai/install.sh | bash")),
+ install: Some(Install::Scripts {
+ unix: "curl -fsSL https://cli.devin.ai/install.sh | bash",
+ windows: "powershell -NoProfile -ExecutionPolicy Bypass -Command \"irm https://cli.devin.ai/install.ps1 | iex\"",
+ }),
login: "{bin} auth login",
signed_in: None,
},
@@ -321,8 +348,11 @@ pub const HARNESSES: &[Harness] = &[
bins: &["qodercli"],
local: Some("{bin} --acp"),
registry: Some("qoder"),
- setup: "Install Qoder CLI (npm install -g @qoder-ai/qodercli) and run `qodercli login`.",
- install: Some(Install::Npm("@qoder-ai/qodercli")),
+ setup: "Install Qoder CLI (curl -fsSL https://qoder.com/install | bash) and run `qodercli login`.",
+ install: Some(Install::Scripts {
+ unix: "curl -fsSL https://qoder.com/install | bash",
+ windows: "powershell -NoProfile -ExecutionPolicy Bypass -Command \"irm https://qoder.com/install.ps1 | iex\"",
+ }),
login: "{bin} login",
signed_in: Some(SignInCheck { args: "status -o json", ok: qoder_signed_in }),
},
@@ -355,7 +385,10 @@ pub const HARNESSES: &[Harness] = &[
local: Some("{bin} --acp=true"),
registry: Some("junie"),
setup: "Install Junie (curl -fsSL https://junie.jetbrains.com/install.sh | bash) and sign in with `junie`.",
- install: Some(Install::Script("curl -fsSL https://junie.jetbrains.com/install.sh | bash")),
+ install: Some(Install::Scripts {
+ unix: "curl -fsSL https://junie.jetbrains.com/install.sh | bash",
+ windows: "powershell -NoProfile -ExecutionPolicy Bypass -Command \"iex (irm 'https://junie.jetbrains.com/install.ps1')\"",
+ }),
login: "{bin}",
signed_in: None,
},
@@ -366,7 +399,10 @@ pub const HARNESSES: &[Harness] = &[
local: None,
registry: Some("antigravity-acp"),
setup: "Install the Antigravity CLI (curl -fsSL https://antigravity.google/cli/install.sh | bash) and sign in with `agy`.",
- install: Some(Install::Script("curl -fsSL https://antigravity.google/cli/install.sh | bash")),
+ install: Some(Install::Scripts {
+ unix: "curl -fsSL https://antigravity.google/cli/install.sh | bash",
+ windows: "powershell -NoProfile -ExecutionPolicy Bypass -Command \"irm https://antigravity.google/cli/install.ps1 | iex\"",
+ }),
login: "{bin}",
signed_in: None,
},
@@ -377,7 +413,10 @@ pub const HARNESSES: &[Harness] = &[
local: Some("{bin} acp serve"),
registry: Some("cortex-code"),
setup: "Install Cortex Code (curl -LsS https://ai.snowflake.com/static/cc-scripts/install.sh | sh) and set up a connection with `cortex`.",
- install: Some(Install::Script("curl -LsS https://ai.snowflake.com/static/cc-scripts/install.sh | sh")),
+ install: Some(Install::Scripts {
+ unix: "curl -LsS https://ai.snowflake.com/static/cc-scripts/install.sh | sh",
+ windows: "powershell -NoProfile -ExecutionPolicy Bypass -Command \"irm https://ai.snowflake.com/static/cc-scripts/install.ps1 | iex\"",
+ }),
login: "{bin}",
signed_in: None,
},
@@ -388,7 +427,10 @@ pub const HARNESSES: &[Harness] = &[
local: Some("{bin} acp"),
registry: Some("poolside"),
setup: "Install Poolside (curl -fsSL https://downloads.poolside.ai/pool/install.sh | sh) and run `pool login`.",
- install: Some(Install::Script("curl -fsSL https://downloads.poolside.ai/pool/install.sh | sh")),
+ install: Some(Install::Scripts {
+ unix: "curl -fsSL https://downloads.poolside.ai/pool/install.sh | sh",
+ windows: "powershell -NoProfile -ExecutionPolicy Bypass -Command \"irm https://downloads.poolside.ai/pool/install.ps1 | iex\"",
+ }),
login: "{bin} login",
signed_in: None,
},
@@ -402,40 +444,6 @@ pub fn harness(id: &str) -> Option<&'static Harness> {
static SEARCH_PATH: Mutex<Vec<PathBuf>> = Mutex::new(Vec::new());
-/// Login-shell PATH, via `$SHELL -ilc` with a timeout (nvm/conda can make shells slow).
-/// The shell writes it to a file: a background job started by an rc file can hold a stdout
-/// pipe open long after the shell exits. Windows has no login shell: every process already
-/// gets the user's PATH.
-fn login_shell_path() -> Option<String> {
- if cfg!(windows) {
- return None;
- }
- let shell = std::env::var("SHELL").unwrap_or_else(|_| "/bin/zsh".into());
- let file = std::env::temp_dir().join(format!("codync-path-{}", uuid::Uuid::new_v4()));
- let target = file.to_string_lossy().replace('\'', r"'\''");
- let mut child = std::process::Command::new(shell)
- .args(["-ilc", &format!("printf '%s' \"$PATH\" > '{target}'")])
- .stdin(std::process::Stdio::null())
- .stdout(std::process::Stdio::null())
- .stderr(std::process::Stdio::null())
- .spawn()
- .ok()?;
- let deadline = std::time::Instant::now() + Duration::from_secs(8);
- let exited = loop {
- match child.try_wait() {
- Ok(Some(_)) => break true,
- Ok(None) if std::time::Instant::now() < deadline => std::thread::sleep(Duration::from_millis(50)),
- _ => {
- let _ = child.kill();
- break false;
- }
- }
- };
- let path = std::fs::read_to_string(&file).ok().filter(|p| exited && !p.is_empty());
- let _ = std::fs::remove_file(&file);
- path
-}
-
/// `…/v22.1.0` → `[22, 1, 0]` (unparseable parts count as 0).
fn node_version(dir: &Path) -> Vec<u32> {
dir.file_name()
@@ -493,7 +501,7 @@ pub fn hydrate_path() {
let mut seen = HashSet::new();
let mut path: Vec<PathBuf> = vec![];
let current = std::env::var("PATH").unwrap_or_default();
- let login = login_shell_path().unwrap_or_default();
+ let login = shell::user_path().unwrap_or_default();
for p in std::env::split_paths(&current).chain(std::env::split_paths(&login)).chain(well_known_dirs()) {
if p.as_os_str().is_empty() || !p.is_dir() {
continue;
diff --git a/host/src/shell.rs b/host/src/shell.rs
index 1606dc8a..1ffe03bd 100644
--- a/host/src/shell.rs
+++ b/host/src/shell.rs
@@ -52,6 +52,57 @@ pub fn exec(command: &str) -> Shell {
if cfg!(windows) { line(command) } else { line(&format!("exec {command}")) }
}
+/// The PATH a fresh login would get, for finding CLIs installed after this process started.
+/// Unix: the login shell's, via `$SHELL -ilc` with a timeout (nvm/conda can make shells
+/// slow); the shell writes it to a file, since a background job started by an rc file can hold
+/// a stdout pipe open long after the shell exits.
+#[cfg(unix)]
+pub fn user_path() -> Option<String> {
+ use std::time::{Duration, Instant};
+ let shell = std::env::var("SHELL").unwrap_or_else(|_| "/bin/zsh".into());
+ let file = std::env::temp_dir().join(format!("codync-path-{}", uuid::Uuid::new_v4()));
+ let target = file.to_string_lossy().replace('\'', r"'\''");
+ let mut child = std::process::Command::new(shell)
+ .args(["-ilc", &format!("printf '%s' \"$PATH\" > '{target}'")])
+ .stdin(std::process::Stdio::null())
+ .stdout(std::process::Stdio::null())
+ .stderr(std::process::Stdio::null())
+ .spawn()
+ .ok()?;
+ let deadline = Instant::now() + Duration::from_secs(8);
+ let exited = loop {
+ match child.try_wait() {
+ Ok(Some(_)) => break true,
+ Ok(None) if Instant::now() < deadline => std::thread::sleep(Duration::from_millis(50)),
+ _ => {
+ let _ = child.kill();
+ break false;
+ }
+ }
+ };
+ let path = std::fs::read_to_string(&file).ok().filter(|p| exited && !p.is_empty());
+ let _ = std::fs::remove_file(&file);
+ path
+}
+
+/// Windows: the user's and the machine's PATH from the registry. A running process keeps the
+/// PATH it started with, so a CLI whose installer just added its folder is only seen there.
+#[cfg(windows)]
+pub fn user_path() -> Option<String> {
+ use std::os::windows::process::CommandExt as _;
+ const CREATE_NO_WINDOW: u32 = 0x0800_0000;
+ let read = "[Environment]::GetEnvironmentVariable('Path','User') + ';' + [Environment]::GetEnvironmentVariable('Path','Machine')";
+ let out = std::process::Command::new("powershell")
+ .args(["-NoProfile", "-NonInteractive", "-Command", read])
+ .stdin(std::process::Stdio::null())
+ .stderr(std::process::Stdio::null())
+ .creation_flags(CREATE_NO_WINDOW)
+ .output()
+ .ok()?;
+ let path = String::from_utf8_lossy(&out.stdout).trim().to_owned();
+ (out.status.success() && !path.is_empty()).then_some(path)
+}
+
/// Quotes one word for [`line`].
pub fn quote(s: &str) -> String {
let plain = |c: char| c.is_ascii_alphanumeric() || "-_./=@:+,".contains(c) || (cfg!(windows) && c == '\\');