Skip to main content
skill CX Codex

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.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add HKUDS/CLI-Anything --skill cli-anything-exa -a claude-code
Open on GitHub

What 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-code

2Manually: put the files in place

~/.claude/skills/cli-anything-exa/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/cli-anything-exa/

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

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set55

cli-anything-iterm2 Controls live iTerm2 sessions over the Python WebSocket API. Lets coding agents inspect running panes, send keystrokes, and split terminal layouts. CX Codex +1 495installs cli-anything-openscreen A Claude Code skill that hands the agent a CLI for editing screen recordings: zooms, speed changes, trims, crops, text overlays, and ffmpeg renders. CX Codex +1 495installs cli-anything-dify-workflow A skill that hands the agent commands for building, checking and editing Dify workflow YAML. Useful when a hand-written workflow breaks on import. CX Codex +1 493installs cli-anything-pm2 A skill that brings PM2 CLI into Claude Code for managing Node.js processes. Start, stop, restart applications and tail logs directly from the editor. CX Codex +1 491installs cli-anything-safari Controls real Safari on macOS via a Python Click CLI wrapping the safari-mcp server. Useful for running browser automations while preserving existing logins. CX Codex +1 483installs cli-anything-renderdoc A skill that lets your agent inspect RenderDoc frame captures from the terminal: draw call tree, pipeline state, textures and buffers inside .rdc files. CX Codex +1 482installs cli-anything-cloudcompare CLI harness for CloudCompare point cloud and mesh processing across 41 commands. Automates subsampling, normal computation, SOR filtering, and conversions for AI agents. CX Codex +1 478installs cli-anything-anygen Provides a CLI wrapper around the AnyGen OpenAPI to build slides and diagrams. Useful when automating document workflows in AI agents. CX Codex +1 471installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor