Codync
免費、開源的 1:1 替代方案,取代 Grok Bot 與 Muse。從 iPhone、Mac 或 Linux 桌面將 Claude Code、Codex、Cursor 與 40+ 程式碼代理人作為持續機器人傳訊。群組聊天、主題串…
AI 翻譯
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證macOS menu bar app for claude-swap: see every Claude account's 5h, 7d and Fable quota at a glance, switch with one click, and track token costs.
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗Swapbar shows the 5h, 7d and per-model (Fable) quotas of every cswap account at a glance, switches accounts with one click, and summarizes token usage and cost from Claude Code transcripts.
uv, installing uv too if needed), and adds your accounts one by one: each signs in through claude auth login in the browser, cswap saves the login, and Claude Code switches back to the account it was using.cswap switch. The active account is marked current, and accounts left out of auto-rotation show as paused.⌃⌥S opens Swapbar from any app; ⌃⌥⇧S switches to the account with the most quota left. No Accessibility permission needed.cswap upgrade.5h or 5h · 7d, shown as remaining or used.cswap run sessions and each profile's login) and per model, and a bar splitting input, cache read, cache write and output.Open Settings… from the popover. Preferences are stored in ~/.config/swapbar/settings.json.
brew install --cask afatmustafa/tap/swapbar
The cask installs Swapbar into Applications; brew upgrade --cask swapbar updates it. On first launch the setup assistant installs claude-swap if needed and adds your accounts.
Swapbar.dmg from the latest release and drag Swapbar to Applications.Swapbar looks for cswap at ~/.local/bin/cswap, /opt/homebrew/bin/cswap and /usr/local/bin/cswap. Set CSWAP_BIN to use another path (CLAUDE_BIN and UV_BIN work the same way for claude and uv).
Releases from 0.1.1 on are signed with a Developer ID and notarized by Apple, so Swapbar opens with a double-click. Version 0.1.0 is not: macOS blocks its first launch, and you allow it with Open Anyway under System Settings → Privacy & Security.
To launch at login, turn on Launch at login in Settings.
./scripts/bundle.sh # release build, produces target/Swapbar.app
./scripts/bundle.sh --universal # arm64 + x86_64
./scripts/dmg.sh # target/Swapbar.dmg from the bundle
cp -R target/Swapbar.app /Applications/
Requirements:
runtime_shaders feature, so the Metal toolchain is not needed.| Data | Source |
|---|---|
| Accounts, 5h/7d/Fable quotas | cswap list --json, every 60 seconds. cswap calls the Anthropic usage API itself. That endpoint allows roughly 30 requests per hour per account, so cswap manages the polling cadence. |
| Account switching | cswap switch <n> --json |
| Tokens and cost | ~/.claude/projects/**/*.jsonl, plus CLAUDE_CONFIG_DIR, ~/.claude-* profiles and cswap session directories. Entries are deduplicated by message.id:requestId and rescanned incrementally every 2 minutes. |
| Prices | Built-in table with a models.dev overlay (cached for 24 hours). 1h cache write = 2× input, 5m cache write = 1.25× input. |
Caches live in ~/.config/swapbar/ (usage-cache.json, model-rates.json).
Cost figures are estimates at API list prices, not your subscription bill.
Swapbar does not talk to Anthropic directly. Quotas come from cswap, and usage is read from transcripts on your Mac.
cargo run # click the Swapbar icon in the menu bar
SWAPBAR_OPEN=1 cargo run # open the popover on launch
SWAPBAR_SETTINGS=1 SWAPBAR_PAGE=about cargo run # open settings on a given page
SWAPBAR_DEBUG=1 cargo run # geometry and scan logs
cargo run -- --scan # headless: print the token and cost summary
./scripts/icon.sh # rebuild assets/AppIcon.icns from AppIcon.svg
SWAPBAR_PAGE accepts menubar, accounts, auto and about; anything else opens General.
The popover and settings screenshots use demo accounts and generated transcripts. Usage and quota figures in the header image are illustrative.
src/main.rs: app state, timers, window open/close, menu bar titlesrc/statusbar.rs: NSStatusItem (cocoa), click callback, screen geometrysrc/cswap.rs: bridge to cswap (list, switch, add, remove, alias, swap)src/setup.rs: finding claude/cswap/uv/brew, installing claude-swap, claude auth loginsrc/onboarding.rs: setup assistant windowsrc/i18n.rs: English/Turkish strings (l(), lf!) and cswap time strings in Turkishsrc/dialog.rs: native NSAlert confirmations and text promptssrc/advice.rs: switch suggestion, pace, notification eventssrc/usage.rs: JSONL scanner, cache, period summariessrc/pricing.rs: model pricessrc/assets.rs: embedded SVG icons (AssetSource)src/theme.rs: light/dark appearancesrc/ui.rs: popover UIsrc/settings.rs: preferences model, LaunchAgentsrc/settings_ui.rs: settings window and About pageThe landing page lives in its own repository, swapbar-website.
Icons are Hugeicons stroke-rounded (MIT, in assets/icons/). Account data and switching come from claude-swap.
Made by Mustafa Afat.