Skip to content
プロジェクト

adamski93/fuel-gauge-for-orca

GitHubで見る

概要

An Orca plugin and agent skill that watches usage across all 45 Orca agent providers (Claude, Codex, Gemini, Antigravity, Cursor, Kimi, Amp and more) and routes each job to the same tier of model on whichever provider has room.

AI・機械学習

この数値の測り方

計測したスター増加

24時間
0
7日間
履歴を収集中
15日間
履歴を収集中
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

Fuel Gauge for Orca — Route each tier to the provider with room.

Fuel Gauge pairs an Orca plugin with an agent skill. The plugin reads provider allowances and reset times, and shows them in a status bar item and a side panel. When an orchestrating agent assigns a job, the skill helps it find a model at the requested tier on a provider with enough room to finish. Use subscriptions before their allowances reset and save metered APIs for last.

Provider readings flow through the plugin and local snapshot into the routing skill

New in 0.4.0: see your usage in Fuel Gauge

At first, Fuel Gauge kept its status bar item minimal because Orca showed usage itself. Orca's built-in usage display has since stopped showing Antigravity, and it doesn't show every provider Fuel Gauge reads. Fuel Gauge was already reading that usage for the skill, so it now shows it to you too, for every provider it can read, including Antigravity.

Illustration with made-up numbers: the Usage tab with a card and usage bars for each provider, and the Settings tab with the refresh interval and per-provider switches

  • Usage panel. Click Fuel Gauge in the status bar to open a side panel. It lands on Usage: one card per provider with its logo, a bar for each usage window (5-hour, weekly, model pools and so on) that fills to the percent used, and the time until it resets. Balances show as amounts.
  • Settings tab. Set the refresh interval, turn on an optional hover summary, and choose which providers appear where. See Configuration.
  • Simpler install. Orca can now install Fuel Gauge straight from GitHub.

Provider logos are credited in NOTICE.md. Coming from 0.3.0? See Upgrading from 0.3.0.

Adaptive routing

The orchestrator chooses the tier. The skill compares usage windows, recent burn rate and upcoming resets across eligible subscriptions. For example, a Strong job can move from Codex to Claude when the Codex window is nearly spent. If no subscription can carry the job at its tier, the orchestrator presents the options to the owner before downgrading or spending money. The skill's model table is illustrative and should be updated for your account.

Strong job moves from a nearly exhausted Codex window to Claude, with the API held in reserve

The matrix shows four providers as an example. Fuel Gauge knows all 45 agents Orca can launch: it detects which are installed, reads usage wherever the provider exposes it, and lists the rest as installed with no usage data. See Supported providers and docs/providers.md.

Supported providers

Provider How billed What Fuel Gauge can read Status
claude Subscription or API ✓ OAuth windows tested
claude-agent-teams Shared Claude account ✓ Shared Claude windows experimental
codebuddy Free or subscription credits — Installation only experimental
openclaude Selected model backend — Installation only experimental
codex ChatGPT plan or API ✓ ChatGPT windows tested
autohand Plan credits — Installation only experimental
ante Local inference or selected backend — Installation only experimental
trae Free access or selected backend — Installation only experimental
opencode Selected backend (hosted or local) — Installation only experimental
opencode2 Selected backend (hosted or local) — Installation only experimental
mimo-code Token plan or API — Installation only experimental
pi Selected backend (hosted or local) — Installation only experimental
omp Selected backend (hosted or local) — Installation only experimental
prime-agent Inference API or selected backend — Installation only experimental
qoder Plan or credits — Installation only experimental
qoder-cn Plan or credits — Installation only experimental
gemini Google plan or API ~ Google OAuth quota buckets experimental
antigravity Google plan ✓ Model pools tested
aider Selected backend (hosted or local) — Installation only experimental
goose Selected backend (hosted or local) — Installation only experimental
amp Plan or credits ~ Free allowance and individual credit balance experimental
kilo Selected backend (hosted or local) — Installation only experimental
kiro Plan or credits — Installation only experimental
crush Selected backend (hosted or local) — Installation only experimental
aug Plan or credits — Installation only experimental
cline Selected backend (hosted or local) — Installation only experimental
freebuff Free tier — Installation only experimental
codebuff Plan or credits — Installation only experimental
command-code Monthly model credits — Installation only experimental
continue Selected backend (hosted or local) — Installation only experimental
cursor Plan or credits ~ File-backed CLI monthly usage experimental
droid Plan or credits — Installation only experimental
kimi Plan or credits ~ Managed OAuth quota experimental
mistral-vibe Plan or API — Installation only experimental
qwen-code Selected model backend — Installation only experimental
rovo Plan or credits — Installation only experimental
hermes Selected backend (hosted or local) ~ Default-profile Codex experimental
openclaw Selected backend (hosted or local) — Installation only experimental
copilot Plan or credits — Installation only experimental
grok Grok plan or API — Installation only experimental
muse API token usage — Installation only experimental
dsh API balance ✓ DeepSeek balance tested
zcode Coding plan or API ~ Legacy Coding Plan quota experimental
devin Plan or credits — Installation only experimental
jcode Subscription or selected backend — Installation only experimental

