Communitygithub.com

cli-anything-exa(Exa CLI 技能)

为 AI 智能体提供 Exa 神经搜索引擎的命令行接口,支持网络搜索和获取页面全文内容。

cli-anything-exa(Exa CLI 技能) 是什么?

cli-anything-exa 是一个面向 AI 智能体的原生命令行工具,封装了 Exa 的神经搜索引擎 API。它支持多种搜索模式(快速、深度、深度推理)和多种内容获取方式(高亮、文本、摘要),专为需要实时获取结构化或非结构化网络信息的自动化工作流设计。该工具主要用于开发者工具生态系统,如 Claude Code、Cursor 或 Codex 等智能体平台,帮助它们高效执行搜索、资料汇集和内容摘要等任务。用户只需设置环境变量 EXA_API_KEY 即可使用,支持管道式命令行调用(含 JSON 输出)和交互式 REPL 模式。典型应用场景包括快速关键词查找、深度研究、学术论文发现、公司情报和新闻监控。该工具特别优化了 token 效率,推荐在智能体管道中优先使用“高亮”模式,并提供了分页、日期过滤、领域排除等精细控制选项。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/HKUDS/CLI-Anything/tree/main/skills/cli-anything-exa

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Exa CLI 技能

身份

  • 名称:cli-anything-exa
  • 版本:1.0.0
  • 类别:搜索
  • 入口点:cli-anything-exa

该 CLI 的功能

提供面向智能体的原生命令行接口,用于 Exa API —— 一个针对 AI 智能体工作流优化的神经搜索引擎。支持多种搜索模式(快速、深度、深度推理)以及获取页面全文或高亮内容。

前提条件

安装

pip install git+https://github.com/HKUDS/CLI-Anything.git#subdirectory=exa/agent-harness

命令参考

search — 网络搜索

cli-anything-exa search "<query>" [OPTIONS]

选项:
  --type       auto|fast|instant|deep|deep-reasoning  (默认:auto)
  --num-results / -n   1–100  (默认:10)
  --category   company|people|research-paper|news|personal-site|financial-report
  --content    highlights|text|summary|none  (默认:highlights)
  --freshness  smart|always|never  (默认:smart)
  --include-domains DOMAIN   (可重复)
  --exclude-domains DOMAIN   (可重复)
  --from DATE   ISO 8601 起始发布日期
  --to   DATE   ISO 8601 结束发布日期
  --location CC  两位国家代码,用于地理偏向

contents — 获取页面内容

cli-anything-exa contents <url> [url ...] [--content text|highlights|summary] [--freshness smart|always|never]

server status — 验证 API 密钥和连接状态

cli-anything-exa server status

JSON 输出

所有命令在根级别支持 --json 参数,输出机器可读的结果:

cli-anything-exa --json search "latest LLM papers" --num-results 5

常见智能体模式

快速关键词查找

cli-anything-exa --json search "site:arxiv.org transformer architectures" --type fast --content highlights

某个主题的深度研究

cli-anything-exa --json search "EU AI Act compliance requirements 2024" --type deep --content text

学术论文发现

cli-anything-exa --json search "retrieval augmented generation" --category research-paper --num-results 20

公司情报

cli-anything-exa --json search "Anthropic funding history" --category company

新闻监控

cli-anything-exa --json search "AI regulation news" --category news --from 2024-01-01

获取全文用于摘要

cli-anything-exa --json contents https://example.com/article --content text

交互式 REPL

cli-anything-exa   # 无子命令 → 进入 REPL

输入命令时无需 cli-anything-exa 前缀。输入 exit 或 quit 退出。

备注

  • highlights 内容模式比 text 模式节省 10 倍的 token —— 在智能体管道中推荐优先使用
  • --type deep 触发多步推理;速度较慢,但能综合多个来源的信息
  • --category company 和 --category people 不支持日期或领域排除筛选
  • 每次查询的成本会在 JSON 输出的 cost_dollars 字段中显示

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

cli-anything-adguardhome

>-

cli-anything-anygen

>-

cli-anything-audacity

>-

cli-anything-blender

>-

cli-anything-browser

Browser automation CLI using DOMShell MCP server. Maps Chrome

cli-anything-calibre

>-

cli-anything-ccswitch

CLI interface for CC Switch — manage AI coding tool configurations from the terminal

cli-anything-chromadb

>-

cli-anything-cloudanalyzer

Command-line interface for CloudAnalyzer — Agent-friendly harness for CloudAnalyzer, a QA platform for mapping, localization, and perception outputs. Supports 27 commands across 8 groups: point cloud evaluation, trajectory evaluation, ground segmentation QA, config-driven quality gates, baseline evolution, processing, visualization, and interactive REPL.

cli-anything-cloudcompare

Command-line interface for CloudCompare — Agent-friendly harness for CloudCompare, the open-source 3D point cloud and mesh processing software. Supports 41 commands across 9 groups: project management, session control, point cloud operations (subsample, filter, segment, analyze), mesh operations, distance computation (C2C, C2M), transformations (ICP, matrix), export (LAS/LAZ/PLY/PCD/OBJ/STL/E57), and interactive REPL.

cli-anything-comfyui

>-

cli-anything-dify-workflow

Wrapper for the Dify workflow DSL CLI. Create, inspect, validate, edit, and export Dify workflow files through a CLI-Anything harness.

cli-anything-drawio

>-

cli-anything-eez-studio

Use EEZ Studio from the command line: inspect and modify native .eez-project files, edit LVGL screens/widgets, manage SCPI commands, and invoke the real EEZ Studio backend for LVGL builds.

cli-anything-eth2-quickstart

>-

cli-anything-firefly-iii

Firefly III CLI - Personal finance management via CLI-Anything

cli-anything-freecad

Complete CLI harness for FreeCAD parametric 3D CAD modeler (258 commands). Covers ALL workbenches: Part (29 primitives + boolean + mirror + loft + sweep), Sketcher (26 cmds: geometry + constraints + editing), PartDesign (38 cmds: pad/pocket/groove/fillet/chamfer/patterns/hole/datum), Assembly (11 cmds), Mesh (16 cmds), TechDraw (15 cmds: views + dimensions + PDF/SVG), Draft (33 cmds: 2D shapes + arrays + transforms), FEM (12 cmds), CAM/CNC (10 cmds), Surface (6 cmds), Spreadsheet (7 cmds), Import (13 formats), Export (17 formats), Measure (12 cmds), Materials (21 presets). Headless FreeCAD export to STEP/IGES/STL/OBJ/DXF/PDF/glTF/3MF.

cli-anything-gimp

>-

cli-anything-godot

>-

cli-anything-inkscape

>-

相关技能