[GH-ISSUE #312] Feature Suggestion: Optional token metering & paid API key support via neuforge-pay #138

Open
opened 2026-10-18 21:12:06 +00:00 by bsakaguchi · 0 comments
Owner

Originally created by @sophieamoure2026-ui on GitHub (Sep 12, 2026).
Original GitHub issue: https://github.com/open-webui/mcpo/issues/312

Hi @open-webui,

Love the work on open-webui/mcpo! As usage grows across AI agent frameworks, server compute costs can start adding up quickly. We've also seen developers report that their autonomous agents accidentally burn through thousands of dollars in a single session because traditional payment rails lack built-in agent guardrails.

Would you be open to adding an optional usage metering & billing decorator using neuforge-pay? It acts as a proactive Spend Firewall and Merchant of Record for MCP servers. In 3 lines of code, it meters tokens, calculates live LLM COGS, and proactively blocks agent transactions that exceed a strict session budget limit (to prevent surprise bills).

Example Integration:

from neuforge_pay import meter_endpoint

@app.get("/v1/query")
@meter_endpoint(price_charged_usd=0.05, model_name="claude-3-5-sonnet", session_budget_usd=10.00)
async def query_endpoint():
    ...

Happy to submit a clean PR if this aligns with your roadmap!

Originally created by @sophieamoure2026-ui on GitHub (Sep 12, 2026). Original GitHub issue: https://github.com/open-webui/mcpo/issues/312 Hi @open-webui, Love the work on `open-webui/mcpo`! As usage grows across AI agent frameworks, server compute costs can start adding up quickly. We've also seen developers report that their autonomous agents accidentally burn through thousands of dollars in a single session because traditional payment rails lack built-in agent guardrails. Would you be open to adding an optional usage metering & billing decorator using `neuforge-pay`? It acts as a proactive **Spend Firewall** and Merchant of Record for MCP servers. In 3 lines of code, it meters tokens, calculates live LLM COGS, and proactively blocks agent transactions that exceed a strict session budget limit (to prevent surprise bills). Example Integration: ```python from neuforge_pay import meter_endpoint @app.get("/v1/query") @meter_endpoint(price_charged_usd=0.05, model_name="claude-3-5-sonnet", session_budget_usd=10.00) async def query_endpoint(): ... ``` Happy to submit a clean PR if this aligns with your roadmap!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
open-webui/mcpo#138
No description provided.