LeslieWylie/dsh-gateway-billing0

dsh-gateway-billing

Per-conversation LLM billing display for the DSH web composer, for anyone self-hosting a New API / One API-compatible gateway.

AI Analysis

核心用途是在 DSH 输入框旁实时展示当前对话消耗的资费。适合自建或使用第三方中转网关、需要精确监控 API 账单开支的用户。

Package
dsh-gateway-billing
Version
0.1.0
License
MIT
Last updated
Aug 16, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:LeslieWylie/dsh-gateway-billing

所需配置

本 skill 需要在你自己 profile 的 cordis.patch.yml 中为 gateway-billing 这一条目提供 config

配置项说明示例
pricingUrl你的网关的价格表接口地址,需返回 New API / One API 格式的 {data: [{model_name, quota_type, model_ratio, completion_ratio, model_price}, ...]}https://your-gateway.example.com/api/pricing

不配置 pricingUrl 时,composer dock 会明确提示「未配置」,不会报错,也不会显示误导性的计费数字。