Detection and account sources

Install

You'll copy a few commands into a terminal. No coding needed. The easiest place to run them is a terminal inside Orca. Keep Orca open while you do.

1. Check your Orca version

You need Orca 1.4.248 or newer. To check, run:

orca --version

If your terminal can't find orca, see Troubleshooting install.

2. Install it straight from GitHub

Run:

orca plugin install adamski93/fuel-gauge-for-orca

Or, in Orca, go to Settings → Plugins, choose Install plugin and paste the GitHub link, https://github.com/adamski93/fuel-gauge-for-orca. Orca installs the newest release tag (such as v0.4.0).

Either way, nothing is installed until you approve it in the next step.

Prefer a copy on your computer? Download the code, then install from its folder:

git clone https://github.com/adamski93/fuel-gauge-for-orca.git
cd fuel-gauge-for-orca
orca plugin install .

No Git? On the GitHub page, click the green Code button, then Download ZIP, unzip it and run orca plugin install . from the unzipped folder (usually called fuel-gauge-for-orca-main, the one with orca-plugin.json, plugin and skill inside). In Settings → Plugins → Install plugin, the Local folder tab takes the same folder. Keep the folder if you want the optional skill in step 5, which runs from it.

3. Approve it (this is what actually installs it)

Nothing is installed yet. The first run only shows you what the plugin will be allowed to do, followed by a code called a fingerprint. Part of the output looks like this:

local.fuel-gauge 0.4.0 needs approval before it can run.
Approving Fuel Gauge (local.fuel-gauge 0.4.0) grants:
- Runs its own code in a separate Node.js process on the Orca host, with your user account’s access to that machine.
...
Fingerprint: ap1-0123456789abcdef0123456789abcdef

(Installed from GitHub, the name before fuel-gauge differs from local.) This access is called "trusted-worker". It means the plugin runs with the same access to your computer as you have, so only approve code you trust. Read Privacy and limitations to see what it reads and where it connects before you decide.

If you're happy, run the same install command again and add --approve followed by your fingerprint, for example:

orca plugin install adamski93/fuel-gauge-for-orca --approve ap1-0123456789abcdef0123456789abcdef

The code above is only an example and won't work for you. Copy the one Orca printed. The output also ends with the full approval command, ready to copy. In Settings → Plugins, Orca shows the same access and asks you to confirm.

To check that it worked, run orca plugin list. You should see Fuel Gauge marked running, and Fuel Gauge in Orca's status bar.

4. Turn it on, if it's disabled

Skip this if the plugin is already running. If it's disabled, run (with the name orca plugin list shows, if it isn't local.fuel-gauge):

orca plugin enable local.fuel-gauge

