macOS · iOS · iPadOS · watchOS

Your AI coding usage
at a glance.

抬手就能看
AI 编程额度

QuotaGlance tells you how much of your AI coding plan is left and exactly when it resets. It works with your Codex and Claude accounts — one of them is enough.

码量(QuotaGlance)随时告诉你 AI 编程额度还剩多少、什么时候重置。支持你的 CodexClaude 账号,只用其中一个也可以。

  • Percentage left, with a live reset countdown
  • 剩余百分比与重置倒计时
  • Three alert thresholds
  • 三级阈值提醒
  • Widgets and watch complications
  • 小组件 / 表盘复杂功能
  • Syncs only to your own iCloud
  • 只同步到你自己的 iCloud

A Mac is optional. Sign in on your iPhone and it reads your quota directly. If you would rather not sign in on iPhone, the Mac app can collect quota and sync it to your iPhone and Apple Watch through your own private iCloud database. Nothing passes through a developer server.

Mac 是可选的。在 iPhone 上登录,它就直接读取你的额度。如果你不想在 iPhone 上登录,也可以由 Mac 版采集,经你自己的 iCloud 私有数据库同步到 iPhone 与 Apple Watch。全程不经过开发者服务器。

QuotaGlance on iPhone: two quota cards for Codex and Claude showing percentage left, a progress bar and a reset countdown
Two agentsCodex and Claude — one of them is enough
两个 AgentCodex 与 Claude,只用其中一个也可以
Four devicesiPhone, iPad, Apple Watch, Mac menu bar
四种终端iPhone、iPad、Apple Watch、Mac 菜单栏
No third-party serverYour data stays in your own private iCloud database
零第三方服务器数据存在你自己的 iCloud 私有数据库

How it works

工作原理

Two ways to get your numbers

两条取数路径

Pick either one. Signing in on your iPhone is the shortest path and needs no Mac at all. Letting a Mac collect for you is the alternative if you would rather not sign in on your phone.

两条选一条就够。在 iPhone 上登录是最短的一条,完全不需要 Mac;如果你不想在手机上登录,就让 Mac 替你采集。

A · Sign in on iPhone

Open Settings in the app and sign in to your Claude or Codex account. From then on this iPhone reads your quota directly from the provider, with no Mac involved. Your Apple Watch and your widgets follow along.

方式 A · 在 iPhone 上登录

在 App 的设置页登录 Claude 或 Codex 账号。此后这台 iPhone 直接向服务商读取额度,全程无需 Mac。Apple Watch 和小组件也会跟着更新。

B · Let a Mac collect

Run the Mac app and it collects quota — through your account, or through a Codex CLI or Claude Code you already have set up. It syncs the readings to your own private iCloud database, where your iPhone and Apple Watch pick them up.

方式 B · 让 Mac 采集

把 Mac 版跑起来,它会采集额度——可以走账号直连,也可以走你本机已经配好的 Codex CLI 或 Claude Code。读数同步到你自己的 iCloud 私有数据库,iPhone 与 Apple Watch 从那里取用。

Infographic of path B: a Mac collects Codex and Claude quota and syncs it to your personal iCloud; iPhone displays it, sends alerts and drives widgets, and pushes to Apple Watch, which can also read iCloud on its own

Path B in detail: how the three apps cooperate when a Mac does the collecting. 方式 B 的细节:由 Mac 采集时,三个端如何协作。 Swipe to see the full image, or 左右滑动查看全图,或 open it full size ↗查看大图 ↗

  1. Signed in on iPhone? You are done. Your phone reads quota on its own every 60 seconds and on every pull-to-refresh. Turning off your Mac changes nothing.
  2. 在 iPhone 上登录了?那就结束了。手机每 60 秒自己读一次,下拉也能手动刷新。关掉 Mac 没有任何影响。
  3. Relying on a Mac instead? It has to be running. Once you quit the Mac app, close the lid or shut down, your phone and watch keep showing the last known reading and keep counting down locally — but no new numbers arrive.
  4. 只靠 Mac 取数?那它必须开着。关掉 Mac App、合上盖子或关机之后,手机和手表会继续显示最后一次已知的数值并按本地时间倒计时,但不会有新数据。
  5. Sharing across devices needs one Apple Account. Readings travel through your own private iCloud database, never a third-party server, so every device has to be signed in to the same Apple Account.
  6. 跨设备共享需要同一个 Apple 账户。读数走的是你自己的 iCloud 私有数据库,不经过任何第三方服务器,所以几台设备必须登录同一个 Apple 账户。
  7. Apple Watch never signs in. It reads your private iCloud database on its own every 5 minutes and accepts fast pushes from a nearby iPhone, showing whichever reading is fresher.
  8. Apple Watch 不登录。它每 5 分钟自己读一次你的 iCloud 私有数据库,同时接收附近 iPhone 的快速推送,谁的读数更新就显示谁。

