Exa CLI スキル
アイデンティティ
- 名称: cli-anything-exa
- バージョン: 1.0.0
- カテゴリ: 検索
- エントリポイント:
cli-anything-exa
このCLIの機能
Exa API のエージェント向けコマンドラインインターフェースを提供します。Exa は AI エージェントのワークフローに最適化されたニューラル検索エンジンです。高速・深層・深層推論の複数モードでウェブ検索を実行し、全文またはハイライト付きのページ内容を取得できます。
前提条件
- Python >= 3.10
pip install cli-anything-exaexport EXA_API_KEY="your-api-key"(https://dashboard.exa.ai/api-keys で取得)
インストール
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 地理的バイアス用の2文字国コード
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 "最新のLLM論文" --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倍優れています。エージェントパイプラインではこちらを推奨します。--type deepは複数ステップの推論を実行します。速度は遅くなりますが、多くの情報源を統合します。--category companyおよび--category peopleでは日付フィルターやドメイン除外フィルターは利用できません。- クエリあたりのコストは JSON 出力の
cost_dollarsフィールドに含まれます。