exa

Manage Exa AI via CLI - search, contents, answer, context. Use when user mentions 'exa', 'web search', 'find similar pages', 'ai answer', or wants to interact with the Exa API.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "exa" with this command: npx skills add melvynx/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

CommandDescription
exa-cli search query --query "latest AI research" --jsonSearch web with natural language query
exa-cli search query --query "best React frameworks" --type neural --num-results 5 --jsonNeural search with custom result count
exa-cli search query --query "SpaceX news" --type keyword --jsonKeyword-based search
exa-cli search query --query "AI trends" --start-date 2024-01-01 --jsonSearch with date filter
exa-cli search query --query "research" --category news --jsonSearch by category
exa-cli search query --query "frameworks" --include-domains github.com,stackoverflow.com --jsonInclude specific domains
exa-cli search query --query "news" --exclude-domains twitter.com --jsonExclude specific domains
exa-cli search query --query "topic" --text --jsonInclude page text in results
exa-cli search query --query "topic" --summary --jsonInclude AI summary for each result
exa-cli search query --query "topic" --highlights --jsonInclude text highlights
exa-cli search find-similar --url "https://example.com" --jsonFind similar pages to URL
exa-cli search find-similar --url "https://example.com" --num-results 5 --text --jsonFind similar with text content

contents

CommandDescription
exa-cli contents get --urls "https://example.com" --jsonGet page contents for URL
exa-cli contents get --urls "https://a.com,https://b.com" --jsonGet contents for multiple URLs
exa-cli contents get --urls "https://example.com" --text --jsonGet contents with full page text
exa-cli contents get --urls "https://example.com" --summary --jsonGet contents with AI summary
exa-cli contents get --urls "https://example.com" --highlights --jsonGet contents with text highlights

answer

CommandDescription
exa-cli answer query --query "What is the latest valuation of SpaceX?" --jsonGet AI answer with web citations
exa-cli answer query --query "Who won the 2024 election?" --text --jsonAnswer with source text included
exa-cli answer query --query "Explain quantum computing" --stream --jsonStream answer response

context

CommandDescription
exa-cli context get --query "how to use React hooks" --jsonGet web context for query
exa-cli context get --query "Python async await patterns" --tokens-num 8000 --jsonGet context with token limit

Global Flags

All commands support: --json, --format <text|json|csv|yaml>, --verbose, --no-color, --no-header

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.