Skip to content

Parity: spec 046 metering surface (modelPrices, creditBalance, grantCredits) #215

Description

@shadowbrush

hadron-server PR hadron-memory/hadron-server#616 (spec 046, AI-credit billing Phase 0) added a GraphQL surface the CLI should cover per the feature-complete policy (#134):

Queries

  • modelPrice(ref) / modelPrices(provider, model, limit, offset) — authenticated read
  • creditLedgerEntries(orgRef, limit, offset) — org-ADMIN
  • creditBalance(orgRef) — org-ADMIN

Mutations

  • setModelPrice(input) — platform admin; appends an effective-dated rate row (micro-cents per MTok, base-10 integer strings)
  • grantCredits(input) — platform admin only

Suggested shape: hadron billing prices [ls|set], hadron billing ledger <org>, hadron billing balance <org>, hadron billing grant <org> <amount>. All bigint money fields travel as base-10 integer strings of micro-cents (1e-8 USD).

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions