DeepSeekBar: what DeepSeek is charging you, right now

DeepSeek's API costs double at peak hours, and nothing in the API tells you which rate you're on. I built a menu bar app that keeps the live rate and your real spend in view.

DeepSeekBar in the macOS menu bar
The whale in the menu bar: today's spend and whether the current rate is cheap.

The problem

DeepSeek prices its API by the clock: peak hours cost exactly double. The API doesn't tell you which rate you're on, and your real spend only lives on the console's usage page. If you run long jobs, timing them matters, and you shouldn't have to open a dashboard to know.

What it does

  • Knows the rate. Peak is 01:00–04:00 and 06:00–10:00 UTC, Monday to Friday, and off-peak is exactly half. The panel draws your day as a timeline in your own time zone and counts down to the next change.
  • Shows real spend. Once connected, it reads DeepSeek's own billed figures: cost per day, request counts, the token split and lifetime spend.
  • Tracks cache hits. Cached input is 50 times cheaper than uncached input, so today's cache-hit rate sits next to the spend.
  • Warns you. An optional notification when the rate flips, so a long job can wait twenty minutes and cost half as much.
The DeepSeekBar panel
Balance, spend today, the peak timeline, live rates and the weekly schedule.

How it's built

It's a single Swift app with no dependencies: no packages and no Xcode project, just swiftc and a handful of files. The whale in the menu bar is traced from the official logo into a SwiftUI path, so it stays sharp at 16 points.

Reading billed figures needs one interactive sign-in, because the usage endpoint sits behind a bot challenge that plain HTTP clients can't pass. After that, requests are made from inside the app's own window, and the token needs renewing every few days. Everything is read-only. There is no telemetry, and it makes no network requests anywhere except DeepSeek.

Get it

brew install --cask https://github.com/andreiteodor97/deepseekbar/raw/main/Casks/DeepSeekBar.rb

Got a task you do every week? Send it to me.

Describe it in a couple of sentences. I'll tell you honestly whether it's worth automating and what I'd build. You don't pay anything unless it saves you time.

Replies in English or Romanian.