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.

532 B
Raw Blame
import { ProgressBar } from '../../components/Controls'
import './usage.css'

/** A capsule filled to `percent`: the provider's tint below 70%, then amber, red from 90%. */
export function UsageBar({ percent, tint }: { percent: number; tint: string }) {
  const fill = percent >= 90 ? 'var(--danger)' : percent >= 70 ? 'var(--warning)' : tint
  return (
    <ProgressBar
      value={Math.min(1, Math.max(0.02, percent / 100))}
      label={`${Math.round(percent)}% used`}
      fill={fill}
      className="usage-bar"
    />
  )
}