summarize
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSummarize
Summarize
Fast CLI to summarize URLs, local files, and YouTube links.
一款快速的CLI工具,可总结网页链接、本地文件及YouTube链接。
Quick start
快速开始
bash
summarize "https://example.com" --model google/gemini-3-flash-preview
summarize "/path/to/file.pdf" --model google/gemini-3-flash-preview
summarize "https://youtu.be/dQw4w9WgXcQ" --youtube autobash
summarize "https://example.com" --model google/gemini-3-flash-preview
summarize "/path/to/file.pdf" --model google/gemini-3-flash-preview
summarize "https://youtu.be/dQw4w9WgXcQ" --youtube autoOpenCode Zen (FREE models!)
OpenCode Zen(免费模型!)
Use OpenCode Zen for free summarization with GLM 4.7:
bash
undefined使用OpenCode Zen和GLM 4.7进行免费内容总结:
bash
undefinedSet env vars for OpenCode Zen
为OpenCode Zen设置环境变量
export OPENAI_BASE_URL="https://opencode.ai/zen/v1"
export OPENAI_API_KEY="<your-zen-api-key>" # Get from https://opencode.ai/auth
export OPENAI_BASE_URL="https://opencode.ai/zen/v1"
export OPENAI_API_KEY="<your-zen-api-key>" # 从https://opencode.ai/auth获取
Summarize with free GLM 4.7
使用免费GLM 4.7进行总结
summarize "https://example.com" --model openai/glm-4.7-free
undefinedsummarize "https://example.com" --model openai/glm-4.7-free
undefinedFree models on OpenCode Zen:
OpenCode Zen上的免费模型:
| Model | Model ID |
|---|---|
| GLM 4.7 | |
| Big Pickle | |
| Grok Code Fast 1 | |
| MiniMax M2.1 | |
| GPT 5 Nano | |
| Model | Model ID |
|---|---|
| GLM 4.7 | |
| Big Pickle | |
| Grok Code Fast 1 | |
| MiniMax M2.1 | |
| GPT 5 Nano | |
When using summarize with OpenCode Zen:
使用OpenCode Zen调用summarize时:
bash
OPENAI_BASE_URL="https://opencode.ai/zen/v1" OPENAI_API_KEY="$OPENCODE_ZEN_KEY" summarize "URL" --model openai/glm-4.7-freebash
OPENAI_BASE_URL="https://opencode.ai/zen/v1" OPENAI_API_KEY="$OPENCODE_ZEN_KEY" summarize "URL" --model openai/glm-4.7-freeModel + keys
模型与密钥
Set the API key for your chosen provider:
- OpenAI:
OPENAI_API_KEY - Anthropic:
ANTHROPIC_API_KEY - xAI:
XAI_API_KEY - Google: (aliases:
GEMINI_API_KEY,GOOGLE_GENERATIVE_AI_API_KEY)GOOGLE_API_KEY
Default model is if none is set.
google/gemini-3-flash-preview为你选择的服务商设置API密钥:
- OpenAI:
OPENAI_API_KEY - Anthropic:
ANTHROPIC_API_KEY - xAI:
XAI_API_KEY - Google: (别名:
GEMINI_API_KEY、GOOGLE_GENERATIVE_AI_API_KEY)GOOGLE_API_KEY
若未设置模型,默认使用。
google/gemini-3-flash-previewUseful flags
实用参数
--length short|medium|long|xl|xxl|<chars>--max-output-tokens <count>- (URLs only)
--extract-only - (machine readable)
--json - (fallback extraction)
--firecrawl auto|off|always - (Apify fallback if
--youtube autoset)APIFY_API_TOKEN
- :设置总结内容长度
--length short|medium|long|xl|xxl|<chars> - :设置输出最大token数
--max-output-tokens <count> - (仅适用于网页链接):仅提取内容
--extract-only - :输出机器可读的JSON格式
--json - :使用Firecrawl作为内容提取的备选方案
--firecrawl auto|off|always - :若已设置
--youtube auto,则使用Apify作为YouTube内容提取的备选方案APIFY_API_TOKEN
Config
配置文件
Optional config file:
~/.summarize/config.jsonjson
{ "model": "openai/gpt-5.2" }For OpenCode Zen default:
json
{
"model": "openai/big-pickle",
"baseUrl": "https://opencode.ai/zen/v1"
}Optional services:
- for blocked sites
FIRECRAWL_API_KEY - for YouTube fallback
APIFY_API_TOKEN
可选配置文件路径:
~/.summarize/config.jsonjson
{ "model": "openai/gpt-5.2" }若要默认使用OpenCode Zen:
json
{
"model": "openai/big-pickle",
"baseUrl": "https://opencode.ai/zen/v1"
}可选第三方服务:
- :用于访问被屏蔽的网站
FIRECRAWL_API_KEY - :用于YouTube内容提取的备选方案
APIFY_API_TOKEN