clawpress
v0.0.4
Published
Newspaper-style reports for your AI coding sessions. OpenClaw edition.
Maintainers
Readme
clawpress
Newspaper-style reports for your AI coding sessions. OpenClaw edition.
Generates a self-contained HTML page with AI-written narratives about what you accomplished — project spotlights, trend analysis, cost breakdowns, and celebratory headlines.
Install
npx clawpressOr install globally:
npm install -g clawpressUsage
clawpress # yesterday's report (default)
clawpress 2026-03-24 # specific date
clawpress --week # last 7 days
clawpress --last-week # previous Mon–Sun
clawpress --month # last calendar monthTheme
clawpress # dark theme (default)
clawpress --light # light themePick Your AI Provider
clawpress --provider opencode # use OpenCode directly
clawpress --provider openrouter # use OpenRouter API
clawpress --provider claude # use Claude Code
clawpress --provider openrouter --model google/gemini-2.5-flash:free # free modelAvailable providers: claude, codex, gemini, opencode, openrouter
By default, clawpress tries all available providers in order until one succeeds.
Other Options
clawpress --verbose # detailed logs (prompt, response, git, timing)
clawpress --help # show all optionsReports are saved to ~/.clawpress/reports/ and opened in your browser.
What You Get
A newspaper-style HTML report with AI-generated narratives:
- Lead Story — a witty summary of your coding day/week/month
- Project Spotlights — what was built in each project, informed by git commit history
- The Forecast — when you code, peak hours, activity trends
- The Tool Shed — which editors and models you used
- The Markets — estimated cost breakdown by editor and model
- Sports Page — coding streaks, records, longest sessions
Example
Stop the presses! Tuesday saw our developer tear through 33 sessions and nearly 900K tokens like a caffeine-fueled freight train. The kai project ran a tight five-session sprint across two editors, with Antigravity handling the heavy UI lifting and Claude Code swooping in for the closer. Four Antigravity sessions feeding into one Claude Code cleanup suggests a well-oiled assembly line: build fast, then polish.
Supported Editors
Reads session data directly from local storage — no API keys, no cloud, no setup:
| Editor | Data Location |
|--------|--------------|
| Claude Code | ~/.claude/projects/ |
| Cursor | ~/.cursor/chats/ + workspace storage |
| OpenCode | ~/.local/share/opencode/ |
| Antigravity | global storage + brain directory |
AI Narrative Engine
clawpress uses AI to generate the narratives. It cascades through providers in order, skipping any that return empty or fail:
- Claude Code —
claude -p --model claude-sonnet-4-6 - Codex —
codex exec - Gemini CLI —
gemini -p - OpenCode —
opencode run - OpenRouter — direct API call (requires
OPENROUTER_API_KEY)
Use --provider to skip the cascade and pick one directly.
The AI context includes git commit history per project, giving the model real data about what was built — not just session titles.
If no AI provider is available, you still get a full report with template-based narratives enriched by git commits.
Environment Variables
| Variable | Description |
|----------|-------------|
| OPENROUTER_API_KEY | Required for --provider openrouter |
| OPENROUTER_MODEL | Override OpenRouter model (default: anthropic/claude-haiku-4) |
The --model flag also works and takes precedence over the env var.
Built With
- TypeScript — compiled with tsgo (Go-based TypeScript compiler)
- better-sqlite3 — reads Cursor, OpenCode, and Antigravity session databases
- Zero runtime dependencies beyond Node.js built-ins + SQLite
Requirements
- Node.js 18+
- At least one supported editor with session history
- (Optional) An AI CLI or OpenRouter API key for richer narratives
Credits
ClawPress is the OpenClaw edition of agent-press.
License
MIT
