简体中文 繁體中文 English 日本語 Deutsch 한국어 بالعربية TÜRKÇE português คนไทย Français

Ulanzi Studio

 找回密码
 立即注册
查看: 32|回复: 0

New Plugin - Claude Code Usage

[复制链接]

1

主题

0

回帖

10

积分

新手上路

积分
10
发表于 昨天 03:29 | 显示全部楼层 |阅读模式
Hi Ulanzi team,
I built a small open-source plugin for Ulanzi Studio called "Claude Code Usage"
and would love your help getting it published in the marketplace.

What it does

Claude Code (Anthropic's coding agent) has a subscription with two usage limits:
a 5-hour rolling window and a weekly limit. The plugin shows both directly on
your Ulanzi Deck buttons — color-coded (green → yellow → orange → red) with a
"Reset in Xh" countdown — so you always know where you stand without having to
open the app.

How it works

- Two actions: "5-hour Limit" and "Weekly Limit".
- The plugin reads the user's existing Claude Code CLI OAuth token from the
  macOS Keychain (service: "Claude Code-credentials"). No API key required and
  no credentials are stored or transmitted by the plugin itself.
- It makes a minimal API call (1 token of Haiku, ~0.01% of weekly usage per
  day) every 5 minutes per button to read the standard
  "anthropic-ratelimit-unified-*" response headers.
- When the OAuth token expires, the plugin transparently delegates the refresh
  to the official `claude` CLI (no custom auth flow).
- Click the button to force an immediate refresh.

Requirements

- macOS only (the plugin reads from the macOS Keychain).
- Claude Code CLI installed (`brew install claude-code`) and signed in
  (`claude auth login`).
- Ulanzi Studio 3.0.11+.

Links
- Source code: https://github.com/narlei/ulanzideck_claude
- My submission: https://ugc.ulanzistudio.com/com ... e=Claude+Code+Usage
Would you be able to review the submission and let me know if anything needs
to change before it can be published? Happy to make any adjustments you suggest.
Thanks a lot,
Narlei Moreira




Screenshot 2026-05-24 at 07.34.38.png
02-states.png
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|Ulanzi Studio论坛 ( 粤ICP备2024258515号-1 )

GMT+8, 2026-5-26 01:48 , Processed in 0.145533 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表