Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

436 B
Raw Blame
import { createBotUsageEnvironmentAtoms } from "@akeru/client-runtime/state/bot-usage";
import { Atom } from "effect/unstable/reactivity";

import { connectionAtomRuntime } from "../connection/runtime";

// Usage revalidates when the tab becomes visible again, and costs nothing while
// it is hidden.
export const botUsageEnvironment = createBotUsageEnvironmentAtoms(connectionAtomRuntime, {
  focusSignal: Atom.windowFocusSignal,
});