How to Use Exa in Any AI Agent
Exa brings cited web answers and readable page content into Claude Code through Spiral. Use it to check documentation, investigate an unfamiliar API, or gather evidence before changing code.
Prompts to try with Exa in any AI agent
Copy an example into your agent, or ask in your own words.
Read package.json and the lockfile. Use Exa Answer to investigate migration requirements for our installed Next.js version to the current stable release. Return an outputSchema with targetVersion, breakingChanges, and verificationSteps. Check the cited documentation against our source files, then write docs/next-migration.md with affected paths and source links.
Find the Stripe documentation URLs referenced in this repository. Use Exa Contents with those urls, text enabled, and maxAgeHours: 0. Compare the documented webhook verification procedure with our handler, then propose a patch and tests for any mismatch. Include the source URLs in your explanation.
Use Exa Answer to research cursor pagination patterns for a REST API. Compare the cited recommendations with this project's list endpoints, explain the tradeoffs for our data model, and draft a proposal in docs/pagination.md. Keep sourced recommendations separate from your design choices.
Read the external documentation links in README.md. Use Exa Contents to retrieve summaries and highlights, then flag instructions that conflict with our dependency versions or configuration. Write a review with file paths, supporting passages, and source URLs.
Search the web with Exa for the newest papers on small language models and cite each source. Save the result in ./assets.
Exa tools on Spiral
Today's price is in each card, with every fee included.
$0.0013 per page for each content type (text, highlights, summary), subpages included.
$0.0052 per search with 10 results. Each result after 10: $0.0013. Summaries: $0.0013 per result.
Use Exa in your AI agent
Pick your agent for its setup steps and prompts. Each takes about two minutes.
What can you do with Exa in an AI agent?
Plan a dependency migration
Compare cited migration guidance with the versions and API calls in your repository. Ask for an affected-file list and verification steps before requesting edits.
Check an API implementation
Retrieve the documentation URLs relevant to a handler or client. Compare the documented requirements with the implementation and request tests for specific differences.
Document an architecture decision
Gather web evidence for a design question, then ask Claude Code to relate it to your project's constraints. Save the reasoning and source links alongside the code.
Review documentation references
Fetch pages linked from the README and compare their instructions with the repository. Turn discrepancies into concrete documentation edits.
Investigate an unfamiliar dependency
Ask a focused question about the dependency, inspect the cited sources, and trace the relevant behavior through your project's call sites.
Prepare a reviewable implementation plan
Combine retrieved documentation with local file references to produce a plan that explains each proposed change and the evidence behind it.
More about Exa
Questions about Exa in AI agents
Which AI agents can use Exa?
Any agent Spiral connects to: Claude, ChatGPT, Gemini, Grok and Perplexity, coding agents such as Cursor, Claude Code and Codex, and workflow tools such as Zapier and n8n. Each agent's guide below shows its setup.
How do I request fresh page content from Exa?
Set maxAgeHours: 0 on a Contents request to request live content fetched within the last 60 seconds. A failed fetch may return the latest cached copy, so check retrieval results when freshness matters.
When should I use Exa Answer versus Contents?
Use Answer for a question that needs a generated response with sources. Use Contents when you already have URLs and want their text, highlights, or summaries.
How much does Exa cost through Spiral?
Each Exa tool is priced per run, shown before it starts, and paid from one Spiral balance. Each run is charged for its measured usage.
Do I need a Exa account to use it in an AI agent?
No. Spiral runs Exa on its own account and charges your Spiral balance, so your agent needs no Exa key.
How do I set up Exa in my agent?
Connect Spiral to your agent once (a skill, an MCP server, the CLI or the API), then ask for a Exa tool by name. Each agent's guide on this page has its exact steps.
Can my agent compare Exa tools?
Yes. Ask it to run the same request on two Exa tools and show both results with what each cost.
What happens if a run fails in your agent?
It is not charged. Spiral holds a run's estimated price when it starts and returns it to your balance if the run fails on Spiral's side or the provider's, and your agent gets the error to retry or try another tool.
Is there a subscription or plan?
No. Spiral is pay as you go from one prepaid balance, with no plans or minimums, and credits never expire. Auto top-up and balance alerts keep runs from stopping when the balance runs low.
Start using Exa in your agent
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into your agent:
set up https://spiral.ai/SKILL.md


