tavily-search

tavily-search is a skill for Claude Code, Codex from xg-gh-25/SwarmAI. It costs 60 tokens per session (3,094 once invoked), scanned B, original, MIT.

An internet search and content-extraction tool powered by the Tavily API. It searches across the web, ranks results, extracts content from known URLs, and can produce AI-generated answers.

In plain words
What is it for?
Use it for web searches, current-information queries, extracting content from URLs, and research workflows that need ranked results.
Why use it?
It removes the need to find every relevant page manually when researching a topic. It can also collect content from several URLs in one workflow.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for web searches, current-information queries, extracting content from URLs, and research workflows that need ranked results.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xg-gh-25/swarmai/s_tavily-search
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add xg-gh-25/SwarmAI --skill s_tavily-search
Clone the repo
git clone --depth 1 https://github.com/xg-gh-25/SwarmAI

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tavily-search

README.md
[![agentmods](https://agentmods.dev/badge/skills/xg-gh-25/swarmai/s_tavily-search/github.svg)](https://agentmods.dev/skills/xg-gh-25/swarmai/s_tavily-search)
Your own site
<a href="https://agentmods.dev/skills/xg-gh-25/swarmai/s_tavily-search"><img src="https://agentmods.dev/badge/skills/xg-gh-25/swarmai/s_tavily-search/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tavily-search

Your own site · 80×15
<a href="https://agentmods.dev/skills/xg-gh-25/swarmai/s_tavily-search"><img src="https://agentmods.dev/badge/skills/xg-gh-25/swarmai/s_tavily-search.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,094 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 15 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 31
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 306
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • medium Data Exfiltration · line 43
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 46
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 94
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 97
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 153
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 199
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 214
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 231
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 255
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 261
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 46
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 97
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Data Exfiltration · line 153
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00060 $0.03094
Opus 5.5 $0.00024 $0.01238
Sonnet 5.5 $0.00012 $0.00619
Haiku 4.5 $0.00006 $0.00309

Measured 1mo ago against content hash 26d8ea432b2c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

tavily-search scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

The key lives in `~/.swarm-ai/SwarmWS/.claude/settings.local.json` → `env.TAVILY_API_KEY`.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s https://api.tavily.com/usage -H "Authorization: Bearer $TAVILY_API_KEY"
backend/skills/s_tavily-search/SKILL.md · 355 lines

How it starts

The opening of the file, as written. The whole thing — 355 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Why? WebFetch can only grab a single known URL. Tavily searches the entire web, returns ranked results with relevance scores, and can generate AI-powered answers -- all in one API call. Essential for answering "what's the latest on X?" or powering research workflows.


Quick Start

"Search the web for latest AI agent frameworks"
"What's the latest news about OpenAI?"
"Extract the main content from these 5 URLs"

Setup — resolving the key (robust in ANY session)

The key lives in ~/.swarm-ai/SwarmWS/.claude/settings.local.json → env.TAVILY_API_KEY. The harness injects it as $TAVILY_API_KEY only on sessions spawned AFTER the key was saved — an older tab's process env is empty, so echo $TAVILY_API_KEY can be blank even though the key is configured. Never conclude "key not set" from an empty env var alone.

Always resolve the key env-first, settings-file-fallback — this one line works in every session, old or new. Put it at the top of any Tavily call:

TAVILY_API_KEY="${TAVILY_API_KEY:-$("$SWARM_BACKEND_BIN" py -c "import json,os;print(json.load(open(os.path.expanduser('~/.swarm-ai/SwarmWS/.claude/settings.local.json')))['env']['TAVILY_API_KEY'])" 2>/dev/null)}"

(settings.local.json is gitignored → the key never leaves the machine.)

💰 Free-tier only — do NOT incur paid usage

This account is on the free Researcher plan (1,000 credits/month). Keep it free:

  • NEVER upgrade the plan or enable pay-as-you-go (paygo) to work around a credit limit.
  • On a 432 Credit limit error → STOP and tell the user; wait for the monthly reset. Do not auto-fall-back to any paid tier.
  • Default to search_depth: "basic" (1 credit) — reserve advanced (2 credits) for when the user explicitly needs depth.
  • Check remaining credits any time (read-only, costs nothing):
    curl -s https://api.tavily.com/usage -H "Authorization: Bearer $TAVILY_API_KEY"
    
    account.plan_usage / plan_limit = free-tier counter; paygo_usage must stay 0.

Read the full file on GitHub · 355 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · -4 lines · -6 tokens per session 26d8ea432b2c
  2. 1mo ago Changed · +21 lines scan A → B a559d4ea9e34
  3. 2mo ago First seen · 338 lines · 66 tokens per session scan A e231e833313f

Subscribe to this mod's changes

tavily-search is a skill published in the GitHub repository xg-gh-25/SwarmAI (66 stars, last pushed today), licensed MIT. It adds 60 tokens to every session and 3,094 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 2 findings (reads agent configuration directories, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

tavily-search compared with skills from other repositories

tavily-search next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tavily-searchxg-gh-25/SwarmAISkill66todayMITB60Claude Code, Codex
hindsight-architectvectorize-io/hindsightSkill64kyesterdayMITA35Claude Code, Codex
hindsight-localvectorize-io/hindsightSkill64kyesterdayMITA32Claude Code, Codex
hindsight-coding-agentvectorize-io/hindsightSkill64kyesterdayMITA74Claude Code, Codex
bot-handoffvectorize-io/hindsightSkill64kyesterdayMITA57Cursor
memory-contextvectorize-io/hindsightSkill64kyesterdayMITA47Cursor
routine-memoryvectorize-io/hindsightSkill64kyesterdayMITA54Cursor