Introduction¶
When building AI agents with DeepSeek Harness (DSH), information about free credits, subscription comparisons, and usage costs is often scattered across various vendor websites and platform dashboards, making it time-consuming to look up. The DSH ecosystem follows a “everything is a plugin” philosophy. Plugins in the community directory have no official affiliation with DeepSeek or High-Flyer.
Plugin Overview¶
dsh-ai-credits is a DSH plugin that provides AI free credit and points aggregation, API pricing tables, subscription comparisons, and per-model local token cost estimation (peak/off-peak pricing / cache hits / fork deduplication / official CSV reconciliation) for agent developers. All data is stored locally only and is never uploaded.
Plugin name: maybe-zero-not-one/dsh-ai-credits
Category: admin-security
Left Sidebar: “Cyber Egg Pickup”¶
After installation, a new section called “Cyber Egg Pickup” appears at the bottom of the DSH left sidebar. Clicking into it reveals six tabs:
- Claim Entry Points: Where you can currently claim AI free credits/points, with official claim links.
- Pricing Overview: Official API pricing from each AI provider, laid out in a table per 1 million tokens with input/output columns side by side, making it easy to pick the cheapest option.
- General Subscriptions: Token / membership / Coding Plan subscriptions from various platforms (Tencent Cloud Token Plan, Alibaba Cloud Token Plan, Volcengine Token Plan & Coding Plan, GLM Coding, Xiaomi MiMo, MiniMax M Plan, Kimi Membership & Kimi Code, as well as Claude Pro/Max/Ultra, Google AI Pro/Ultra, Manus, ChatGPT Go/Plus/Pro, etc.).
- Coding Tool Subscriptions: Plans locked to a specific vendor’s coding software (Tencent WorkBuddy / CodeBuddy, Alibaba Qoder, ByteDance Trae, Cursor, GitHub Copilot, Windsurf, Devin) — not cross-tool coding plans.
- Connectivity Status: Which model routes your current DSH instance has connected, which models are available on each route, whether API keys are configured, and which model is the default for new sessions.
- Usage & Spend: Token consumption per model source. Token-billed routes (DeepSeek official / account) are converted to monetary cost; subscription routes (Trae / Qoder / WorkBuddy / CodeArts) only report token counts and remaining credits without monetary conversion. Filterable by today / last 7 days / last 30 days.
Daily Inspection & Auto-Refresh¶
The plugin performs the following actions daily:
- Entry point check: Makes a real HTTP request to each official entry point on the list, recording “accessible / inaccessible / blocked” along with the last check time.
- Web discovery: Uses the host’s existing web search service to search a few queries (e.g., “free API credits” / “free AI credits”), adding previously unseen pages that look like promotional offers to the “Daily New Finds” section. Candidates are deduplicated (same title / same link), rate-limited per site (1 entry from tutorial sites, 2 from others), and sites like pypi / npm / YouTube that would never have a claim entry are skipped.
- Pricing/subscription page verification: Every 20 hours, the official pages listed in the pricing table and subscription table are requested to check “can this page be opened today.” Only page accessibility is verified; numbers are not scraped — each vendor’s page structure differs (some are fully JS-rendered), and hard scraping easily yields wrong prices. Therefore, the numbers use human-verified snapshots (prices.js / plans.js).
- Auto-schedule: Runs automatically after 9:00 daily (refreshHour). If DSH wasn’t running at that time, it catches up on next startup. Pricing/subscription pages have a separate 20-hour expiry for re-verification, independent of the 9:00 schedule.
- Page refresh: The UI re-reads host data every 60 seconds, so no manual refresh is needed.
Pricing Table¶
The pricing table covers 20 providers and 57 models: DeepSeek, Alibaba Tongyi, Qwen AI Platform, Zhipu, Kimi, MiniMax, Doubao, Baidu Wenxin, Tencent Hunyuan, StepFun, OpenAI, Claude, Gemini, Grok, Mistral, Cohere, Meta Llama (Bedrock), Amazon Nova, NVIDIA Nemotron, and SiliconFlow.
- The table is grouped by “Domestic / International,” and within each region, separated by currency (CNY / USD). Each row is one model: input price, output price, context window, and notes. The green “Lowest” label indicates the cheapest input/output within that group.
- Units are “per 1 million tokens.” Cache pricing, batch pricing, and taxes are listed separately — always refer to the official page opened via the “Verify Price →” link.
- The “Price Snapshot” label at the top shows the date numbers were manually verified; “Last Verified” shows the pricing page accessibility check time. A reminder appears if the snapshot is over 45 days old.
- Providers marked “Aggregated” (OpenAI / Google / xAI / Mistral / Amazon / NVIDIA) have pricing pages that are unfriendly to automated access; their numbers are verified against the OpenRouter directory. Meta Llama uses AWS Bedrock official on-demand pricing. All others are official list prices.
- The button in the pricing column is “Verify Price Now”: it only probes the pricing/subscription pages (does not re-run all 38 claim entry points) and returns in about a minute.
- Pricing data lives in prices.js (PRICE_SNAPSHOT_AT + PRICE_PROVIDERS). To add a provider or change a price, save the file and the plugin hot-reloads.
General Subscriptions & Coding Tool Subscriptions¶
Both tabs share the same card layout, differing only in data: category: 'general' appears under “General Subscriptions” and category: 'coding' under “Coding Tool Subscriptions.”
- Coding Tool Subscriptions only include plans locked to a specific vendor’s coding software (WorkBuddy / CodeBuddy / Qoder / Trae / Cursor / Copilot / Windsurf / Devin); cross-tool coding plans (Volcengine Coding Plan, Kimi Code) go under General Subscriptions.
Data source: aggregator site as primary, local snapshot as fallback
Since v2.4.3, the primary data source for subscription numbers is the aggregator site codingplan.fyi (codingplan.js):
- Endpoints: plans.json / platforms.json / config.json — three static JSON files.
- Scale: 197 plans / 52 platforms → minus 50 delisted = 145 active (104 domestic / 41 international).
- Cache: 6 hours.
- Fallback: If the fetch fails, it falls back to the 65 local snapshots in plans.js, with a note at the top saying “Fetch failed — showing local snapshot.”
- Card badges: Aggregator-sourced entries are marked “Aggregated,” purchase-limited ones are marked “Limited,” and delisted ones are excluded.
Fixed sort order: Domestic — Tencent → Alibaba → ByteDance → Zhipu → Xiaomi → MiniMax → Kimi (top to bottom); International — sorted alphabetically by vendor name. Plans from the same vendor are laid out horizontally in a single vendor block; different vendors stack vertically.
- Each plan gets a card: monthly price, quota on one line, benefits, verification date, and a “Subscribe →” link. Plans that are essentially agent plans get a “Coding Agent” / “General Agent” badge.
- Prices are shown as monthly; annual discounts, per-seat pricing, and taxes are calculated separately. Quota and benefits are subject to the “Subscribe” page.
- Providers marked “Summary” (ChatGPT / Google) have official pages that block automated access; numbers are verified against BenchLM’s coding plans summary. All others are read directly from official sites / docs.
- The top line clearly states which data source is active, the data date, and the aggregator cache duration. If the aggregator is down, an explicit fallback notice is shown.
- To modify the local fallback snapshot, edit plans.js (PLAN_SNAPSHOT_AT + CODING_PLANS). To modify aggregator mapping rules, edit
mapPlanin codingplan.js. Both take effect on hot-reload after saving.
Connectivity Status¶
This tab stores no data — it queries the host’s live state every time:
ctx.llm.listProviders(): How many routes are currently connected (including built-in login ones like TRAE / WorkBuddy / Qoder).ctx.llm.listModels(provider): Which models are currently available on each route; those with an “image” icon support image input.ctx.llm.listConfigurableProviders(): Which settings namespace and profile section this route’s configuration lives under.ctx.settings.describe({ redactSecrets: true }): Only retrieves theapi/baseURL/apiKeyEnvfields; everything else is excluded.ctx.credentials.describe(ref): Whether the key is “configured / where it comes from (env var / credential store / .env) / whether it’s editable.”ctx.get('agentDefaultModel'): Which route’s model is the default for new sessions and what its context window is.
A summary line at the top: number of routes, number of models, keys configured, keys missing, count of subscription / token-billed / estimated routes, and the time of this read.
Two additional lines below: Subscription plans N items (cards highlighted blue…): name · name, and (if estimation is enabled) Subscription · Estimation N items: name equivalent monthly ¥X → worth it.
Each route gets a card: status dot + name + route ID + model count. Below that, a small text line shows key status, protocol, endpoint, and settings namespace. Further below are model names (up to 8 shown inline, the rest collapsed into “and N more,” hover to see full names).
Each route also has a billing label: Pay-as-you-go / Plan · Estimated / Subscription · No conversion. Three buttons on the right allow manual override (see below).
Subscription route cards are highlighted in blue: blue border + a blue vertical bar on the left + light blue background, with a solid “Subscription” badge in the top-right corner (manually selected ones show “Subscription · Manual”). Auto-detected subscription routes are blue by default; routes the detector missed can be toggled to blue by clicking [Subscription]. An extra line at the top shows “Subscription plans N items (cards highlighted blue…): name · name” so you don’t have to scroll down and count manually.
The default route is labeled “Current Default” and highlighted; agentDefaultModel has its own block showing the default model for new sessions.
Routes with missing keys typically can’t read the model list — in that case, the model count field shows “Key missing, models not loaded” rather than “No models reported.”
Routes with built-in login (TRAE / Qoder / WorkBuddy / CodeArts / Claude Code / Codex CLI) have no apiKeyEnv; they display “No key required.”
The top-right button in this tab becomes a “Re-read” button: the host caches the route list for 30 seconds; this button forces a fresh query.
The actual key value is never displayed: credentials.describe() is designed to only return configured / source / writable, and this plugin only calls that — never resolve().
To change connectivity settings, go to “Settings → Models.” This tab only tells you what’s currently connected.
Billing Mode — Manual Override Available¶
The Usage tab classifies routes into three billing modes: Pay-as-you-go (actual cost, converted to monetary amount), Plan · Estimated (an equivalent reference of “what it would cost at official per-token pricing”), and Subscription · No conversion (only reports tokens and credits).
Auto-detection relies on two whitelists in usage.js (TOKEN_BILLED / ESTIMATE_ROUTES). Anything not on the whitelist is treated as “Subscription.” This is safe (won’t estimate using another vendor’s pricing), but it can miss cases: new routes, self-hosted routes, and connector-internal IDs are all absent from the whitelist, so a route that actually charges per-token could be treated as free.
That’s why each route card has manual selection:
Billing Subscription · No conversion Auto-detected via whitelist; override manually if wrong [API Pay-as-you-go][Subscription][Estimated]
Clicking a button changes the mode. Recalculation is immediate, and the Usage tab’s amount categories update accordingly.
Manually overridden routes are labeled “Manual.” If it differs from auto-detection, a note shows “Auto-detected as: [mode].”
If this entry appears in the table (even if only estimation is on), an extra “Auto” button appears — one click clears all manual overrides and reverts to whitelist detection (subscription format / date / promo notes are also cleared).
Stored in $DSH_HOME/ai-credits/billing.json; local only. Delete the file and everything reverts to auto.
When reading this file, UTF-8 BOM is stripped first — on Windows, editing JSON with Notepad / PowerShell often leaves a BOM. Without stripping, JSON.parse throws and the entire table silently reads as empty (this was fixed in 2.4.7).
A billing.json record looks like this (also accepts the pre-2.4.7 shorthand of just a string):
{
"trae": { "mode": "credits", "estimate": true, "monthlyCNY": 99,
"planType": "coding-plan", "subscribedAt": "2026-10-15", "promoNote": "50% off first month" },
"volcengine-live": { "mode": "token" }
}
Field meanings (partial):
mode: token / estimate / credits; omit or set tonullto follow auto-detection.estimate: Enable estimation on a subscription route: calculates an equivalent amount but does not change the “Subscription” identity.monthlyCNY: Your actual monthly payment (in CNY), used to compare against the equivalent monthly cost. If left blank, the reference price from the subscription table is used.planType: Subscription type (agent-plan / coding-plan / token-plan / quota-pool / token-pack / other); determines which tiers the “suggested price” pulls from the subscription table.subscribedAt: Initial subscription date YYYY-MM-DD. For continuous subscriptions, the validity period auto-aligns to the latest period from this date + cycle — no manual update needed each period. Also used to determine if a first-month promo is still active.promoNote: Promo description (e.g., “50% off first month,” “¥40 credit for ¥80 value”); purely informational, does not participate in calculations.termMonths: Number of months per billing cycle (1 for monthly, 3 for quarterly, 12 for annual). Blank defaults to 1. The cycle advances by duration and is also used to prorate the total into an equivalent monthly amount.paidTotal/paidCurrency: Actual total paid per cycle + currency. Equivalent monthly = total ÷ termMonths.basePrice/baseCurrency: Base price for quota-pool subscriptions.quotaPools: Per-model quotas for quota-pool subscriptions, up to 40 entries.planTier: Domestic official tier ID (cn-tiers.js). Selecting this makes the reference price use that tier’s official monthly list price (domestic pricing), taking priority over actual payment / manual entry / subscription table. Since 2.7.5, selecting a tier also auto-aligns to that tier’s billing cycle (monthly/annual).autoRenew: Renewal method.true/omitted = continuous subscription, validity auto-aligns to the period containing today.false= one-time purchase of N months, expiry = first subscription date + N months; past expiry is marked as such.accountPlan/accountSyncedAt: Subscription snapshot read from the account (tier name / validity / sync time). The “Save to Local” button writes this (online → local snapshot, does not modify the online subscription). Monetary amounts are not available from the account; actual payment is still manually entered.gifts: “Gift” records (credit bonus / points bonus / free tokens); one entry per input, up to 60 entries. All channels have this field; it’s bookkeeping only and does not participate in cost conversion.accountEntries: Per-account settings (up to 20 accounts).
“Gift” Bookkeeping¶
All channels (pay-as-you-go / plan / subscription / unconfirmed) have a “Gifts” section on their card:
- Type dropdown in order: Credit bonus (money given, ¥/$) → Points bonus (points given by each vendor, in points) → Free token quota (individual / K thousands / M millions / B billions).
- Enter quantity + note (source / campaign name, optional), click “Log Entry” (or press Enter) to save. Entries are stored in the background billing.json.
- Logged entries are listed individually: type badge / amount / note / date / ✕ delete.
- Bottom summary: N entries logged · Total credit bonus ¥X (USD converted at $1 ≈ ¥7.2) · Total points bonus N points · Total free tokens converted to individual units.
- Bookkeeping only; does not participate in “value for money” conversion — gifts are not subscription fees and should not be mixed into monthly cost comparisons.
Multi-Account Selection¶
When a channel has multiple accounts added (Qoder / WorkBuddy / T…), you can select which account a subscription info entry or gift record should be attributed to.
Usage & Spend¶
The Usage & Spend tab tracks token consumption and costs per route:
- Token usage per model source.
- Token-billed routes (DeepSeek official / account) are converted to monetary cost.
- Subscription routes (Trae / Qoder / WorkBuddy / CodeArts) only report token counts and remaining credits — no monetary conversion.
- Filterable by today / last 7 days / last 30 days.
- Supports fork deduplication, peak/off-peak pricing, cache hits, official CSV reconciliation, and cloud image/video generation counted both per unit and per token (media-ledger.js / media-prices.js).
Installation & Activation¶
Add this plugin via the DSH plugin directory page or the plugin management interface. The plugin requires DSH version >= 0.2.2-rc.1.
Use Cases¶
Ideal for agent developers who need a unified view of free credits, API pricing, subscription comparisons, and usage costs.
Notes¶
- The plugin runs with the current DSH process permissions. Please review the source code and license (MIT) before installing.
- Data is stored locally only and is never uploaded.
- Do not interpret this as an official app store or an official product of DeepSeek / High-Flyer.
Summary¶
dsh-ai-credits provides DSH agent developers with a one-stop view covering free credits, pricing tables, subscription comparisons, and usage costs. Combined with daily auto-inspection, web discovery, pricing page verification, and segmented usage statistics, it helps manage AI resources and costs locally.
Plugin directory: https://www.skillhub.cn/plugins/Maybe-Zero-not-one/dsh-ai-credits
GitHub: https://github.com/Maybe-Zero-not-one/dsh-ai-credits