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.

344 B
Raw Blame
/** The relay address to store, or null when the typed text already matches the saved one. */
export function relayAddressToSave(typed: string, saved: string | null | undefined): string | null {
  const next = typed.trim().replace(/\/+$/, '')
  const current = (saved ?? '').trim().replace(/\/+$/, '')
  return next === current ? null : next
}