Runic GitHub

Runic / Use

Providers

Where each provider’s numbers come from, in the order Runic tries them.

Strategies run in order · the first to answer wins

OAuth→Web session→CLI→Local logs

Claude, Codex, Gemini, Cursor, Copilot, DeepSeek, Kimi, z.ai, Qwen, Cline, Ollama Cloud and more.

Providers

How Runic learns what each provider has used. This is the summary; the per-provider detail is docs/providers.md and docs/<provider>.md in the repo, which is the source of truth.

Runic tries a provider’s strategies in order and uses the first that answers. The source label shown in the CLI and in Settings → Providers is one of openai-web, web, oauth, api, local, openTelemetry, or a provider CLI label such as codex-cli or claude.

Subscription tools

ProviderStrategies, in orderNotes
CodexWeb dashboard → CLI RPC → CLI PTY /statusToday’s cost comes from ~/.codex/sessions; older days from the relay.
ClaudeOAuth API → web API → CLI PTYSee Claude.
GeminiOAuth via the Gemini CLI’s credentials
CursorBrowser cookies → stored WebKit sessionOn-demand spend shown without a gauge when the plan is unlimited.
Droid / FactoryCookies → stored tokens → local storage → WorkOS
CopilotDevice-flow token → copilot_internal API
AntigravityLocal LSP / HTTP probe
Muse Code (Meta)Local muse CLI /usageAn explicit API mode uses a pay-as-you-go key.
opencodeLocal session logsHistory only, no live gauge.

Keys and balances

ProviderSourceWhat you see
DeepSeek, Kimi, StepFun, OpenRouter, Vercel AIAPI key → balance APIBalance, plus spend derived from readings taken every 20 minutes; a “From logs” estimate where the provider can be routed through a coding tool.
z.ai, MiniMax, QwenAPI key or web session → quota APIQuota windows. Qwen token and coding plans report usage from local coding-tool logs.
ClineAPI key → api.cline.botCredit balance and exact spend today and this month.
Ollama CloudAPI key → ollama.com/api/usageMonthly credits, or session and weekly limits. Undocumented, parsed defensively.
TypeSafeAPI key → /v1/modelsKey health only; the published API reports no usage.
Local LLMRuntime probe (Ollama, LM Studio, vLLM, llama.cpp, Open WebUI)Usage comes from OpenTelemetry GenAI or local logs when configured.

Two regions

China and international are separate providers, not a setting: Kimi, z.ai, MiniMax, Qwen and StepFun each have a CN slot. The tab strip shows one tab per brand and the card stacks a section per configured region, with an “Add China account” or “Add International account” row for the other side.

Credentials

Keys live in your login Keychain. Runic-signed builds are the only binaries that touch it; the CLI and unsigned test builds read environment variables instead. Nothing is sent anywhere except the provider’s own API.

Edit this on the wiki