Features

功能

What you need to know, without opening the app

该知道的,不用打开 App 也知道

Quota left, and the countdown

剩余额度 + 重置倒计时

Two windows — the 5-hour session limit and the weekly limit — each with percentage left, a progress bar, a reset countdown, and how fresh the reading is. Every device shows what remains, never what you have used.

5 小时与每周两个额度窗口,各自显示剩余百分比、进度条、重置倒计时,以及这份读数有多新。三端一律显示剩余,不显示已用。

Three alert thresholds

三级阈值提醒

Heads-up at 30%, important at 15%, urgent at 5% — all adjustable. You also get a note when your weekly limit resets and you can carry on.

轻度 30%、重要 15%、紧急 5%,阈值可调。每周额度重置后也会提醒你「可以继续用了」。

Home Screen and Lock Screen widgets

主屏与锁屏小组件

Small and medium on the Home Screen; circular, inline and rectangular on the Lock Screen. Long-press to switch a widget between Codex and Claude, or add two if you want both.

主屏小号、中号;锁屏圆形、行内、矩形。长按可在 Codex 与 Claude 之间切换,想两个都看就添加两个。

Watch complications

表盘复杂功能

Circular, corner, inline and rectangular. Two ready-made entries — "Claude quota" and "Codex quota" — so you pick one and it works.

圆形、表角、行内、矩形四种尺寸,提供「Claude 额度」和「Codex 额度」两个预配置条目,选中即用。

Two channels to your watch

手表的两条同步通道

A push from your iPhone is almost instant but needs the phone nearby. The watch also reads iCloud on its own every 5 minutes, so it updates even when your phone is not around. Whichever is fresher wins.

iPhone 推送几乎即时,但需要手机在附近;手表自己读 iCloud 每 5 分钟一次,即使 iPhone 不在身边也能更新。谁的数据新用谁的。

Privacy first

隐私优先

The only things that sync are the service name, the percentage left, the reset time and the capture time. Your code, conversations, account names, file paths and sign-in tokens never reach iCloud.

只同步服务名、剩余百分比、重置时间、采集时间。代码、对话内容、账号名称、文件路径和登录 Token 都不会同步到 iCloud。

Devices

各端界面

One set of numbers, four places to see it

一份数据,四个地方看

Up to two cards on the home screen — Codex and Claude. If only one is connected, you see one. The gear at the top right opens alert settings; the bottom row shows iCloud sync status.

首页最多两张卡片(Codex 与 Claude),只连了一个就只有一张。右上角齿轮进入提醒设置,底部一行显示 iCloud 同步状态。

