https://github.com/realpacific/summarizer
CLI tool that summarizes text or articles at a URL using LLM. Supports Anthropic (Claude), OpenAI (GPT), Google (Gemini), and local Ollama models.
https://github.com/realpacific/summarizer
summarizer
Last synced: 26 days ago
JSON representation
CLI tool that summarizes text or articles at a URL using LLM. Supports Anthropic (Claude), OpenAI (GPT), Google (Gemini), and local Ollama models.
- Host: GitHub
- URL: https://github.com/realpacific/summarizer
- Owner: realpacific
- License: mit
- Created: 2026-04-09T16:13:01.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2026-06-13T06:40:40.000Z (about 1 month ago)
- Last Synced: 2026-06-13T08:13:21.180Z (about 1 month ago)
- Topics: summarizer
- Language: Python
- Homepage: https://prashantbarahi.com.np/blog/summarizer
- Size: 121 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Agents: AGENTS.md
Awesome Lists containing this project
README
# summarizer

CLI tool that summarizes text or articles at a URL using LLM.
Supports Anthropic (Claude), OpenAI (GPT), Google (Gemini), and local Ollama models.
## Install
```bash
uv tool install git+https://github.com/realpacific/summarizer
```
## Setup
Run the interactive wizard to choose a provider, model, and API key:
```bash
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.
## Usage
```bash
# 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 | summarizer
```
## Summarizer + TTS
Pair it with [realpacific/readthis](https://github.com/realpacific/readthis) to turn any summary into on-demand audio.
Install `realpacific/readthis`:
```bash
uv tool install --python 3.12 git+https://github.com/realpacific/readthis
```
Pipe any summary directly to it:
```bash
# 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
```