bibi
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseBibiGPT CLI (bibi
)
bibiBibiGPT CLI(bibi
)
bibiSummarize videos, audio, and podcasts from the terminal using the BibiGPT API.
通过BibiGPT API在终端中总结视频、音频和播客内容。
Installation
安装
macOS (Homebrew)
macOS(Homebrew)
bash
brew install --cask jimmylv/bibigpt/bibigptbash
brew install --cask jimmylv/bibigpt/bibigptWindows
Windows
Download the installer from: https://bibigpt.co/download/desktop
is pending review and not yet available.winget install BibiGPT
从以下链接下载安装程序:https://bibigpt.co/download/desktop
正在审核中,暂不可用。winget install BibiGPT
Verify installation
验证安装
bash
bibi --versionbash
bibi --versionAuthentication
认证
After installing, the user must log in via the desktop app at least once. The CLI reads the saved session automatically from the desktop app's settings.
Alternatively, set an API token:
bash
export BIBI_API_TOKEN=<token>On Windows (PowerShell):
powershell
$env:BIBI_API_TOKEN="<token>"安装完成后,用户至少需要通过桌面应用登录一次。CLI会自动从桌面应用的设置中读取已保存的会话。
或者,设置API令牌:
bash
export BIBI_API_TOKEN=<token>在Windows(PowerShell)中:
powershell
$env:BIBI_API_TOKEN="<token>"Commands
命令
Summarize a URL
总结URL
Important: URLs containing or must be quoted to avoid shell glob errors.
?&bash
undefined重要提示:包含或的URL必须加引号,以避免shell通配符错误。
?&bash
undefinedBasic summary (Markdown output to stdout)
基础总结(Markdown格式输出到标准输出)
bibi summarize "<URL>"
bibi summarize "<URL>"
Async mode — recommended for long videos (>30min)
异步模式 — 推荐用于长视频(超过30分钟)
bibi summarize "<URL>" --async
bibi summarize "<URL>" --async
Chapter-by-chapter summary
逐章节总结
bibi summarize "<URL>" --chapter
bibi summarize "<URL>" --chapter
Fetch subtitles/transcript only (no AI summary)
仅获取字幕/转录文本(无AI总结)
bibi summarize "<URL>" --subtitle
bibi summarize "<URL>" --subtitle
Full JSON response
完整JSON响应
bibi summarize "<URL>" --json
bibi summarize "<URL>" --json
Combine flags
组合参数
bibi summarize "<URL>" --subtitle --json
**Supported URL types**: YouTube, Bilibili, podcasts, audio files, and any URL supported by BibiGPT.bibi summarize "<URL>" --subtitle --json
**支持的URL类型**:YouTube、B站、播客、音频文件,以及所有BibiGPT支持的URL。Authentication
认证相关命令
bash
undefinedbash
undefinedCheck current auth status
检查当前认证状态
bibi auth check
bibi auth check
Open browser to log in
打开浏览器登录
bibi auth login
bibi auth login
Show how to set API token
查看API令牌设置方法
bibi auth set-token <TOKEN>
undefinedbibi auth set-token <TOKEN>
undefinedUpdates
更新
bash
undefinedbash
undefinedCheck if a new version is available
检查是否有新版本可用
bibi check-update
bibi check-update
Download and install the latest version
下载并安装最新版本
bibi self-update
undefinedbibi self-update
undefinedOutput Format
输出格式
- Default: Markdown summary text sent to stdout. Progress info goes to stderr.
- --json: Complete API response as pretty-printed JSON to stdout.
This means you can pipe the output:
bash
bibi summarize "<URL>" > summary.md
bibi summarize "<URL>" --json | jq '.summary'- 默认:Markdown格式的总结文本输出到标准输出(stdout),进度信息输出到标准错误(stderr)。
- --json:完整的API响应以格式化的JSON输出到标准输出(stdout)。
这意味着你可以通过管道处理输出:
bash
bibi summarize "<URL>" > summary.md
bibi summarize "<URL>" --json | jq '.summary'Error Handling
错误处理
| Exit Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Error (auth missing, API error, timeout, etc.) |
| HTTP Status | User Action |
|---|---|
| 401 | Token expired — run |
| 402/403 | Quota exceeded — visit https://bibigpt.co/pricing |
| 429 | Rate limited — wait and retry |
| 退出码 | 含义 |
|---|---|
| 0 | 成功 |
| 1 | 错误(缺少认证、API错误、超时等) |
| HTTP状态码 | 用户操作 |
|---|---|
| 401 | 令牌过期 — 运行 |
| 402/403 | 配额用尽 — 访问https://bibigpt.co/pricing |
| 429 | 请求受限 — 等待后重试 |
Usage Tips
使用技巧
- For very long videos, use to avoid HTTP timeout.
--async - Use to get raw subtitles/transcript without AI summarization.
--subtitle - Use when you need structured data (e.g.,
--json,sourceUrl,htmlUrl).detail - The flag provides section-by-section summaries, useful for lectures or tutorials.
--chapter - The CLI does NOT open any GUI window — all output goes to the terminal.
- Run periodically to get new features and bug fixes.
bibi check-update
- 对于超长视频,使用参数避免HTTP超时。
--async - 使用参数获取原始字幕/转录文本,无需AI总结。
--subtitle - 当你需要结构化数据(如、
sourceUrl、htmlUrl)时,使用detail参数。--json - 参数提供逐章节的总结,适合讲座或教程内容。
--chapter - CLI不会打开任何GUI窗口 — 所有输出都在终端中显示。
- 定期运行以获取新功能和修复bug。
bibi check-update