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

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.

agentmods
npx agentmods add skills/osaurus-ai/osaurus-tools/fetch
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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00036 $0.00674
Opus 5 $0.00018 $0.00337
Sonnet 5 $0.00007 $0.00135
Haiku 4.5 $0.00004 $0.00067

Measured 4d ago against content hash ba2bce3bc760, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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. 4d 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 (56 stars, last pushed 14d ago), licensed MIT. It adds 36 tokens to every session and 674 once invoked, about $0.0002 per session on Opus 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

Other skills, from other repositories

use-agent-browser-for-airi

Test AIRI display-model imports with agent-browser across stage-tamagotchi Electron, stage-web, and stage-pocket mobile web layouts. Use when uploading and verifying contributor-supplied Live2D ZIP, VRM, or MMD ZIP/PMX/PMD files through AIRI's model selector, including onboarding bypass, format-specific import…

moeru-ai/airi · 87 tokens

opencli-sitemap-author

Use when creating or maintaining OpenCLI site sitemaps: agent-facing navigation, page-state, action, workflow, API-reference, pitfall, and fallback knowledge for a website. Use after browser exploration discovers durable site context, when a sitemap is stale, or when promoting local site knowledge into the repo.

jackwener/OpenCLI · 67 tokens

interactive-login

How to complete browser/interactive logins (aws / gh / glab / gcloud). The platform backgrounds the login poller so it survives the human's browser round-trip — and when that does NOT work.

yc-software/qm · 46 tokens

pinchtab-mcp

Use this skill when a task requires browser automation through PinchTab's MCP server connected to a remote browser instance. Covers navigation, element interaction, data extraction, form filling, multi-step flows, and session management via MCP tools.

pinchtab/pinchtab · 52 tokens

web-browser

Automate and interact with web pages through Chrome or Chromium using the Chrome DevTools Protocol (CDP): navigate, click, fill forms, inspect content, take screenshots, and debug console or network activity. Use when an agent needs a real browser. Prefer headless Chrome unless visible browser interaction is required.

mitsuhiko/agent-stuff · 64 tokens

traceway-setup

Analyze and instrument repositories for Traceway observability. Use when the user wants to plan, add, migrate, or verify Traceway or OpenTelemetry monitoring for backend, browser, full-stack, mobile or iOS, or AI-agent software, including project topology and user-approved setup-plan creation. Backends use OTLP/HTTP…

tracewayapp/traceway · 134 tokens