cli-anything-exa — Claude Code skill: what it does, how to install
Connects the Exa neural search engine to your agent for deep web searches and page retrieval. Useful for gathering research papers, news, and company intelligence.
npx skills add HKUDS/CLI-Anything --skill cli-anything-exa -a claude-codeWhat cli-anything-exa does
The skill provides a CLI interface to the Exa API with multiple search modes. It supports fast queries, deep analysis, and multi-step reasoning via deep-reasoning. Output can be formatted as JSON using the --json flag, which also includes query cost in dollars.
Prerequisites include Python 3.10 or higher and an EXA_API_KEY environment variable. The tool fails without that key. Date filters and domain exclusion rules do not work when filtering by company or people categories.
The highlights mode uses ten times fewer tokens than fetching full text. That makes highlights the practical choice for agent workflows.
What it helps with
- search academic papers and publications by category
- retrieve page highlights to reduce token usage
- run deep multi-step web searches across sources
- fetch full-text page contents by address for summarisation
Example prompts for the agent
- Search for transformer architecture papers using cli-anything-exa in fast mode
- Research EU AI Act compliance requirements using cli-anything-exa with --type deep
- Fetch article text using cli-anything-exa contents for a summary
How to install cli-anything-exa
1Skills CLI (Vercel)
npx skills add HKUDS/CLI-Anything --skill cli-anything-exa -a claude-code2Manually: put the files in place
~/.claude/skills/cli-anything-exa/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/cli-anything-exa/
1Skills CLI (Vercel)
npx skills add HKUDS/CLI-Anything --skill cli-anything-exa -a codex2Manually: put the files in place
.agents/skills/cli-anything-exa/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add HKUDS/CLI-Anything --skill cli-anything-exa -a cursor2Manually: put the files in place
.cursor/skills/cli-anything-exa/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install HKUDS/CLI-Anything cli-anything-exa2Manually: put the files in place
.github/skills/cli-anything-exa/SKILL.md1Skills CLI (Vercel)
npx skills add HKUDS/CLI-Anything --skill cli-anything-exa -a gemini-cli2Platform CLI
gemini skills install https://github.com/HKUDS/CLI-Anything --path skills/cli-anything-exaManually: put the files in place
.devin/skills/cli-anything-exa/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add HKUDS/CLI-Anything --skill cli-anything-exa -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about cli-anything-exa
How do I install cli-anything-exa in Claude Code?
Run npx skills add HKUDS/CLI-Anything --skill cli-anything-exa -a claude-code in your terminal.
What does the cli-anything-exa skill do?
It gives AI agents a command-line interface to Exa neural search. The agent can search by categories, fetch page highlights or full text, and inspect query costs in JSON output.
What prerequisites are needed to run cli-anything-exa?
You need Python 3.10 or higher and an EXA_API_KEY environment variable set with your Exa API key.
Source text
SKILL.md · Apache-2.0
--- name: "cli-anything-exa" description: >- Agent-native CLI for Exa web search and content retrieval workflows. --- # Exa CLI Skill ## Identity - **Name**: cli-anything-exa - **Version**: 1.0.0 - **Category**: search - **Entry Point**: `cli-anything-exa` ## What This CLI Does Provides an agent-native command-line interface to the Exa API — a neural search engine optimised for AI agent workflows. Supports web search across multiple modes (fast, deep, deep-reasoning) and fetching full-text or highlighted page contents. ## Prerequisites - Python >= 3.10 - `pip install cli-anything-exa` - `export EXA_API_KEY="your-api-key"` (get one at https://dashboard.exa.ai/api-keys) ## Installation ```bash pip install git+https://github.com/HKUDS/CLI-Anything.git#subdirectory=exa/agent-harness ``` ## Command Reference ### search — Web search ```bash cli-anything-exa search "<query>" [OPTIONS] Options: --type auto|fast|instant|deep|deep-reasoning (default: auto) --num-results / -n 1–100 (default: 10) --category company|people|research-paper|news|personal-site|financial-report --content highlights|text|summary|none (default: highlights) --freshness smart|always|never (default: smart) --include-domains DOMAIN (repeatable) --exclude-domains DOMAIN (repeatable) --from DATE ISO 8601 start published date --to DATE ISO 8601 end published date --location CC Two-letter country code for geo-bias ``` ### contents — Fetch page contents ```bash cli-anything-exa contents <url> [url ...] [--content text|highlights|summary] [--freshness smart|always|never] ``` ### server status — Verify API key and connectivity ```bash cli-anything-exa server status ``` ## JSON Output All commands support `--json` at the root level for machine-readable output: ```bash cli-anything-exa --json search "latest LLM papers" --num-results 5 ``` ## Common Agent Patterns ### Fast keyword lookup ```bash cli-anything-exa --json search "site:arxiv.org transformer architectures" --type fast --content highlights ``` ### Deep research on a topic ```bash cli-anything-exa --json search "EU AI Act compliance requirements 2024" --type deep --content text ``` ### Academic paper discovery ```bash cli-anything-exa --json search "retrieval augmented generation" --category research-paper --num-results 20 ``` ### Company intelligence ```bash cli-anything-exa --json search "Anthropic funding history" --category company ``` ### News monitoring ```bash cli-anything-exa --json search "AI regulation news" --category news --from 2024-01-01 ``` ### Fetch full content for summarisation ```bash cli-anything-exa --json contents https://example.com/article --content text ``` ## Interactive REPL ```bash cli-anything-exa # No subcommand → enters REPL ``` Type commands without the `cli-anything-exa` prefix. Type `exit` or `quit` to leave. ## Notes - `highlights` content mode is 10× more token-efficient than `text` — prefer it for agent pipelines - `--type deep` triggers multi-step reasoning; slower but synthesises across many sources - `--category company` and `--category people` do not support date or domain-exclude filters - Cost per query is included in JSON output under `cost_dollars`
© HKUDS · Apache-2.0 · HKUDS/CLI-Anything