A Tern terminal plugin that monitors your LLM API quota.
I was going to go get some fries on the pier.
You'd better hurry. Someone's down to the last fry.
The last fry?! How do you know?
I ate it. π
Manage block: one card per provider; usage bars shade continuously green β amber β red.
Status line: one provider at a time as its own π segment group β the name, then one segment per window (5h, 7d, and 30d when present) β rotating through providers every few seconds.
tern plugin install github.com/KinseyD/LastFry(or paste the repo URL in Tern's plugin settings).
Palette commands (group "Last fry"):
| Command | Action |
|---|---|
plugin.last-fry.refresh |
Refresh fries quota now |
plugin.last-fry.manage |
Open the fries manager |
plugin.last-fry.import_omp |
Import providers from omp |
Fastest setup: one-click import from omp β it maps your omp credentials to providers and seals the API keys straight into the system keychain. You can also add providers manually in the manage block (name, type, optional baseUrl, API key).
Keys live in your system keychain; one caveat: a key typed into the form briefly transits the plugin's kv before it is sealed β prefer omp import if that matters to you.
DeepSeek Β· OpenRouter Β· SiliconFlow Β· Kimi Β· Zhipu/Z.ai Β· MiniMax Β· Novita Β· StepFun Β· Sub2API relays
Pay-as-you-go accounts show their balance in "fries"; plan accounts show 5h/7d windows.
- Refresh interval (default 300 s)
- Warn threshold for remaining quota (default 20%)
- Quota bar full scale in fries (default 100)
Tern's daemon can report a stale status in tern plugin list after you toggle this plugin (or any plugin) in Preferences: the catalog may keep saying ready even though the plugin is off, while the statusline segment and the manage block correctly follow the switch. This is a Tern bug in the settings-reload path, not a Last fry one. If the list looks wrong, force a refresh:
tern plugin reload last-frytern plugin link .Edit and save β hot reload applies changes within ~300 ms. See AGENTS.md for architecture and contributing.