This also takes two runs. Copy the fingerprint from this output (don't assume the one from step 3 still works), then run:

orca plugin enable local.fuel-gauge --approve <fingerprint>

Replace <fingerprint>, including the < and >, with the code Orca printed.

5. Optional: add the companion skill

The plugin works without this. The skill helps your AI agent choose a provider that still has room for the next job. These commands are for macOS and Linux, and the skill needs Bash and Python 3. The skill runs from a copy on your computer, so download the code as in step 2 if you installed from GitHub.

In the fuel-gauge-for-orca folder, link the skill into your agent's skills folder. For an agent using the shared skills folder:

mkdir -p ~/.agents/skills
ln -s "$PWD/skill" ~/.agents/skills/fuel-gauge

If your agent uses a different skills folder, use that one in both commands. Claude Code, for example, uses ~/.claude/skills.

This creates a shortcut, not a copy, so don't move or delete the downloaded folder. To see a reading yourself, run ./skill/scripts/read-usage.sh.

Upgrading from 0.3.0

0.3.0 was installed from the plugin folder. That folder no longer holds orca-plugin.json, so install again from the new source:

  1. Remove the old copy, so you don't end up with two Fuel Gauges: orca plugin uninstall local.fuel-gauge (check the name with orca plugin list).
  2. Install from GitHub as in step 2, or run git pull in your downloaded folder and then orca plugin install ..
  3. Approve the new fingerprint, as in step 3.
  4. Open the panel's Settings tab and check your refresh interval. Set it again if it's back to 15 minutes.

Your snapshot, history and ignored-providers files in ~/.local/share/fuel-gauge/ are kept. If you linked the companion skill, keep that downloaded folder where it is.

Moving from the old GitHub name

The repository moved to github.com/adamski93/fuel-gauge-for-orca (the account was renamed from adam93sadler-ux). Orca builds a GitHub-installed plugin's ID from the owner name, so the ID changed from adam93sadler-ux.fuel-gauge to adamski93.fuel-gauge. If you installed from GitHub under the old name, reinstall from the new one:

  1. Check the old copy's exact ID with orca plugin list, then remove it: orca plugin uninstall adam93sadler-ux.fuel-gauge.
  2. Install again: orca plugin install adamski93/fuel-gauge-for-orca, and approve the new fingerprint.

Your snapshot, history and ignored-providers files in ~/.local/share/fuel-gauge/ are kept. Copies installed from a downloaded folder (local.fuel-gauge) are not affected.

Troubleshooting install

  • orca isn't found, or something else opens. Try a terminal inside Orca. For other terminals, register the command in Orca's Settings, under Command line. On Linux the registered command is orca-ide, so type that in place of orca. (On Linux, plain orca may be the GNOME screen reader, a different program.)
  • "is not an installable plugin: unreadable orca-plugin.json", or "Could not download … unreadable orca-plugin.json". You pointed Orca at the wrong place, such as the plugin or skill folder, or a GitHub link to a subfolder. Use adamski93/fuel-gauge-for-orca, the plain GitHub link, or the main downloaded folder (the one with orca-plugin.json in it). Versions before 0.4.0 kept orca-plugin.json inside plugin; for those, run orca plugin install ./plugin.
  • "is not a folder on the Orca host". Your terminal is probably in the wrong place. cd into the downloaded folder (the one containing orca-plugin.json, plugin and skill) and try again. If you ran cd plugin, go back up with cd ...
  • I ran the command, but nothing happened. You've probably only done the first run. "needs approval" is expected. Run it again with --approve and your fingerprint, as in step 3.
  • My fingerprint is rejected. A fingerprint only works for the exact plugin files and access it was made for. Run the command again without --approve, then use the new code.
  • Orca says plugins are turned off (plugin_system_disabled). In Settings → Plugins, click Turn on plugins, then try again.
  • Orca is too old, or orca plugin isn't recognised. Check orca --version. If it's below 1.4.248, update Orca and try again.
  • I see two Fuel Gauges. You have a GitHub copy and a folder copy. Run orca plugin list, then orca plugin uninstall the one you don't want.
  • Clicking Fuel Gauge doesn't open the panel. Check orca plugin list shows it as running. You can also run Fuel Gauge: Open overview from the command palette.
  • A provider is missing from the Usage tab. It only appears once Fuel Gauge has read usage for it. Sign in to that agent, then choose Refresh now. Also check it isn't switched off in Settings or listed in ignored-providers.json.
  • How do I update? Installed from GitHub: run orca plugin update, or the install command again. From a folder: if you used Git, go into the folder and run git pull; if you used the ZIP, download it again and replace your old folder with the new one, keeping the same name and location. Then run orca plugin install . again. If Orca asks for approval, review the access and run it again with the new fingerprint. Expect this when the plugin's files or contributions (such as its panels and commands) have changed.

Configuration

Status bar examples: a recent refresh, a chosen provider's usage, and an inactive gauge

Click Fuel Gauge in the status bar to open its side panel. It has two tabs.

Usage tab

The panel opens here. Each provider gets a card with its logo, and a bar for each usage window it reports: 5-hour, weekly, model pools or anything else. Each bar fills to the percent used and shows the time until it resets. Balances (such as DeepSeek's) show as amounts. New or renamed windows appear on their own. Refresh now checks every provider straight away. The panel follows Orca's light and dark themes.

  • Claude Agent Teams uses your Claude allowance, so it shares Claude's reading and appears on the Claude card.
  • Rate limits. If a provider rate limits Fuel Gauge, its card keeps the last good reading on screen, with its age, while Fuel Gauge backs off. It waits as long as the provider asks (Retry-After), otherwise 15 minutes, doubling up to 1 hour. Orca's own usage display reads the same Claude usage endpoint with the same login, so the two share one allowance of requests. Fuel Gauge makes one Claude call per check and doesn't check early after a restart.

Settings tab

The General card holds:

  • Refresh interval (minutes). A whole number from 1 to 1440, used for every provider. Choose Save interval or press Enter. The default is 15 minutes, and invalid input uses it. Use a shorter interval for heavy sessions and a longer one for light use: during heavy testing, slower checks missed allowances running out and some jobs stopped on usage limits.
  • Show usage summary on hover. Off by default.

Each provider also has its own card with two switches:

  • Show in overview and hover summary. On by default.
  • Show in status bar. Off by default. It adds that provider to the status bar text, for example Antigravity wk 55%.

Installed agents with no usage data are listed at the bottom of the tab. The same settings are in Settings → Plugins → Fuel Gauge:

Setting Default What it does
Refresh interval (minutes) 15 How often every provider is checked (1 to 1440).
Show usage summary on hover Off The one-line hover summary.
Providers hidden from the overview Empty Provider IDs to leave out of the panel and the hover summary, comma-separated, such as codex, deepseek.
Show in status bar Empty Provider IDs to add to the status bar text, comma-separated, such as antigravity, claude.

You can also use Fuel Gauge: Refresh now from the command palette.

Hover summary

When turned on, hovering Fuel Gauge shows a one-line summary with each window labelled (made-up numbers):

Claude 5h 25% · wk 60% | Codex wk 70% | Antigravity wk 55% | DeepSeek $12.34 | Click for full overview

The label comes from the window's length (5h, wk for a week, mo for a month), plus a short name when a provider has several windows of the same length, such as Antigravity's model pools (Gemini wk). Orca's tooltips are plain text, up to 256 characters with no line breaks or images, which is why the full view lives in the panel. If the summary doesn't fit, Fuel Gauge drops each provider's least-used windows first, then uses short names, then shows +N more.

Providers in the status bar

With a provider chosen, the status bar reads something like Fuel Gauge · Antigravity wk 55% · 3m ago. None are chosen by default. Orca limits this text to 64 characters, so Fuel Gauge keeps the most-used windows, then uses short names (such as AG for Antigravity and DS for DeepSeek), then drops the "Fuel Gauge" label, then shows +N for providers that don't fit.

The bar becomes inactive after 1.5 refresh intervals. Its age describes the last snapshot write. Check each provider's card for individual failures.

To stop collecting a provider altogether, create a JSON array at ~/.local/share/fuel-gauge/ignored-providers.json, for example ["codex", "deepseek"]. Ignored providers never appear. Remove an ID to resume collection.

Logos

Provider logos are bundled with the plugin, so nothing is fetched while it runs. Most come from Lobe Icons (MIT). Agents with no openly licensed logo get a lettered tile. The logos are trademarks of their owners and are only used to identify each provider. NOTICE.md lists each source and licence.

Snapshot format

The plugin atomically replaces ~/.local/share/fuel-gauge/latest.json. This fictional snapshot has one configured provider. Percentages measure usage consumed and reset timestamps use UTC.

{
  "updatedAt": "2026-01-01T10:00:00Z",
  "refreshMinutes": 15,
  "providers": {
    "codex": {
      "setUp": true, "ok": true, "lastOkAt": "2026-01-01T10:00:00Z", "error": null,
      "windows": [{"name": "5h", "usedPercent": 23, "resetsAt": "2026-01-01T12:00:00Z", "minutes": 300}]
    }
  }
}

Balance readings include a balances array of currency and total pairs. A failed reading includes an error and the last successful timestamp if known. A rate-limited reading may keep the last good windows or balances, marked "stale": true with "ok": false, so the skill still treats that provider as not reporting. The skill keeps up to 500 history lines in readings.jsonl and tracks quiet-provider notices in provider-state.json. Ignored providers are omitted. The plugin also keeps each provider's last successful time and any rate-limit wait in its own Orca storage.

Privacy and limitations

The plugin uses local logins. Direct authenticated requests go only to the corresponding provider host and reject redirects. Antigravity delegates to the local provider CLI. Clicking the status bar item runs the local orca command to open the panel. Some usage endpoints are unofficial and may change. A missing login, incompatible CLI or changed response can leave a provider without a reading. The skill keeps a local history and tracks providers that stop reporting. Treat snapshots, balances and transcripts as private. See Security.

FAQ

Does the plugin launch jobs? The orchestrating agent makes the routing decision. The plugin collects and shows readings and supports manual refresh.

Can the skill run without the plugin? When a snapshot is absent or older than twice its refresh interval, the reader checks local Codex session logs and Claude limit rejections. Antigravity quota and DeepSeek balance then require an owner-supplied reading.

Contributing and license

See contributing guidelines and the changelog. Released under the MIT License.

関連プロジェクトを探す

読み込み中…