Features
- Added
magpie quota wait <provider|account>command that waits until the specified provider or account has quota allowance available again, then exits successfully. - Supports
--timeout <duration>to exit after a set time,--quietto suppress status messages, and clear exit codes (0success,1timeout,2invalid name/flag,130interrupted). - Accounts can be identified by user name, or
<provider>/<user>when needed.
Improvements
- Quota wait works independently of a running gateway and reads provider usage directly.
- Switched-off or signed-out accounts are skipped automatically.
- Wait checks repeat automatically, with sensible backoff when usage data can’t be read.
- Status messages are written to stderr, so scripts can use the command cleanly.
Bug Fixes
- Fixed command-line error handling so custom exit codes are honored properly.
Install
Download from usemagpie.ai, or curl -fsSL https://usemagpie.ai/install.sh | sh. An installed magpie updates itself.
- macOS (Apple Silicon):
magpie-darwin-arm64.dmg - macOS (Intel):
magpie-darwin-amd64.dmg - Windows:
magpie-windows-amd64.exe(ARM:magpie-windows-arm64.exe) - Linux:
magpie-linux-amd64/magpie-linux-arm64(needs GTK 3 and WebKitGTK 4.1) - Terminal only:
magpie-cli-<os>-<arch>
Features
- 新增
magpie quota wait <provider|account>命令,该命令会等待指定的提供商或账户重新获得可用配额,然后成功退出。 - 支持
--timeout <duration>在设定时间后退出,--quiet用于抑制状态消息,并提供明确的退出码(0成功,1超时,2无效名称/标志,130中断)。 - 账户可通过用户名标识;必要时可使用
<provider>/<user>格式。
Improvements
- quota wait 独立于正在运行的网关运行,并直接读取提供商用量数据。
- 已关闭或已退出登录的账户会被自动跳过。
- 等待检查会自动重复,并在无法读取用量数据时采用合理的退避策略。
- 状态消息会写入 stderr,因此脚本可以干净地使用该命令。
Bug Fixes
- 修复了命令行错误处理,以便正确处理自定义退出码。
安装
从 usemagpie.ai 下载,或运行 curl -fsSL https://usemagpie.ai/install.sh | sh。已安装的 magpie 会自动更新。