Skip to content

Add openrouter_credit_monitor plugin - #601

Open
jphermans wants to merge 2 commits into
agent0ai:mainfrom
jphermans:main
Open

jphermans wants to merge 2 commits into
agent0ai:mainfrom
jphermans:main

Conversation

@jphermans

Copy link
Copy Markdown
Contributor

Plugin Submission

Name: openrouter_credit_monitor
Repository: https://github.com/jphermans/openrouter-credit-monitor
Category: Monitoring / API integration

Description

Displays the current OpenRouter credit balance and API-key usage directly in the Agent Zero WebUI. Features real-time balance monitoring with configurable refresh interval (30s–10min), low-credit and critical-credit alerts, stale-data handling, and secure server-side API calls. Credentials never leave the server; the frontend only polls the plugin's own backend endpoint.

Features

  • Persistent sidebar credit indicator with popover details
  • Warning / Critical threshold states with WebUI notifications
  • Automatic + manual refresh with response caching
  • Optional API-key usage metadata (key usage, limit, remaining)
  • Graceful failure handling (never blocks Agent Zero)

Tags

openrouter, credits, balance, monitoring, api

Checklist

  • plugin.yaml manifest valid
  • Tested against running Agent Zero instance
  • No Agent Zero core modifications
  • Credentials stored server-side, never exposed to browser
  • MIT licensed

Developer added 2 commits October 4, 2026 09:29
- Plugin to monitor OpenRouter credits in Agent Zero WebUI
- Displays balance in sidebar with low/critical alerts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant