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
import Foundation
public extension HostClient {
func screenCandidates(session: String) -> AsyncThrowingStream<ScreenCandidate, Error> {
let source = transport.stream(.screenCandidates(session))
return AsyncThrowingStream(bufferingPolicy: .bufferingOldest(ScreenCandidate.maxCount + 2)) { c in
let task = Task {
do {
for try await data in source {
let event = try JSONDecoder().decode(ScreenCandidate.self, from: data)
try event.validate()
if case .dropped = c.yield(event) {
throw ScreenError.candidateOverflow
}
}
c.finish()
} catch { c.finish(throwing: error) }
}
c.onTermination = { _ in task.cancel() }
}
}
func screenCandidate(session: String, candidate: ScreenCandidate) async throws {
try candidate.validate()
struct Body: Encodable { var session: String; var candidate: ScreenCandidate }
let _: Empty = try await call("screenCandidate", Body(session: session, candidate: candidate))
}
}