CLI tool for Exa's AI-powered search APIs. Perform web search, code search, deep research, crawling, and company/LinkedIn research from your terminal.
bun install
bun linkAlternative - Compile to standalone binary:
bun build ./src/index.ts --compile --outfile exa
sudo cp exa /usr/local/bin/# Set API key (stored at ~/.config/exa/config.json)
exa config set api-key <your-key>
# View config
exa config list
exa config path
# Check connectivity
exa statusAPI key priority: --api-key flag > EXA_API_KEY env var > config file
exa search "quantum computing breakthroughs 2024"
exa search "best restaurants NYC" -n 5 --max-chars 5000
exa search "AI news" --raw # JSON outputexa code "React hooks documentation"
exa code "FastAPI authentication" --tokens 10000exa deep-search "What are the latest developments in fusion energy?"
exa deep-search "AI safety research" -n 10exa crawl "https://example.com"
exa crawl "https://blog.example.com/post" --max-chars 5000exa company "OpenAI" -n 5
exa company "Tesla" --rawexa linkedin "software engineer" -t profiles -n 5
exa linkedin "AI companies" -t companies
exa linkedin "startup founder" # all types# Start async research
exa research start "Brief history of quantum computing" --wait
exa research start "AI trends 2024" --model exa-research-pro
# Check status
exa research check <task-id>
exa research check <task-id> --waitexa search "test" --api-key <key> # Override API key
exa search "test" --raw # JSON output
exa search "test" --debug # Debug info| Command | Description |
|---|---|
search |
Web search with content extraction |
code |
Code/SDK documentation search |
deep-search |
Complex research with query expansion |
crawl |
Extract content from URL |
company |
Company research across business sources |
linkedin |
Search LinkedIn profiles/companies |
research start |
Start async research task |
research check |
Check research task status |
config |
Manage configuration |
status |
Check API connectivity |
0- Success1- General error2- Authentication error3- Invalid arguments4- Network error5- Timeout
bun install
bun run dev <command> # Run without building
bun run typecheck # Type check
bun run build # Build binary