A CLI that summarizes anything using Claude. Pass it a URL, a file, or pipe text via stdin.
npm install -g briefly-cliOr run directly:
npx briefly-cli https://example.com/article# Summarize a URL
briefly https://en.wikipedia.org/wiki/Transformer_(deep_learning_architecture)
# Summarize a file
briefly paper.pdf
# Pipe from stdin
cat README.md | briefly
# Clipboard (macOS)
pbpaste | briefly-d, --detail <level> Detail level: short, medium, long (default: medium)
-f, --format <type> Output format: prose, bullets, technical (default: prose)
-m, --model <model> Claude model (default: claude-sonnet-4-20250514)
--no-stream Disable streaming output
-h, --help Show help
# Quick bullet summary of an article
briefly -d short -f bullets https://arxiv.org/abs/2401.00001
# Technical deep-dive of source code
briefly -d long -f technical src/summarize.ts
# Summarize git diff
git diff | briefly -f bulletsRequires an Anthropic API key:
export ANTHROPIC_API_KEY=sk-ant-...- Detects input type (URL, file path, or stdin)
- For URLs, fetches and strips HTML to plain text
- Sends content to Claude with format and detail instructions
- Streams the summary to your terminal
Built with TypeScript, the Anthropic SDK, and Commander.js.
MIT