-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Feature Request: Add Charm Hyper (hyper.charm.land) as a provider #2318
Copy link
Copy link
Open
Labels
P3Low-risk cleanup, docs, polish, ergonomics, or speculative feature.Low-risk cleanup, docs, polish, ergonomics, or speculative feature.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:auth-providerThis issue is about auth, provider routing, model choice, or SecretRef resolution.This issue is about auth, provider routing, model choice, or SecretRef resolution.issue-rating: 🌊 off-meta tidepoolIssue quality rating does not apply to this item.Issue quality rating does not apply to this item.
Description
Activity
Metadata
Metadata
Assignees
Labels
P3Low-risk cleanup, docs, polish, ergonomics, or speculative feature.Low-risk cleanup, docs, polish, ergonomics, or speculative feature.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:auth-providerThis issue is about auth, provider routing, model choice, or SecretRef resolution.This issue is about auth, provider routing, model choice, or SecretRef resolution.issue-rating: 🌊 off-meta tidepoolIssue quality rating does not apply to this item.Issue quality rating does not apply to this item.
Feature Request: Add Charm Hyper (
hyper.charm.land) as a providerSummary
Would love to see CodexBar support Charm Hyper — Charm's coding-optimized inference provider (official provider for the Crush agent). It uses a Hypercredit-based billing model (1 Hypercredit = 5¢) with free monthly grants, daily-refreshing subscriptions, and prepaid bundles that never expire.
The web dashboard shows a reset panel ("Plan / Shred / Next Hypercredit refresh in 13 hours"), which lines up with CodexBar's per-provider reset-countdown feature.
Investigation findings
Sharing what I turned up while looking into feasibility. Not prescribing any particular implementation — just recording the evidence so a maintainer can pick scope.
Endpoints probed (authenticated with
HYPER_API_KEY):GET /v1/modelspricing.input/pricing.output/cache_create/cache_hitGET /v1/credits{"balance": <int>}only — 21 bytes, noreset_at, noplan, nolimitGET /v1/me,/v1/usage,/v1/account,/v1/subscription,/v1/plan,/v1/keyGET /api/*Chat completion response (
POST /v1/chat/completions) carries metadata in two places:usage.remaining.hypercredits(float) andusage.cost.usd/usage.cost.hypercreditsper responsex-ratelimit-limit-day,x-ratelimit-limit-hour,x-ratelimit-remaining-day,x-ratelimit-remaining-hour(request windows, not Hypercredit refresh)Dashboard "Plan / Shred / Next Hypercredit refresh in 13h" panel is server-rendered HTML behind cookie auth, not exposed via any API-key endpoint I could find.
Auth conventions:
HYPER_API_KEYenv var — matches Crush and@charmland/pi-hyper-providerconventionsOperator: Charmbracelet, Inc., Brooklyn NY — first-party operator, not a reseller (relevant to CodexBar's hosted-relay eligibility clause in
docs/provider.md).Reference implementations in the wild:
charmbracelet/crush/internal/agent/hyper/provider.go— Go; calls/v1/creditsfor balance, also extractsremaining.hypercreditsfrom chat response metadata@charmland/pi-hyper-provider(TypeScript) — Pi extension; same/creditsendpoint, plus OAuth + team-name displayExisting CodexBar providers with similar shape
Recorded in case useful as templates — not a recommendation:
docs/deepseek.md)docs/mistral.md)Open questions for the maintainer
References