Credit Balance for Fish AudioEnglish | 日本語 See how many Fish Audio credits you have left without leaving VS Code. Your balance stays in the status bar and refreshes on its own. InstallThe extension works the same on Windows, macOS and Linux (including Ubuntu). VS Code
You can also install it from the Visual Studio Marketplace page, or from a terminal:
Updates are automatic. VS Code installs new versions from the Marketplace by itself (unless you turned off VSCodiumThe extension is not on Open VSX yet, so install the The easy way (all operating systems):
Install or update with one command. Run the same command again whenever a new version is released; it always fetches the latest one. macOS and Ubuntu (Terminal):
Windows (PowerShell):
To hear about new versions, click Watch → Custom → Releases on the GitHub repository. If
|
| Command | What it does |
|---|---|
| Fish Audio: Set API Key | Saves or replaces your API key |
| Fish Audio: Remove API Key | Deletes the key from VS Code |
| Fish Audio: Refresh Credit Balance | Reads the balance now |
| Fish Audio: Show Credit Details | Shows the details, like clicking the status bar item |
| Fish Audio: Open Billing Page | Opens the Fish Audio API billing page in your browser |
Settings
| Setting | Default | Description |
|---|---|---|
fishAudioCredits.refreshIntervalMinutes |
30 |
Minutes between refreshes, from 5 to 1440 |
fishAudioCredits.warningThresholdPercent |
10 |
Use the warning color below this percentage of your plan total. 0 turns it off, except at zero credits |
Keeping your API key safe
Where the key is stored. The key goes into VS Code's secret storage, which the editor encrypts with your operating system's credential store:
- macOS: Keychain
- Windows: Windows data protection (DPAPI), tied to your Windows account
- Linux: the Secret Service (GNOME Keyring or KWallet)
It is never written to settings.json, so Settings Sync, dotfile backups and shared workspaces do not carry it. Other extensions cannot ask VS Code for it, because each extension only sees its own secrets.
What the extension does with it.
- Sends it only to
https://api.fish.audio, over HTTPS. The address is fixed in the code, not a setting, so a workspace cannot point the key elsewhere. - Refuses to follow redirects, so the key is never sent on to another address.
- Checks a new key with Fish Audio before saving it. A mistyped key never replaces a working one.
- Never writes the key to the log, the status bar or error messages.
- Accepts only a single run of visible characters, so a stray space or line break is caught when you paste.
Good habits.
- Create a separate key just for this extension, and name it so you recognize it (for example
VS Code credits). If you need to cut it off, delete only that key on Fish Audio's API Keys page; your other tools keep working. - Run Fish Audio: Remove API Key on computers you stop using.
- If you think the key leaked, delete it on Fish Audio first, then set a new one.
- Linux: if no keyring is running, VS Code falls back to a weaker built-in encryption and shows a warning about it. Install and unlock GNOME Keyring (
sudo apt install gnome-keyring) or KWallet, then set the key again.
Privacy
The extension calls two Fish Audio endpoints, GET /wallet/self/package and GET /wallet/self/api-credit, with your API key. It sends nothing else, reads no files in your workspace, and collects no telemetry. In remote windows it runs on your own computer, so the key is not copied to the remote machine.
Disclaimer
This is an independent extension. It is not made, endorsed or supported by Fish Audio.
License
MIT. See the LICENSE file included with the extension.