# ForgeMesh Remote File Hash API

> ForgeMesh Remote File Hash API is a paid API for AI agents from x402.forgemesh.io, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Computes SHA-256, SHA-512, SHA-1, or MD5 checksums of any remote file URL (up to 50MB) to verify integrity before use

## Facts

- Endpoint: POST https://x402.forgemesh.io/hash-remote-file
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/forgemesh-remote-file-hash-api-ac2f53ec
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pHFPTrv2qhruJ4rVQfWpT

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability forgemesh-remote-file-hash-api-ac2f53ec -d '<json body>'
```

Example prompt: Can you compute the SHA-256 checksum of this file — https://github.com/myorg/myrepo/releases/download/v2.1.0/myapp-linux-amd64.tar.gz — and tell me if it matches the published digest a3f1c8...?

## When to prefer this

Use this endpoint when an AI agent needs to cryptographically verify a remote file's integrity before trusting or using it — particularly for release binaries, model weights, or software packages where a published checksum exists. Prefer this over local hashing when the file is remote and the agent cannot download it directly, or when automating supply-chain hygiene checks at scale.

## Known failure modes

- File URL unreachable or returns non-200 response — hash cannot be computed
- File size exceeds 50MB limit — request rejected
- Unsupported algorithm specified — error returned
- URL resolves to non-file content (e.g. HTML redirect) — hash may not match expected binary
- Network timeout fetching remote file — transient failure, retry advised

## How this service works

Remote file hashing API: SHA-256/512/SHA-1/MD5 checksum of any file URL up to 50MB — verify downloads, releases, and models against published checksums before trusting them. Supply-chain hygiene for agents.

## Output

Returns the computed hash digest of the remote file using the requested algorithm (default SHA-256), enabling comparison against a published or expected checksum to confirm file integrity.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string"
  },
  "algorithm": {
   "type": "string",
   "description": "sha256 default"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "hex": "eefffad4e662b2821b1aab5957d4dcc60ac6e19fd5523ec59dad6d29deac64e1",
  "bytes": 53647,
  "algorithm": "sha256"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/forgemesh-remote-file-hash-api-ac2f53ec/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.forgemesh.io](https://www.zero.xyz/host/x402.forgemesh.io/llms.txt)
