# CLI Anything Exa

Agent-native CLI for Exa web search and content retrieval workflows.

- Repository: https://github.com/HKUDS/CLI-Anything (58029 stars)
- Category: AI and agents
- License: Apache-2.0
- Last updated: 2026-09-22
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add HKUDS/CLI-Anything --skill cli-anything-exa -g -a claude-code -y`
Codex: `npx skills add HKUDS/CLI-Anything --skill cli-anything-exa -g -a codex -y`
Cursor: `npx skills add HKUDS/CLI-Anything --skill cli-anything-exa -g -a cursor -y`
Gemini CLI: `npx skills add HKUDS/CLI-Anything --skill cli-anything-exa -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add HKUDS/CLI-Anything`

## Description

Agent-native CLI for Exa web search and content retrieval workflows.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# 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
```

The rest: https://github.com/HKUDS/CLI-Anything/blob/HEAD/exa/agent-harness/cli_anything/exa/skills/SKILL.md
