aiti-ark-usage (Volcano Ark plan quota)
Volcano Ark plan quota (aiti-ark-usage)
How much plan is left, without going to look it up.
A zero-UI service extension: it plugs Volcano Ark plan quota into the host's existing quota surfaces. All it does is register an ark-plan adapter in ctx.usageAdapters — the stats-row chip, the session-info "remaining quota" block and the provider-usage overview light up at once.
Two plan products
| Product | Action | Shape |
|---|---|---|
| Coding Plan | GetCodingPlanUsage (control-plane OpenAPI, AK/SK signed) | percentage windows |
| Agent Plan | GetAFPUsage | absolute AFP windows (5h / daily / weekly / monthly) |
product: auto (default) tries Coding first, then falls back to Agent — an account usually subscribes to exactly one, and both chains are read-only.
Window labels are canonicalized to the names the host's three quota UIs already map: 5h → five_hour, 1w → weekly, 1mo → monthly_credits.
Configuration
Volcano AK/SK is required: the models.json API key cannot query plan quota (measured 2026-11-28). The config lives in <configDir>/config.json (0600, atomic replace) and is re-read on every query — key edits apply immediately; only the provider-id list is pinned at startup.
| Field | Meaning | Default |
|---|---|---|
accessKeyId / secretAccessKey | Volcano access keys | — |
region | OpenAPI region (must match the Ark data plane) | cn-beijing |
gatewayHost | Gateway override, restricted to *.volcengineapi.com | official host |
providerIds | pi provider ids to register under; changes need a reload | ark-plan |
product | auto / coding / agent | auto |
Usage
- Display happens in aiti-provider-usage; this extension draws no UI of its own.
- AI help point (
skills/setup): let the AI walk through AK/SK entry, writing the config and verifying registration. - API:
GET/POST /api/extensions/aiti-ark-usage/config(secrets are masked on read, never echoed) andPOST …/testfor a live probe. - Adapters register at startup; the host removes them by ownership ledger on shutdown/reload, so registration is idempotent.