Cli Anything Exa

hkuds/cli-anything/skills/cli-anything-exa

作者 hkuds34f519533bc1無授權條款51K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫2 週前更新

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

AI 產生的概覽

面向代理的 Exa 神經網路搜尋與頁面內容擷取命令列工具。

功能
將 Exa 搜尋 API 包裝成命令列介面,提供 search 與 contents 子命令,以及 server status 連線檢查。搜尋支援 fast、deep、deep-reasoning 等模式,以及結果數量、類別、內容模式、時效性、網域與日期篩選和地理偏誤。輸出為機器可讀的 JSON,包含每次查詢的費用,並在不帶子命令時進入互動式 REPL。
適用情境
適用於代理需要網頁搜尋結果、頁面全文、摘要或重點片段來進行研究、新聞監測、學術論文探索或公司情報的場合。也適合想使用高 token 效率的重點內容或進行多來源深度綜合的流程。
執行需求
需要 Python 3.10 或更新版本、透過 pip 安裝的 cli-anything-exa 套件,以及 EXA_API_KEY 環境變數。需要連線至 Exa API 的網路存取。此技能僅為說明文件,不隨附指令碼。

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

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/cli-anything位於skills/cli-anything-exa提交34f5195

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架