iPhone home screen of the app: quota cards for Codex and Claude
Home · percentage left and reset countdown
首页 · 剩余百分比与重置倒计时
Settings screen: sliders for the heads-up, important and urgent thresholds, and a weekly reset reminder toggle
Settings · three thresholds and the reset reminder
设置 · 三级阈值与重置提醒
Medium and small QuotaGlance widgets on an iPhone Home Screen
Widgets · no need to open the app
小组件 · 不用打开 App
  • The iPhone and iPad app is on the App Store.
  • iPhone / iPad 版已上架 App Store,搜索「码量」也能找到。
  • Sign in under Settings to read quota directly on this iPhone — no Mac needed. Credentials stay in this device's keychain, never in iCloud or a backup.
  • 在设置页登录,这台 iPhone 就能直接读取额度,不需要 Mac。凭据只保存在本机钥匙串,不进 iCloud,也不进备份。
  • Each card shows, for both the 5-hour and weekly limits: percentage left, a progress bar and a reset countdown, with data freshness on the last line.
  • 卡片对 5 小时每周额度各显示:剩余百分比、进度条、重置倒计时,最下面一行是数据新鲜度。
  • It refreshes on launch, on every return to the foreground, every 60 seconds in the background, and on pull to refresh.
  • 刷新时机:App 启动、每次回到前台、后台每 60 秒一次,以及下拉手动刷新
  • Widgets refresh on the system's schedule (roughly every 15 minutes), not in real time. Offline, they keep showing the last value read successfully.
  • 小组件由系统决定刷新时机(约每 15 分钟),不是实时的;离线时继续显示上次成功读到的数值。
  • Alerts need notification and Background App Refresh permission. If either is denied, Settings shows a shortcut straight to iOS Settings.
  • 提醒需要授权通知后台 App 刷新;权限被拒时设置页会出现「去设置」直接跳系统设置。
SettingDefaultNotes
设置项默认值说明
Heads-up alert30% left

Adjustable from 10% to 50%

轻度提醒剩余 30%

可调范围 10%–50%

Important alert15% left

Adjustable from 5% to 30%

重要提醒剩余 15%

可调范围 5%–30%

Urgent alert5% left

Adjustable from 1% to 15%

紧急提醒剩余 5%

可调范围 1%–15%

Weekly reset reminderOn

Tells you when your weekly limit has reset and you can carry on

每周额度重置提醒

每周额度重置后提醒你可以继续用了

Note: all three thresholds and the reset reminder apply to the weekly limit only. The 5-hour limit never sends a notification — it refills quickly enough that alerting on it would just be noise.

注意:三档阈值和重置提醒都只针对每周额度。5 小时额度不会发任何通知——它本来就恢复得很快,逐条提醒只会变成骚扰。

Get started

快速上手

Running in three steps

三步跑通

Step 1 is all you strictly need. Steps 2 and 3 are for putting the number where you will actually see it.

严格来说只有第一步是必须的。第二、三步是把这个数字放到你真正看得见的地方。

1 · Sign in on iPhone

1 · 在 iPhone 上登录

Install the app from the App Store, open Settings and sign in to Claude or Codex. Your quota appears — no Mac required. Set your alert thresholds while you are there.

App Store 安装,打开设置页登录 Claude 或 Codex,额度立刻出现——不需要 Mac。顺手把提醒阈值也设好。

2 · Add widgets and complications

2 · 加小组件和表盘

Install the watch app from the Watch app on your iPhone. Add widgets to your Home or Lock Screen, and put "Claude quota" or "Codex quota" on your watch face.

在 iPhone 的 Watch App 里把码量装到手表;主屏 / 锁屏添加小组件,表盘上添加「Claude 额度」或「Codex 额度」。

3 · Optional: add your Mac

3 · 可选:加上你的 Mac

Install QuotaGlance.app and sign in from the menu bar panel, or point it at a Codex CLI or Claude Code you already use. Keep every device on the same Apple Account so readings sync. Adding it to your login items is recommended.

安装 QuotaGlance.app,在菜单栏面板里登录,或让它接上你已经在用的 Codex CLI / Claude Code。几台设备保持同一个 Apple 账户,读数才能互通。建议把它加进登录项。

Glossary

文案速查

What the words on screen mean

界面上这些字是什么意思

