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.

Pairing page: scan first, Google second, no route to choose; Macs reach Cloudflare by default and remember when you turn it off for privacy

leepokai515dee715144
diff --git a/apps/ios/Views/PairingView.swift b/apps/ios/Views/PairingView.swift
index 954f060d..cd3255d4 100644
--- a/apps/ios/Views/PairingView.swift
+++ b/apps/ios/Views/PairingView.swift
@@ -158,6 +158,7 @@ private struct ScanPage: View {
let os: ComputerOS
let paired: () -> Void
@Environment(AppStore.self) private var app
+ @Environment(AccountSession.self) private var account
@Environment(\.accessibilityReduceMotion) private var reduceMotion
@Environment(\.scenePhase) private var scenePhase
@Environment(\.openURL) private var openURL
@@ -205,14 +206,18 @@ private struct ScanPage: View {
.transition(.opacity)
}
+ // The other way in: computers on your Google account show up and ask for access themselves.
+ if account.isConfigured && !account.isSignedIn { GoogleSignInButton() }
+
+ // How it connects is never a choice here: every paired computer gets every route.
VStack(alignment: .leading, spacing: 8) {
- Label("End-to-end encrypted, on Wi-Fi or anywhere else. Your code and chats stay on the computer.",
+ Label("Connects on Wi-Fi, over Tailscale, or from anywhere through Cloudflare, on its own. End-to-end encrypted.",
systemImage: "lock.fill")
if tailscaleOn {
- Label("Tailscale is on, so Codync connects over it directly.", systemImage: "checkmark.circle.fill")
+ Label("Tailscale is on: Codync connects over it directly.", systemImage: "checkmark.circle.fill")
} else {
Button { openURL(Tailscale.downloadURL) } label: {
- Label("Use Tailscale? Codync connects over it directly.", systemImage: "arrow.up.right")
+ Label("Use Tailscale? Direct and faster away from home.", systemImage: "arrow.up.right")
}
.buttonStyle(PressScale())
}
diff --git a/apps/macos/App/HostController.swift b/apps/macos/App/HostController.swift
index e358892c..0be2ef6b 100644
--- a/apps/macos/App/HostController.swift
+++ b/apps/macos/App/HostController.swift
@@ -137,6 +137,33 @@ final class HostController {
refresh()
ssh.connectAll()
watchAutoClaim()
+ watchCloudDefault()
+ }
+
+ /// Cloudflare is on by default, so a Mac without Tailscale is reachable away from home; turning it
+ /// off (privacy: Wi-Fi and Tailscale only) is remembered and never undone behind the user's back.
+ private func watchCloudDefault() {
+ let target = withObservationTracking {
+ cloudDefaultTarget
+ } onChange: { [weak self] in
+ Task { @MainActor in self?.watchCloudDefault() }
+ }
+ guard let target, let client = target.client, !enablingCloud else { return }
+ enablingCloud = true
+ Task {
+ do { _ = try await enableCloud(client, store: target) } catch { accounts.lastError = error.localizedDescription }
+ enablingCloud = false
+ }
+ }
+
+ private var enablingCloud = false
+ private static let cloudTurnedOffKey = "cloudTurnedOff"
+
+ private var cloudDefaultTarget: BotStore? {
+ guard account.cloudURL != nil, let store, store.connection == .online,
+ let status = store.cloud, !status.enabled,
+ !UserDefaults.standard.bool(forKey: Self.cloudTurnedOffKey) else { return nil }
+ return store
}
func refresh() {
@@ -319,6 +346,7 @@ final class HostController {
func setCloud(_ store: BotStore, enabled: Bool) async {
guard let client = store.client else { return }
+ if store.computer.id == self.store?.computer.id { UserDefaults.standard.set(!enabled, forKey: Self.cloudTurnedOffKey) }
do {
_ = enabled ? try await enableCloud(client, store: store) : try await client.setCloud(enabled: false)
} catch {
diff --git a/apps/macos/Views/ComputersView.swift b/apps/macos/Views/ComputersView.swift
index 29a1f366..e201afda 100644
--- a/apps/macos/Views/ComputersView.swift
+++ b/apps/macos/Views/ComputersView.swift
@@ -392,7 +392,7 @@ private struct ManagedComputerCard: View {
}
private var cloudLine: String {
- guard let cloud, cloud.enabled else { return "Off: only devices on the same network reach it." }
+ guard let cloud, cloud.enabled else { return "Off: only Wi-Fi and Tailscale reach it, nothing goes through Cloudflare." }
if let error = cloud.lastError { return error }
return cloud.connected == true ? "Reachable from anywhere through Cloudflare (encrypted)." : "Connecting to Cloudflare…"
}