adamski93/fuel-gauge-for-orca
حول
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.
الذكاء الاصطناعي وتعلّم الآلةالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- جارٍ جمع السجل
- خلال 15 يومًا
- جارٍ جمع السجل
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصل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.
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.
- 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.
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 |
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:
- Remove the old copy, so you don't end up with two Fuel Gauges:
orca plugin uninstall local.fuel-gauge(check the name withorca plugin list). - Install from GitHub as in step 2, or run
git pullin your downloaded folder and thenorca plugin install .. - Approve the new fingerprint, as in step 3.
- 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:
- Check the old copy's exact ID with
orca plugin list, then remove it:orca plugin uninstall adam93sadler-ux.fuel-gauge. - 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
orcaisn'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 isorca-ide, so type that in place oforca. (On Linux, plainorcamay 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
pluginorskillfolder, or a GitHub link to a subfolder. Useadamski93/fuel-gauge-for-orca, the plain GitHub link, or the main downloaded folder (the one withorca-plugin.jsonin it). Versions before 0.4.0 keptorca-plugin.jsoninsideplugin; for those, runorca plugin install ./plugin. - "is not a folder on the Orca host". Your terminal is probably in the wrong place.
cdinto the downloaded folder (the one containingorca-plugin.json,pluginandskill) and try again. If you rancd plugin, go back up withcd ... - I ran the command, but nothing happened. You've probably only done the first run. "needs approval" is expected. Run it again with
--approveand 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 pluginisn't recognised. Checkorca --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, thenorca plugin uninstallthe one you don't want. - Clicking Fuel Gauge doesn't open the panel. Check
orca plugin listshows it asrunning. 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 rungit 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 runorca 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
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.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…