73% left
73% of this quota window remains. Every device shows what is left, never what you have used.
剩余 73%
这个额度窗口还剩 73%。三端一律显示剩余,不显示已用。
Resets in 1 h 42 m
How long until this quota window resets, computed live from your local time.
1 小时 42 分钟后重置
距离额度窗口重置还有多久,由本地时间实时计算。
Probably reset
The reset time has passed, but no new reading has confirmed it yet. Use the tool once and it refreshes.
预计已重置
重置时间已过,但还没收到新读数确认。去用一次对应工具即可刷新。
Reset time unknown
This reading did not carry a reset time.
重置时间未知
这次读数里没带重置时间。
Updated just now / 12 minutes ago
How fresh the reading is — not the reset time. If it is more than an hour old, whatever collects your quota has probably stopped.
刚刚更新 / 12 分钟前更新
数据采集时间的新鲜度,不是重置时间。超过一小时通常说明采集端停了。
Source: account
Read directly using the account you signed in to in the app.
数据源:账号直连
使用你在 App 内登录的账号直接读取。
Source: Codex CLI
Codex quota came from a Codex CLI already signed in on this Mac.
数据源:Codex CLI
Codex 额度来自本机已经登录的 Codex CLI。
Source: status line
Claude quota came from the cache Claude Code's status line just wrote on this Mac.
数据源:StatusLine
Claude 额度来自 Claude Code 状态栏刚刚写入的缓存。
Source: OAuth usage
Claude quota came from the usage endpoint. The credentials are either your in-app sign-in or, on a Mac, Claude Code's local credential file.
数据源:OAuth Usage
Claude 额度来自 OAuth Usage 接口;凭据可能来自 App 内登录,也可能来自本机 Claude Code 凭据文件。
Refresh failed, showing older data
The latest attempt failed, so what you see is the previous reading. It will not pretend to be new.
刷新失败,正在显示旧数据
新一次采集失败,屏幕上是上一次的数值,不会假装是新的。
Synced at 21:14
When the last successful push to iCloud happened.
同步于 21:14
上次成功推送到 iCloud 的时间。
Not synced yet
No sync has ever succeeded.
尚未同步
从没成功同步过。
No data
Nothing has ever been collected or synced for this service. Sign in on this device, or check that a Mac has collected at least once.
暂无数据
这个服务一次都没采集 / 同步成功过。在本机登录,或确认 Mac 已经成功采集过一次。

FAQ

常见问题

When something goes wrong

遇到问题怎么办

Sign-in is stuck on "Waiting for browser authorization…"

Why: Authorization hasn't finished in the browser, or the authorization page never returned to the app.

Fix: Complete the authorization in your browser. It times out after 5 minutes; you can also tap Cancel and retry.

点登录后一直显示「等待浏览器授权…」

原因:浏览器授权还没完成,或授权页面没有成功返回 App。

处理:在浏览器里完成授权;超过 5 分钟会超时,也可以先点「取消」再重试。

Sign-in says a local port is in use

Why: Signing in to Codex needs port 1455 or 1457; signing in to Claude needs port 54545.

Fix: Quit the other QuotaGlance instance, codex login, or whatever else holds the port, then tap Retry.

登录时提示本机端口被占用

原因:Codex 登录需要端口 14551457,Claude 登录需要端口 54545

处理:关闭另一个「码量」实例、codex login 或其它占用端口的程序,再点「重试」。

My sign-in expired, or I'm told I'm not authorized

Why: The credentials QuotaGlance saved have expired or been revoked. On a Mac, the local Claude Code credentials may have expired instead.

Fix: For accounts you signed in to inside QuotaGlance, tap Sign out and sign in again. If you're relying on Claude Code's own credentials, sign in again in Claude Code.

账号登录失效或提示未授权

原因:App 内保存的凭据已过期或被撤销;在 Mac 上也可能是本机 Claude Code 凭据失效。

处理:App 内登录的账号,请先点「退出」再重新登录。如果用的是 Claude Code 自己的凭据,请在 Claude Code 中重新登录。

It says "Account not connected" but my quota still updates

Why: On a Mac, the app is reading through the Codex CLI, Claude's status line, or Claude Code's credential file instead of your own sign-in.

Fix: Nothing is wrong. Tap the matching sign-in button whenever you'd rather connect your account directly.

显示「账号未连接」,但额度仍在更新

原因:在 Mac 上,App 正在通过 Codex CLI、Claude StatusLine 或 Claude Code 凭据文件取数,而不是你自己的登录。

处理:这是正常的。想改用账号直连时,再点对应的登录按钮。

My iPhone or Apple Watch shows "No data"

Why: You haven't signed in on this iPhone, and no Mac has collected anything yet — or your devices aren't all on the same Apple Account.

