Skip to content

Commit a1dd18d

Browse files
committed
feat: add demo GIF, update README with current features (OpenRouter, TUI, /keys, --polish, --graph)
1 parent 673e27e commit a1dd18d

3 files changed

Lines changed: 115 additions & 23 deletions

File tree

README.md

Lines changed: 65 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66

77
AI deep research tool that searches the web, reads sources, and synthesizes findings into comprehensive reports.
88

9-
**Works 100% free** with Ollama (local LLM) + DuckDuckGo (no API key needed for search). Also supports OpenAI, Google Gemini, and Anthropic Claude.
9+
<p align="center">
10+
<img src="demo.gif" alt="deepworm demo" width="800">
11+
</p>
12+
13+
**Works 100% free** with Ollama (local LLM) + DuckDuckGo (no API key needed for search). Also supports OpenAI, Google Gemini, Anthropic Claude, and [OpenRouter](https://openrouter.ai/) (200+ models).
1014

1115
No Langchain dependency. No paid search APIs required. Just `pip install deepworm` and go.
1216

@@ -19,14 +23,20 @@ pip install deepworm
1923
### Set up an API key (choose one)
2024

2125
```bash
22-
# Option 1: OpenAI
23-
export OPENAI_API_KEY="sk-..."
24-
25-
# Option 2: Google Gemini
26+
# Option 1: Google Gemini (recommended, free tier available)
2627
export GOOGLE_API_KEY="AIza..."
2728

28-
# Option 3: Anthropic Claude
29+
# Option 2: OpenRouter (200+ models, free & paid)
30+
export OPENROUTER_API_KEY="sk-or-..."
31+
32+
# Option 3: OpenAI
33+
export OPENAI_API_KEY="sk-..."
34+
35+
# Option 4: Anthropic Claude
2936
export ANTHROPIC_API_KEY="sk-ant..."
37+
38+
# Option 5: Ollama (fully local, no key needed)
39+
# Just install Ollama and pull a model
3040
```
3141

3242
### Run a research
@@ -45,25 +55,53 @@ That's it. DeepWorm will:
4555
## Command Line Options
4656

4757
```bash
48-
# Control research depth
49-
deepworm "topic" --depth 3 --breadth 5
58+
# Control research depth and breadth
59+
deepworm "topic" --depth 2 --breadth 3
60+
61+
# Verbose mode (see searches, pages, analysis in real-time)
62+
deepworm "topic" -v
5063

5164
# Save report to file
5265
deepworm "topic" --output report.md
5366

67+
# Auto-polish analysis (readability, quality score, compliance)
68+
deepworm "topic" --polish
69+
70+
# Knowledge graph extraction
71+
deepworm "topic" --graph # Mermaid diagram
72+
deepworm "topic" --graph stats # Top connected concepts table
73+
74+
# Full pipeline
75+
deepworm "topic" -v --polish --graph stats
76+
5477
# Choose provider
5578
deepworm "topic" --provider google
79+
deepworm "topic" --provider openrouter --model google/gemini-2.0-flash-001
5680

5781
# Compare topics
5882
deepworm compare "Python" "Rust"
5983

60-
# Interactive mode
61-
deepworm interactive
62-
6384
# See all options
6485
deepworm --help
6586
```
6687

88+
## Interactive Mode (TUI)
89+
90+
```bash
91+
deepworm interactive
92+
```
93+
94+
Features:
95+
- **Arrow-key menu navigation** — navigate commands without typing
96+
- **`/keys`** — manage API keys interactively (saved to `~/.deepworm_keys`)
97+
- **`/models`** — browse and switch models with arrow keys
98+
- **`/set`** — change depth, breadth, model inline
99+
- **`/last`** — view last research report
100+
- **`/graph`** — extract knowledge graph from last report
101+
- **`/polish`** — run quality analysis on last report
102+
- **Command history** — arrow up/down to recall previous queries
103+
- **Auto-save** — all reports saved to `~/.deepworm/reports/`
104+
67105
## Python API
68106

69107
```python
@@ -76,12 +114,13 @@ print(result.report)
76114

77115
## Supported Providers
78116

79-
| Provider | Env Variable | Models |
80-
|---|---|---|
81-
| OpenAI | `OPENAI_API_KEY` | gpt-4o, gpt-4o-mini |
82-
| Google | `GOOGLE_API_KEY` | gemini-pro, gemini-flash |
83-
| Anthropic | `ANTHROPIC_API_KEY` | claude-3.5, claude-3 haiku |
84-
| Ollama | (none, local) | llama3, mistral |
117+
| Provider | Env Variable | Default Model | Notes |
118+
|---|---|---|---|
119+
| Google | `GOOGLE_API_KEY` | gemini-2.5-flash-lite | Free tier available |
120+
| OpenRouter | `OPENROUTER_API_KEY` | gemini-2.0-flash-001 | 200+ models, free & paid |
121+
| OpenAI | `OPENAI_API_KEY` | gpt-4o-mini | |
122+
| Anthropic | `ANTHROPIC_API_KEY` | claude-3-5-haiku-latest | |
123+
| Ollama | (none, local) | llama3.2 | Fully offline |
85124

86125
## Configuration
87126

@@ -97,17 +136,20 @@ output_dir: ./reports
97136
98137
## Key Features
99138
100-
- Multi-provider LLM support (OpenAI, Google, Anthropic, Ollama)
101-
- Recursive deep research with configurable depth and breadth
139+
- **Multi-provider LLM support** — OpenAI, Google Gemini, Anthropic, OpenRouter (200+ models), Ollama
140+
- **Recursive deep research** with configurable depth and breadth
141+
- **Interactive TUI** with arrow-key navigation, command menu, and auto-save
142+
- **Knowledge graph extraction** — Mermaid, DOT, stats, JSON formats
143+
- **Polish pipeline** — readability scoring, compliance checks, quality grades (A-F)
144+
- **Auto-save reports** to `~/.deepworm/reports/` (both CLI and interactive)
145+
- **API key management** — `/keys` command saves keys securely to `~/.deepworm_keys`
102146
- Markdown reports with citations and source links
103147
- Comparison mode for side-by-side analysis
104148
- Research chains for multi-step investigations
105149
- Built-in retry and rate limiting
106150
- DuckDuckGo search (no API key needed for search)
107-
- Interactive mode for exploratory research
108-
- Research history and caching
109-
- Template system for repeatable research
110-
- Rich terminal output with progress tracking
151+
- Rich terminal output with emoji progress tracking
152+
- Token usage tracking per research
111153
- Extensible plugin system
112154

113155
## License

demo.gif

263 KB
Loading

demo.tape

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# deepworm Demo Recording
2+
# Run with: vhs demo.tape
3+
4+
Output demo.gif
5+
6+
Set Shell "zsh"
7+
Set FontSize 15
8+
Set Width 1200
9+
Set Height 700
10+
Set Theme "Catppuccin Mocha"
11+
Set TypingSpeed 40ms
12+
Set Padding 20
13+
Set Framerate 8
14+
Set PlaybackSpeed 1.5
15+
16+
Require deepworm
17+
18+
# Title comment
19+
Type "# deepworm - AI deep research from your terminal"
20+
Enter
21+
Sleep 1s
22+
23+
# Show help briefly
24+
Type "deepworm --help | head -25"
25+
Enter
26+
Sleep 3s
27+
28+
# Clear
29+
Type "clear"
30+
Enter
31+
Sleep 500ms
32+
33+
# Set API key (demo placeholder)
34+
Type "# Step 1: Set your API key"
35+
Enter
36+
Type "# export GOOGLE_API_KEY='your-key-here'"
37+
Enter
38+
Type "# (or use: deepworm interactive → /keys)"
39+
Enter
40+
Sleep 1.5s
41+
42+
# Run the actual research with full pipeline
43+
Type "deepworm 'quantum computing breakthroughs 2025' --depth 1 --breadth 1 -v --polish --graph stats"
44+
Enter
45+
46+
# Wait for research to complete (~45s, at 1.5x playback = ~30s viewed)
47+
Sleep 65s
48+
49+
# Final pause to see results
50+
Sleep 4s

0 commit comments

Comments
 (0)