Pi 编码代理 DeepSeek 平衡扩展
A 类 Pi 编码代理 监视您的扩展名 深层搜索 API账户余额,并在使用DeepSeek提供者时在页脚中自动显示.

特征
- 自动页脚显示: 使用 DeepSeek 模型时显示账户余额
- 多频优先使用美元,从您的账户中回到CNY或其他货币
- 智能缓存: Caches 平衡数据30秒,以避免过多 API 调用
安装
pi install npm:@alexanderfortin/pi-deepseek-usage
或者说
pi install git:github.com/shaftoe/pi-deepseek-usage
或从源进行测试:
git clone https://github.com/shaftoe/pi-deepseek-usage
cd pi-deepseek-usage
pnpm install
pnpm run build
pi -e .
使用量
自动页脚显示
当使用DeepSeek模型时(例如, deepseek-v4-flash, (中文(简体) ), deepseek-v4-pro),扩展自动在页脚中显示您的账户余额:
DeepSeek: $17.35
每个 AI 打开后页脚更新,并显示模型选择更改. 切换出DeepSeek模型时,脚步被清除.
配置
不需要配置 。 自动扩展 :
- 使用30秒的缓存数据来避免过多的API呼叫
- 仅在 DeepSeek 模型活动时显示/更新状态
- 切换到非深搜索模式时清除状态
- 优先使用美元余额,回到第一种可用货币
确保您的 DeepSeek API 密钥配置( 例如通过) DEEPSEEK_API_KEY 环境变量或 Pi 的提供者设置).
API 密码
扩展使用 DeepSeek 平衡端点 : GET https://api.deepseek.com/user/balance
发展
# Run tests
pnpm run test
# Type check + lint
pnpm run check
# Auto-fix lint issues
pnpm run lint:fix
# Watch mode
pnpm run dev
许可证
麻省理工学院