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.
Rust acpagent-client-protocolai-agentsai-assistantclaudeclaude-codecodexcoding-agentscursorgeminigemini-cligrok-bot-alternativeiosiphonelinuxmacosmcpopen-sourcerustself-hosted
fix(host): connect to the cloud out of the box
leepokai4d64b513876c
diff --git a/docs/guides/environments-and-deployment.md b/docs/guides/environments-and-deployment.mdindex 3ed9d49f..8e8264df 100644--- a/docs/guides/environments-and-deployment.md+++ b/docs/guides/environments-and-deployment.md@@ -12,7 +12,7 @@ Reviewed against repository configuration on 2026-09-26. Checked-in configuratio| Cloud Worker / D1 / DO | `cloud/wrangler.toml` | Root production, `dev`, or `local` environment || APNs Worker | `relay/wrangler.toml` | Separate deployment and secrets; see [relay README](../../relay/README.md) |-The host currently has no compiled cloud URL default. Use the Mac's **Reach from anywhere** control or `codync-host cloud --url https://dev-api.codync.dev` to configure it. `codync-host cloud` displays status; `--disable` turns access off. App and host must point at the same intended cloud.+The host's compiled default follows its build profile like the app: debug builds use `https://dev-api.codync.dev`, release builds `https://api.codync.dev`. Override it with the Mac's **Reach from anywhere** control or `codync-host cloud --url <url>`. `codync-host cloud` displays status; `--disable` turns access off. App and host must point at the same intended cloud.## Checked-in readinessdiff --git a/host/src/remote/cloud.rs b/host/src/remote/cloud.rsindex ed68fd0c..02288dbc 100644--- a/host/src/remote/cloud.rs+++ b/host/src/remote/cloud.rs@@ -16,9 +16,15 @@ use std::sync::Mutex;use std::time::Duration;use tokio::sync::watch;-/// The production cloud, once it is deployed. `None`: without `CODYNC_CLOUD_URL` or a-/// URL set with `codync-host cloud --url`, the cloud is off (QR + direct connections only).-pub const DEFAULT_CLOUD_URL: Option<&str> = None;+/// The cloud a fresh host uses, matching the app's environment: debug builds (Xcode Debug)+/// use dev, release builds use main. Unit tests have none, so they never reach a real cloud.+pub const DEFAULT_CLOUD_URL: Option<&str> = if cfg!(test) {+ None+} else if cfg!(debug_assertions) {+ Some("https://dev-api.codync.dev")+} else {+ Some("https://api.codync.dev")+};/// How long one successful state pull keeps an account device allowed.pub const LEASE_MS: i64 = 15 * 60 * 1000;diff --git a/host/tests/routines_e2e.rs b/host/tests/routines_e2e.rsindex fe751bc8..738f35c4 100644--- a/host/tests/routines_e2e.rs+++ b/host/tests/routines_e2e.rs@@ -30,6 +30,7 @@ impl Host {let port = std::net::TcpListener::bind("127.0.0.1:0").unwrap().local_addr().unwrap().port();let child = Command::new(env!("CARGO_BIN_EXE_codync-host")).args(["serve", "--bind", "127.0.0.1", "--port", &port.to_string()])+ .env("CODYNC_CLOUD", "off").env("CODYNC_HOME", &home).stdout(Stdio::null()).stderr(Stdio::null())@@ -53,6 +54,7 @@ impl Host {let port = self.base.rsplit(':').next().unwrap();self.child = Command::new(env!("CARGO_BIN_EXE_codync-host")).args(["serve", "--bind", "127.0.0.1", "--port", port])+ .env("CODYNC_CLOUD", "off").env("CODYNC_HOME", &self.home).stdout(Stdio::null()).stderr(Stdio::null())@@ -400,6 +402,7 @@ async fn only_one_host_can_own_a_data_directory_even_on_another_port() {let host = Host::start().await;let mut other = Command::new(env!("CARGO_BIN_EXE_codync-host")).args(["serve", "--bind", "127.0.0.1", "--port", "0"])+ .env("CODYNC_CLOUD", "off").env("CODYNC_HOME", &host.home).stdout(Stdio::null()).stderr(Stdio::null())diff --git a/host/tests/team_e2e.rs b/host/tests/team_e2e.rsindex 9f890b5a..e3fb685e 100644--- a/host/tests/team_e2e.rs+++ b/host/tests/team_e2e.rs@@ -30,6 +30,7 @@ impl Host {let port = std::net::TcpListener::bind("127.0.0.1:0").unwrap().local_addr().unwrap().port();let child = Command::new(env!("CARGO_BIN_EXE_codync-host")).args(["serve", "--bind", "127.0.0.1", "--port", &port.to_string()])+ .env("CODYNC_CLOUD", "off").env("CODYNC_HOME", &home).stdout(Stdio::null()).stderr(Stdio::null())