Fix: Sign in to Claude or Codex in Settings on your iPhone; that alone is enough, with no Mac involved. If you'd rather have a Mac collect it, check that the Mac app shows numbers and that its iCloud row is healthy, then confirm all your devices use the same Apple Account.

iPhone 或 Apple Watch 一直「暂无数据」

原因:这台 iPhone 还没登录,也还没有任何 Mac 采集过数据;或者几台设备不在同一个 Apple 账户下。

处理:在 iPhone 设置页登录 Claude 或 Codex 即可,全程无需 Mac。如果你更想让 Mac 采集,先看 Mac 面板是否有数值、iCloud 行是否正常,再核对各台设备的 Apple 账户是否一致。

My Mac has data but my iPhone doesn't

Why: iCloud sync is failing, or the iCloud container isn't configured.

Fix: Read the red error on the Mac app's iCloud row. You can also just sign in on the iPhone and skip the Mac entirely.

Mac 有数据,iPhone 没有

原因:iCloud 同步失败,或 iCloud 容器没配好。

处理:看 Mac 上 iCloud 那行的红色错误。你也可以直接在 iPhone 上登录,完全跳过 Mac。

Claude is stuck on "Waiting for Claude Code's first report"

Why: On a Mac using the status line, quota only appears after a session completes a model request.

Fix: Send one message in any Claude Code session. Or sign in to your Claude account in the app and skip the status line.

Claude 一直「等待 Claude Code 首次上报」

原因:在 Mac 上走 statusLine 时,额度要等会话完成一次模型请求后才会出现。

处理:去任意 Claude Code 会话发一条消息;或者在 App 内登录 Claude 账号,跳过 statusLine。

Claude is configured but still has no data, and reports a missing built-in component

Why: The app bundle is incomplete and the native helper wasn't packaged correctly.

Fix: Rebuild or install the latest Mac app, then run the one-tap setup again.

Claude 配置好了还是长期没数据,并提示内置组件缺失

原因:App 包不完整,原生 helper 没有正确打包。

处理:重新编译 / 安装最新版 Mac App,再点一次「一键配置」。

Codex reports "codex app-server exited unexpectedly"

Why: The app is on the Codex CLI fallback path, and the CLI isn't signed in.

Fix: Run codex login in a terminal, or just sign in to your ChatGPT account inside the app.

Codex 报「codex app-server 意外退出」

原因:当前走 Codex CLI 回退路径,但 CLI 没有正确登录。

处理:终端执行 codex login,或直接在 App 内登录 ChatGPT 账号。

Codex reports a response timeout

Why: This happens occasionally; the app restarts app-server and retries once on its own.

Fix: Wait for the next round, or tap Refresh now.

Codex 报「等待响应超时」

原因:偶发,App 会自动重启 app-server 重试一次。

处理:等下一轮,或点「立即刷新」。

I keep tapping refresh and get nothing

Why: You've hit the provider's rate limit (429). The app honors the retry interval it's given.

Fix: Wait until the time shown, and don't tap repeatedly.

反复点刷新后拿不到数据

原因:触发了服务接口限流(429),App 会遵守重试间隔。

处理:等到提示的时间后再刷新,不要连续点击。

My Watch data is older than my iPhone's

Why: The Watch reads iCloud on its own only every 5 minutes.

Fix: Open the Watch app once, or tap Retry. It updates faster when your iPhone is nearby.

手表数据比手机旧

原因:手表自己 5 分钟才读一次 iCloud。

处理:打开一次手表 App 或点「重试」;iPhone 在附近时会更快。

I don't get any alerts

Why: Notification permission is off, or you're watching your 5-hour limit.

Fix: Check notification permission in Settings. The 5-hour limit never sends notifications by design — only the weekly limit does.

收不到任何提醒

原因:通知权限没开,或你盯的是 5 小时额度。

处理:在设置页检查通知权限。5 小时额度本来就不发通知,只有每周额度会。

My widget or complication isn't updating

Why: The system decides when to refresh it.

Fix: This is normal — roughly every 15 minutes. Opening the main app prompts a refresh.

