osaurus-fetch

osaurus-fetch is a skill for Claude Code, Codex from osaurus-ai/osaurus-tools. It costs 36 tokens per session (674 once invoked), scanned A, original, MIT.

A guide for fetching public web content and files over HTTP, including JSON APIs, readable page text, and downloads. It includes limits that block private-network requests and restrict response sizes.

In plain words
What is it for?
Calling public JSON APIs, extracting text from static pages or articles, and downloading files when the site does not require JavaScript, interaction, or login.
Why use it?
It gives the agent a safer way to read public pages or call APIs when a full interactive browser is unnecessary, while reducing common server-side request risks.

Skill for Claude CodeCodex

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

Good fit Calling public JSON APIs, extracting text from static pages or articles, and downloading files when the site does not require JavaScript, interaction, or login.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/osaurus-ai/osaurus-tools/fetch
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 osaurus-ai/osaurus-tools --skill fetch
Clone the repo
git clone --depth 1 https://github.com/osaurus-ai/osaurus-tools

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 osaurus-fetch

README.md
[![agentmods](https://agentmods.dev/badge/skills/osaurus-ai/osaurus-tools/fetch/github.svg)](https://agentmods.dev/skills/osaurus-ai/osaurus-tools/fetch)
Your own site
<a href="https://agentmods.dev/skills/osaurus-ai/osaurus-tools/fetch"><img src="https://agentmods.dev/badge/skills/osaurus-ai/osaurus-tools/fetch/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 osaurus-fetch

Your own site · 80×15
<a href="https://agentmods.dev/skills/osaurus-ai/osaurus-tools/fetch"><img src="https://agentmods.dev/badge/skills/osaurus-ai/osaurus-tools/fetch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 674 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
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.00036 $0.00674
Opus 5.5 $0.00014 $0.00270
Sonnet 5.5 $0.00007 $0.00135
Haiku 4.5 $0.00004 $0.00067

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

Security

Grade A, and why

osaurus-fetch scanned grade A with 0 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 2mo 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

tools/fetch/SKILL.md · 69 lines

How it starts

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

Fetch

Lightweight HTTP client for grounding agent work in real web content. Hardened by default: SSRF guard blocks private IPs, response size capped at 10 MB, downloads sandboxed to ~/Downloads.

When to use

  • Calling a public JSON API (fetch_json).
  • Reading the content of a static page or article (fetch_html returns Markdown).
  • Saving a file to disk (download).
  • Anything where the page does not require JavaScript execution or a real browser session.

When NOT to use

  • Pages that need login, JavaScript rendering, or interaction → use osaurus.browser.
  • Web search → use the host's built-in web_search (then feed top URLs to fetch_html).
  • Reaching localhost / 127.0.0.1 / private LAN IPs → blocked by SSRF guard. Set allow_private: true only if the user explicitly asked for it.

Canonical workflow

1. web_search(query)                      → list of URLs
2. osaurus.fetch.fetch_html(url)          → { markdown, title, byline, ... }
3. Reason over the markdown

Or for APIs:

1. osaurus.fetch.fetch_json(url, headers, body)
2. data is already parsed JSON in the response

Output envelope

{
  "ok": true,
  "data": {
    "status": 200,
    "final_url": "https://example.com/after/redirects",
    "redirect_chain": ["https://t.co/abc", "https://example.com/..."],
    "protocol_version": "h2",
    "headers": { "content-type": "..." },
    "body": "...",                     // fetch only
    "json": { ... },                   // fetch_json only
    "markdown": "...", "title": "...", // fetch_html only
    "truncated": false
  }
}
{ "ok": false, "error": { "code": "...", "message": "...", "hint": "..." } }

Common error codes: INVALID_ARGS, SSRF_BLOCKED, TIMEOUT, RESPONSE_TOO_LARGE, HTTP_ERROR, EXTRACTION_FAILED, DOWNLOAD_PATH_INVALID.

Tips

  • For long pages, prefer fetch_html over fetch — the Readability extractor returns clean Markdown a model can actually use, while fetch returns the raw HTML body.
  • auth: { type: "bearer", token: "..." } is a shortcut for an Authorization header — use it instead of constructing headers manually.
  • download rejects path separators, .., and absolute paths in filename. Pass a plain filename only.
  • max_bytes caps the in-memory response. Default 10 MB. If you hit truncated: true, your data is incomplete.

Read the full file on GitHub · 69 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. 2mo ago First seen · 69 lines · 36 tokens per session scan A ba2bce3bc760

Subscribe to this mod's changes

osaurus-fetch is a skill published in the GitHub repository osaurus-ai/osaurus-tools (61 stars, last pushed 2mo ago), licensed MIT. It adds 36 tokens to every session and 674 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

osaurus-fetch compared with skills from other repositories

osaurus-fetch next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
osaurus-fetchosaurus-ai/osaurus-toolsSkill612mo agoMITA36Claude Code, Codex
interactive-loginyc-software/qmSkill16kyesterdayMITA46Claude Code, Codex
pinchtab-mcppinchtab/pinchtabSkill11k10d agoMITA52Claude Code, Codex
azure-messaging-webpubsub-javamicrosoft/skillsSkill3.2kyesterdayMITA43Claude Code
cua-driverdavidondrej/skillsSkill4.3k3d agoMITA68Claude Code, Codex
open-design-browsercompozy/compozySkill2.8kyesterdayMITA56Claude Code, Codex
southwestborski/travel-hacking-toolkitSkill895yesterdayMITA40Claude Code