hermes - 💡(How to fix) Fix Feature Request: Nous Portal credit balance API endpoint for CLI usage monitoring [4 comments, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
NousResearch/hermes-agent#24814Fetched 2026-05-14 03:51:33
View on GitHub
Comments
4
Participants
1
Timeline
9
Reactions
0
Participants
Timeline (top)
commented ×4labeled ×4closed ×1

This issue was discovered during research for integrating Nous credit monitoring into Hermes Agent via Telegram. Community search (GitHub Issues, Reddit r/hermesagent, X/Twitter) shows no existing discussion about this gap.

Thank you for building an amazing platform.

Root Cause

This issue was discovered during research for integrating Nous credit monitoring into Hermes Agent via Telegram. Community search (GitHub Issues, Reddit r/hermesagent, X/Twitter) shows no existing discussion about this gap.

Thank you for building an amazing platform.

Code Example

GET /api/account/credits
Authorization: Bearer <access_token>

Response:
{
  "balance_usd": 42.50,
  "subscription_tier": "Plus",
  "monthly_limit_usd": 50.00,
  "used_this_month_usd": 7.50,
  "usage_history": [
    {"date": "2026-05-13", "cost_usd": 1.20, "model": "qwen3.6-plus"},
    {"date": "2026-05-12", "cost_usd": 3.10, "model": "claude-sonnet-4"}
  ],
  "resets_at": "2026-06-01T00:00:00Z"
}
RAW_BUFFERClick to expand / collapse

🔧 Feature Request: Nous Portal Credit Balance API

Problem

Hermes Agent supports credit balance monitoring for OpenRouter (/credits), Anthropic (/api/oauth/usage), and OpenAI Codex via account_usage.py. However, Nous Portal users have no programmatic way to check their remaining credits or daily usage from the CLI or via automation (cron jobs, Telegram alerts, etc.).

Currently, Nous Portal users must:

  1. Open a browser
  2. Navigate to portal.nousresearch.com/usage
  3. Manually check credit balance

This is a pain point for headless/Telegram workflows where browser access is inconvenient or impossible.

Comparison with Other Providers

ProviderBalance APIHermes Support
OpenRouterGET /credits + GET /key_fetch_openrouter_account_usage()
AnthropicGET /api/oauth/usage_fetch_anthropic_account_usage()
OpenAI CodexGET /wham/usage_fetch_codex_account_usage()
DeepSeekGET /user/balanceCommunity scripts exist
Nous Portal❌ None❌ No fetcher in account_usage.py

Suggested API Design

A simple REST endpoint following the existing /api/ pattern used by /api/oauth/agent-key:

GET /api/account/credits
Authorization: Bearer <access_token>

Response:
{
  "balance_usd": 42.50,
  "subscription_tier": "Plus",
  "monthly_limit_usd": 50.00,
  "used_this_month_usd": 7.50,
  "usage_history": [
    {"date": "2026-05-13", "cost_usd": 1.20, "model": "qwen3.6-plus"},
    {"date": "2026-05-12", "cost_usd": 3.10, "model": "claude-sonnet-4"}
  ],
  "resets_at": "2026-06-01T00:00:00Z"
}

Alternatively, even a minimal endpoint returning just balance_usd and subscription_tier would be a huge improvement.

Impact

  • Every Nous Portal subscriber would benefit
  • Enables cron-based balance alerts (Telegram, Discord, etc.)
  • Enables account_usage.py to add _fetch_nous_account_usage()
  • Aligns Hermes with its "transparent usage monitoring" mission

Context

This issue was discovered during research for integrating Nous credit monitoring into Hermes Agent via Telegram. Community search (GitHub Issues, Reddit r/hermesagent, X/Twitter) shows no existing discussion about this gap.

Thank you for building an amazing platform.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

hermes - 💡(How to fix) Fix Feature Request: Nous Portal credit balance API endpoint for CLI usage monitoring [4 comments, 1 participants]