Usage Bridge
nightwatcher3149installsBridge any executable script into Paseo Usage — drop a script that prints JSON to monitor quotas, rolling windows, and balances from any relay, provider, or custom API.
Usage Bridge connects local executable scripts to Paseo's native Usage view so you can monitor quotas, rolling windows, and balances from any custom API, relay, or multi-account pool without writing a dedicated plugin for each provider.
How it works
Usage Bridge scans a configured directory (default ~/.config/paseo-usage-scripts) for executable files and creates a dedicated card title and icon in Paseo Usage for each script. You can customize titles and icons with optional # @name:, # @icon:, or multi-title # @source: comments at the top of a script, choose from 10 built-in icon presets, or place a local .svg icon beside your script. Newly added scripts also appear right away under a fallback source and take on their own card titles after reloading the plugin. Hidden dotfiles, documentation files, .svg icons, and files ending in .disabled or .env are skipped.
When Paseo queries usage, Usage Bridge runs each script with a bounded timeout, validates its JSON output, and turns windows, balances, and details into native Paseo usage cards. One script can return either a single account or an accounts array so one request populates multiple cards. A short in-memory batch cache avoids running the same script twice during multi-account fetches, and an optional fallback keeps the last successful reading with a stale notice when an upstream endpoint fails transiently.
Setup
Requires Paseo 0.16.0 or later with host Usage enabled. No separate cloud account or external package installation is required by the plugin itself; each script uses whatever runtimes and credentials it needs on the daemon host.
Create the scripts folder (default ~/.config/paseo-usage-scripts), drop in one or more executable scripts (chmod +x), and open Settings > Plugins > Usage Bridge (or search for "Usage Bridge settings" in the Command Center) to adjust the folder path, timeout, cache TTL, or test script output immediately. Ready-to-use templates for Bash, Node.js, Python, multi-source gateways, and RoamAI are included in the repository's examples/ folder and documented in the README.
Settings and capabilities
- Configure the scripts directory (supports
~expansion), per-script execution timeout (2 to 19 seconds), and batch cache TTL (0 to 300 seconds) from Settings > Plugins > Usage Bridge. - Enable or disable the bridge, keep cached readings on transient failures, and choose whether failing scripts without a cached snapshot appear as error cards.
- Test all discovered scripts on demand directly inside Settings to view execution latency, parsed account summaries, and stderr messages.
- Customize card titles and icons per script or per account group using 10 built-in icon presets or validated local
.svgfiles. - Automatically sanitize account keys to Paseo's identifier rules, compute complementary used/remaining percentages, and show accounts with a matching
providerfield in per-agent usage popovers.
Data access and limits
Usage Bridge runs on the daemon host with the daemon user's permissions. It reads the first 4 KiB of scripts in the configured folder at startup to parse optional header comments, executes those scripts directly via child processes without a shell, and validates any referenced local .svg icons before staging copies into .custom-icons/ inside the plugin directory. Keep the scripts directory writable only by trusted users, and store API tokens in environment variables or 0600 dotfiles read by your scripts rather than in account keys. The plugin itself makes no network requests, installs no external software, and stores only its host-scoped settings through Paseo's plugin settings API.
Limitations: Usage Bridge provides read-only quota display and script diagnostics; it does not throttle, block, or reroute agent requests. Paseo enforces a 20-second deadline per usage fetch and caches host-wide usage reports for 5 minutes unless refreshed explicitly.
Related plugins
Browse all plugins →Switch provider
@anh-chu
Continue an agent session on another provider and model, compacting large histories with links to a saved transcript.
Model providers
@hulkzzhou1
Manage model endpoints, credentials and selected models for Claude Code, Codex, OpenCode, Pi and OMP.
Antigravity Console
@kel077
Multiple Google accounts with smart auto-routing and fallback, quick quota popover, usage & per-session cost analytics, artifacts & subagent views, question and task cards, and Orchestrator model choices for Paseo's built-in Antigravity provider.
Ferry
@zhjiang22
Move a conversation to another provider and back. Providers that share a session store continue the same session; others get a budgeted handoff, and switching back sends only what was missed.
Context Mode
@omercnet
Provider-aware Context Mode health, savings, and MCP activation for Paseo.
Context Compact
@sbhas2k
Sets the Claude Code auto-compaction threshold (a percent of a token window) for every Claude session Paseo opens, with an optional nudge to save notes before compaction.