# ofetch — card for AI agents

A better fetch for Node.js, browsers and workers, with retries and JSON parsing.

Category: HTTP clients and networking · npm package `ofetch` · latest version 1.5.1 (checked 2026-11-01)
Install: `npm install ofetch`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 53.9 (#1463 of all tools, 46 of 125 in its category)
- Used in 11 public projects set up for AI coding agents (0.2%)
- Downloads last week: 27,318,852 (as of 2026-11-17), -14.3% over 4 weeks
- GitHub stars: 5,368 (as of 2026-11-17)
- Last push: 2026-11-17

## Often used with
Vitest 92.9%, Vite 78.6%, Zod 85.7%, @antfu/eslint-config 57.1%, tsx 57.1%, Model Context Protocol SDK (JavaScript) 50.0%

## Checked alternatives (same job)
- Axios: https://agentgid.com/tools/axios/agent.md
- node-fetch: https://agentgid.com/tools/node-fetch/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/ofetch/
- Homepage: https://github.com/unjs/ofetch#readme
- Repository: https://github.com/unjs/ofetch

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
