Skip to content

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

602 B
Raw Blame
import React from "react";
import { Text } from "ink";

const STATUS_MAP = {
  running: { label: "● running", color: "green" },
  stopped: { label: "● stopped", color: "red" },
  starting: { label: "◌ starting", color: "yellow" },
  error: { label: "✗ error", color: "red" },
  unknown: { label: "? unknown", color: "gray" },
  ok: { label: "✓ ok", color: "green" },
  warn: { label: "⚠ warn", color: "yellow" },
};

export function StatusBadge({ status = "unknown" }) {
  const s = STATUS_MAP[status] ?? { label: status, color: "gray" };
  return <Text color={s.color}>{s.label}</Text>;
}