Anakin CLI
Command-line interface for web scraping, search, and deep research
Scrape websites, search the web, and run deep research — all from your terminal.
| Latest version | 0.1.0 |
| License | MIT |
| Python | 3.10+ |
| PyPI | anakin-cli |
| Source | GitHub |
pip install anakin-cliPrerequisites
Before installing, make sure you have:
- Python 3.10 or higher — check with
python --version - pip — Python's package manager (included with Python 3.10+)
- An API key — get one from the Dashboard. If you don't have an account, sign up here
Installation
pip install anakin-cli# Install in an isolated environment (recommended for CLI tools)
pipx install anakin-cliVerify the installation:
anakin statusTo upgrade to the latest version:
pip install --upgrade anakin-cliAuthentication
Set up your API key so the CLI can make requests on your behalf.
Login command (recommended)
anakin login --api-key "ak-your-key-here"This saves your key locally. You only need to do this once.
Environment variable
export ANAKIN_API_KEY="ak-your-key-here"Interactive prompt
If no key is configured, the CLI will prompt you to enter one.
Quick start
# Scrape a page to markdown
anakin scrape "https://example.com"
# Extract structured JSON with AI
anakin scrape "https://example.com/product" --format json
# Scrape a JS-heavy site with headless browser
anakin scrape "https://example.com/spa" --browser
# Batch scrape multiple URLs
anakin scrape-batch "https://a.com" "https://b.com" "https://c.com"
# AI-powered web search
anakin search "python async best practices"
# Deep research (takes 1–5 min)
anakin research "comparison of web frameworks 2025" -o report.jsonCommands overview
| Command | Description |
|---|---|
anakin login | Save your API key locally |
anakin status | Check version and authentication status |
anakin scrape | Scrape a single URL to markdown, JSON, or raw |
anakin scrape-batch | Scrape up to 10 URLs in parallel |
anakin search | AI-powered web search (instant results) |
anakin research | Deep multi-stage agentic research |
See the full Commands Reference for all flags and options, or check out Examples & Recipes for real-world usage patterns.
Output modes
Every command that returns data supports the -o flag to write to a file. Without it, output goes to stdout.
# Print to terminal
anakin scrape "https://example.com"
# Save to file
anakin scrape "https://example.com" -o page.mdThe scrape command also supports three output formats:
| Format | Flag | What you get |
|---|---|---|
| Markdown | --format markdown | Clean readable text (default) |
| JSON | --format json | AI-extracted structured data |
| Raw | --format raw | Full API response with HTML and metadata |
Tips
Always quote URLs containing ?, &, or # — shells interpret these as special characters:
# Wrong — zsh will fail
anakin scrape https://example.com/page?id=123
# Correct
anakin scrape "https://example.com/page?id=123"Piping works cleanly because all progress messages go to stderr:
anakin scrape "https://example.com" --format json | jq '.title'Use --browser for JavaScript-heavy sites, SPAs, and dynamically loaded content.
Use --country to route requests through a specific country's proxy. See all 207 supported countries.
Support
- Discord — discord.gg/T57dHrdT8u
- Email — support@anakin.io
- PyPI — pypi.org/project/anakin-cli