/install exa-cli
exa-cli
Setup
If exa-cli is not installed, install it from GitHub:
npx api2cli install Melvynx/exa-cli
If exa-cli is not found, install and build it:
bun --version || curl -fsSL https://bun.sh/install | bash
npx api2cli bundle exa
npx api2cli link exa
api2cli link adds ~/.local/bin to PATH automatically. The CLI is available in the next command.
Always use --json flag when calling commands programmatically.
Authentication
exa-cli auth set "your-token"
exa-cli auth test
Resources
search
| Command | Description |
|---|---|
exa-cli search query --query "latest AI research" --json |
Search web with natural language query |
exa-cli search query --query "best React frameworks" --type neural --num-results 5 --json |
Neural search with custom result count |
exa-cli search query --query "SpaceX news" --type keyword --json |
Keyword-based search |
exa-cli search query --query "AI trends" --start-date 2024-01-01 --json |
Search with date filter |
exa-cli search query --query "research" --category news --json |
Search by category |
exa-cli search query --query "frameworks" --include-domains github.com,stackoverflow.com --json |
Include specific domains |
exa-cli search query --query "news" --exclude-domains twitter.com --json |
Exclude specific domains |
exa-cli search query --query "topic" --text --json |
Include page text in results |
exa-cli search query --query "topic" --summary --json |
Include AI summary for each result |
exa-cli search query --query "topic" --highlights --json |
Include text highlights |
exa-cli search find-similar --url "https://example.com" --json |
Find similar pages to URL |
exa-cli search find-similar --url "https://example.com" --num-results 5 --text --json |
Find similar with text content |
contents
| Command | Description |
|---|---|
exa-cli contents get --urls "https://example.com" --json |
Get page contents for URL |
exa-cli contents get --urls "https://a.com,https://b.com" --json |
Get contents for multiple URLs |
exa-cli contents get --urls "https://example.com" --text --json |
Get contents with full page text |
exa-cli contents get --urls "https://example.com" --summary --json |
Get contents with AI summary |
exa-cli contents get --urls "https://example.com" --highlights --json |
Get contents with text highlights |
answer
| Command | Description |
|---|---|
exa-cli answer query --query "What is the latest valuation of SpaceX?" --json |
Get AI answer with web citations |
exa-cli answer query --query "Who won the 2024 election?" --text --json |
Answer with source text included |
exa-cli answer query --query "Explain quantum computing" --stream --json |
Stream answer response |
context
| Command | Description |
|---|---|
exa-cli context get --query "how to use React hooks" --json |
Get web context for query |
exa-cli context get --query "Python async await patterns" --tokens-num 8000 --json |
Get context with token limit |
Global Flags
All commands support: --json, --format \x3Ctext|json|csv|yaml>, --verbose, --no-color, --no-header
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install exa-cli - 安装完成后,直接呼叫该 Skill 的名称或使用
/exa-cli触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Exa Cli 是什么?
Manage Exa AI via CLI - search, contents, answer, context. Use when user mentions 'exa', 'web search', 'find similar pages', 'ai answer', or wants to interac... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 287 次。
如何安装 Exa Cli?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install exa-cli」即可一键安装,无需额外配置。
Exa Cli 是免费的吗?
是的,Exa Cli 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Exa Cli 支持哪些平台?
Exa Cli 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Exa Cli?
由 Melvyn(@melvynx)开发并维护,当前版本 v0.1.0。