Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>NewAPI BarNew to Visual Studio Code? Get it now.
NewAPI Bar

NewAPI Bar

Jimmy246

|
1 install
| (0) | Free
New-API balance & usage in your status bar
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

NewAPI Bar

中文 | EN

Display your New-API balance and usage in the VS Code status bar.

status bar preview

Features

  • Status bar carousel — cycles through customizable slides (balance, usage, requests, etc.)
  • Hover tooltip — full breakdown on hover
  • Auto refresh — configurable interval (default 60 min)
  • Click the status bar item to refresh manually

Installation

Install from the VS Code Marketplace (coming soon), or install the .vsix locally:

Extensions → ··· → Install from VSIX

Configuration

Get your credentials: In your New-API instance, go to Personal Settings → Security Settings → System Access Token. The token and your user ID are both shown on that page.

Setting Default Description
newapiStatus.baseUrl — Your New-API instance URL
newapiStatus.token — System access token
newapiStatus.userId — Your user ID
newapiStatus.refreshInterval 60 Data refresh interval (minutes)
newapiStatus.slideInterval 4 Carousel slide interval (seconds)
newapiStatus.slides see below Status bar display templates

Slide templates

Each slide is a string with optional VS Code icons and placeholders:

Placeholder Description
${balance} Remaining balance (e.g. $2.85)
${balance_tokens} Remaining balance in tokens
${today} Today's spend
${today_tokens} Today's spend in tokens
${today_requests} Today's request count
${monthly} This month's spend
${used} Total spent
${total} Total quota (balance + used)
${percent} Balance percentage
${bar} Progress bar ████░░
${total_requests} All-time request count
${rpm} Requests per minute
${tpm} Tokens per minute
${update_time} Last refresh time

Default slides:

"newapiStatus.slides": [
  "$(credit-card) ${today} / ${balance}",
  "$(graph) ${percent} ${bar}",
  "$(history) ${total_requests} reqs  $(zap)${rpm}rpm"
]

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft