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
/// Which way a remote screen attempt goes, by the computer's Connection choice: TURN is the screen's way through
/// Cloudflare (docs/features/remote-screen.md). The other way gets the next attempt when one fails.
public enum ScreenRoute {
/// Whether attempt number `failedAttempts` asks for TURN. `channelOnRelay`: chat itself reaches the computer
/// through a relay. `hasTurn`: the computer is in an account on the Codync cloud; a computer in no account and a
/// private relay have none.
public static func asksForTurn(channelOnRelay: Bool, route: ConnectionRoute, hasTurn: Bool, failedAttempts: Int) -> Bool {
let later = failedAttempts % 2 == 1
switch route {
case .directOnly: return false
case .cloudflareFirst: return hasTurn ? !later : channelOnRelay
case .automatic: return channelOnRelay || (hasTurn && later)
}
}
}