DeepSeek API balance at a glance — right in your VS Code status bar.
- Status Bar Indicator: Shows your remaining DeepSeek API balance (CNY) in the status bar
- One-Click Refresh: Click the balance indicator or run the
DeepSeek: Refresh Balancecommand - Secure Token Storage: API token stored in the system keychain via VS Code's
SecretStorage - Auto-Refresh: Balance updates every 5 minutes automatically
- Multi-Currency Support: Aggregates balances across all currencies (CNY, USD, etc.)
- Error Handling: Clear visual feedback for invalid tokens, network errors, and missing configuration
# Clone the repository
git clone https://github.com/user/deepseek-bills.git
cd deepseek-bills
# Install dependencies
npm install
# Compile TypeScript
npm run compile
# Press F5 in VS Code to launch the Extension Development Host- Node.js 18+
- VS Code 1.120.0+
npm install
npm run compileThen press F5 in VS Code to start debugging the extension.
npx vsce package
code --install-extension deepseek-bills-0.0.1.vsix- Open the Command Palette (
Ctrl+Shift+P/Cmd+Shift+P) - Run
DeepSeek: Set API Tokenand paste your DeepSeek API key (sk-...) - Your balance appears in the status bar as
🐋 ¥X.XX - Click the status bar item to see a detailed breakdown (total, used, remaining)
- Use
DeepSeek: Refresh Balanceto manually update at any time
The token is stored securely in your system keychain and never written to settings files.
npm testThis compiles, lints, and runs the extension test suite using @vscode/test-cli.
deepseek-bills/
├── assets/ # Extension icon (PNG, SVG)
├── docs/ # Design specs and plans
├── src/
│ ├── extension.ts # Entry point, status bar lifecycle
│ ├── balance.ts # DeepSeek API client
│ ├── token.ts # SecretStorage token manager
│ └── test/
│ └── extension.test.ts
├── .vscode/ # VS Code debug/launch config
├── .vscode-test.mjs # Test runner config
├── .vscodeignore # Extension packaging excludes
├── package.json # Extension manifest
├── tsconfig.json # TypeScript config
├── eslint.config.mjs # ESLint config
└── README.md
Contributions are welcome!
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License — see LICENSE for details.
- Built with the VS Code Extension API
- Balance data from the DeepSeek API
