CLI tool that summarizes text or articles at a URL using LLM. Supports Anthropic (Claude), OpenAI (GPT), Google (Gemini), and local Ollama models.
uv tool install git+https://github.com/realpacific/summarizerRun the interactive wizard to choose a provider, model, and API key:
summarizer init
#? Choose a provider: Anthropic (Claude)
#? Choose a model: claude-haiku-4-5
#? Enter your Anthropic (Claude) API key: ****************Re-run it anytime to switch providers or models.
# Summarize a URL
summarizer https://prashantbarahi.com.np/blog/your-readme-md-is-obsolete
# Summarize inline text
summarizer "some text to summarize"
# Summarize from stdin
cat file.txt | summarizer
# Override the model for one run
summarizer --model claude-haiku-4-5 https://prashantbarahi.com.np/blog/your-readme-md-is-obsolete
# Summarize then enter a follow-up chat
summarizer --ask https://prashantbarahi.com.np/blog/your-readme-md-is-obsolete
# For dynamic pages or paywalled content, copy to clipboard and pipe:
pbpaste | summarizerPair it with realpacific/readthis to turn any summary into on-demand audio.
Install realpacific/readthis:
uv tool install --python 3.12 git+https://github.com/realpacific/readthisPipe any summary directly to it:
# Summarize a URL and read it aloud
summarizer https://prashantbarahi.com.np/blog/your-readme-md-is-obsolete | readthis
# For dynamic pages or paywalled content, copy to clipboard and pipe:
pbpaste | summarizer | readthis