Skip to content

Add hosted runtime metering upload sidecar - #60

Open
JaeLeex wants to merge 2 commits into
jl/hosted-cost-metering-20260701from
jl/hosted-metering-upload-20260701
Open

Add hosted runtime metering upload sidecar#60
JaeLeex wants to merge 2 commits into
jl/hosted-cost-metering-20260701from
jl/hosted-metering-upload-20260701

Conversation

@JaeLeex

@JaeLeex JaeLeex commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Tag hosted runtime ledgers with subscription identity (user_id, account_id, plan_id, subscription_id).
  • Upload deduped metering batches to web-auth via scripts/metering_upload.py.
  • Start metering uploader sidecar from scripts/entrypoint.py when NUNCHI_METERING_URL + NUNCHI_METERING_TOKEN are set.

Validation

  • python3 -m pytest tests/test_cost_metering.py tests/test_metering_upload.py tests/test_trade_command.py tests/test_mcp_money_tools.py — 19/19 pass

Stack

Docs

Made with Cursor

JaeLeex and others added 2 commits June 30, 2026 15:17
Co-authored-by: Cursor <cursoragent@cursor.com>
Tag hosted runtime ledgers with subscription identity, upload deduped metering batches to web-auth, and expose quota status for hosted pricing/debugging.

Co-authored-by: Cursor <cursoragent@cursor.com>
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