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.
import type { UsageProviderKind } from "@akeru/contracts";
import { useAppearancePreferences } from "../settings/appearance/AppearancePreferencesProvider";
/**
* Series and table order. The chart stacks providers from the bottom in this
* order, so it also fixes which band sits on top of the bars.
*/
export const PROVIDER_ORDER: readonly UsageProviderKind[] = [
"codex",
"claude",
"grok",
"kimi",
"opencode",
];
export const PROVIDER_LABEL: Record<UsageProviderKind, string> = {
claude: "Claude",
codex: "Codex",
grok: "Grok",
kimi: "Kimi For Coding",
opencode: "OpenCode",
};
/**
* Claude's brand orange holds in both themes; Codex is neutral and must flip
* with the theme or its bars vanish against the matching background.
*/
export function useProviderColors(): Record<UsageProviderKind, string> {
const { themeAppearance: scheme } = useAppearancePreferences();
return {
claude: "#d97757",
codex: scheme === "dark" ? "#e6e6e6" : "#3c3c43",
grok: "#94a3b8",
kimi: "#60a5fa",
opencode: "#34d399",
};
}