小组件 / 表盘不更新

原因:刷新时机由系统决定。

处理:正常现象,约 15 分钟一次;打开主 App 会促使它刷新。

The numbers stopped moving after I quit the Mac app

Why: If you haven't signed in on your iPhone, the Mac is your only collector, and it stopped.

Fix: Sign in on your iPhone so it reads quota on its own, or reopen the Mac app and add it to your login items.

关掉 Mac App 后数值不动了

原因:如果你没在 iPhone 上登录,Mac 就是唯一的采集端,而它停了。

处理:在 iPhone 上登录,让它自己读取额度;或者重新打开 Mac 版并加进登录项。

Is this an official Anthropic or OpenAI app?

No. QuotaGlance is an independent app, not affiliated with, endorsed by, or sponsored by either company. It uses your own sign-in to read usage data for accounts you already have.

这是 Anthropic 或 OpenAI 的官方应用吗?

不是。码量是一款独立开发的应用,与两家公司均无隶属、认可或赞助关系。它使用你自己的登录,读取你本就拥有的账号的用量数据。

Privacy

隐私

Only four numbers ever leave your device

只同步该同步的四个数值

QuotaGlance reads only your usage quota: how much of your session and weekly limits remains, and when they reset. It never reads your prompts, your code, your conversations, or your project names. It has no developer-operated server and contains no third-party analytics, advertising, or crash-reporting SDK.

码量只读取你的用量额度:会话额度与每周额度还剩多少、什么时候重置。它不读取你的提示词、代码、对话内容或项目名称。它没有开发者自有的服务器,也不含任何第三方分析、广告或崩溃统计 SDK。

Synced to your own private iCloud database

  • Service name (Codex / Claude)
  • Percentage left
  • Reset time
  • Capture time

会同步到你自己的 iCloud 私有数据库

  • 服务名(Codex / Claude)
  • 剩余百分比
  • 重置时间
  • 采集时间

Never synced to iCloud

  • Your code
  • Your conversations
  • Project names and file paths
  • Account names
  • Sign-in tokens

不会同步到 iCloud

  • 代码
  • 对话内容
  • 项目名称与文件路径
  • 账号名称
  • 登录 Token

Where your sign-in lives. When you sign in, the credentials stay in that device's own keychain, marked "this device only." They are never written to iCloud, never included in a backup, and never leave the device that obtained them. Tokens are used solely as the authorization header on that provider's own sign-in and usage endpoints — they are never logged, never written to an app cache, never uploaded to iCloud, and never sent to the developer or any third party. The app never uses them to send model requests. On a Mac, if you have not signed in to Claude in the app, it may read ~/.claude/.credentials.json; it does not read Claude Code's keychain item and does not read or rewrite Claude Code's refresh token.

你的登录凭据存在哪里。登录后,凭据保存在这台设备自己的钥匙串里,标记为「仅本机」。它们不会写入 iCloud、不会进入备份,也不会离开获取它们的那台设备。Token 只作为对应服务商登录与用量接口的授权头使用——不写日志、不写业务缓存、不上传 iCloud,也不会发送给开发者或任何第三方;App 不用它发送模型请求。在 Mac 上,如果你没有在 App 内登录 Claude,它才会尝试读取 ~/.claude/.credentials.json;它不会读取 Claude Code 的钥匙串条目,也不会读写 Claude Code 的 refresh token。

Do I need a Mac? A Mac is optional. Sign in on iPhone and it reads your quota directly, with no Mac involved. If you prefer not to sign in on iPhone, the Mac app can collect quota and sync it to your iPhone and Apple Watch through your own private iCloud database.

我需要 Mac 吗?Mac 是可选的。在 iPhone 上登录,它就直接读取你的额度,全程无需 Mac。如果你不想在 iPhone 上登录,也可以由 Mac 版采集,经你自己的 iCloud 私有数据库同步到 iPhone 与 Apple Watch。

Read the full privacy policy →阅读完整隐私政策 →

Put your quota where you can see it

把额度放在抬手可见的地方

Sign in once on your iPhone. That's the whole setup.

在 iPhone 上登录一次,整个配置就结束了。