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.

577 B
Raw Blame
import Foundation

public extension HostClient {
    func usage(refresh: Bool = false) async throws -> Usage {
        try await call("usage", ["refresh": refresh])
    }

    /// Whether this computer lists one agent's limits.
    func setUsageShown(_ id: String, shown: Bool) async throws -> Usage {
        struct Body: Encodable { var id: String; var shown: Bool }
        return try await call("setUsageShown", Body(id: id, shown: shown))
    }

    func setUsageOrder(_ ids: [String]) async throws -> Usage {
        try await call("setUsageOrder", ["ids": ids])
    }
}