Munition
File upload

Your agent made a file.Now it has a link.

Publish one file, up to 10 MiB, at a public URL for 7 days. Agents use the upload tool of the local @munition/mcp server, which reads the file from disk. Your own code buys an upload slot over x402, then sends the bytes.

Quick start · HTTP + x402
Unpaid, this answers 402 with the price. Pay with any x402 client and send it again.
bash
curl -sS -i https://api.munition.io/v1/uploads \
  -H 'Content-Type: application/json' \
  --data '{"filename":"agent-report.pdf","mime":"application/pdf","size":42000,"sha256":"b43cd80a9e6155029135a38c0559aff6696566c431bfb8a9c9433882898247d1","sha256Base64":"tDzYCp5hVQKRNaOMBVmv9mllZsQxv7ipyUM4gomCR9E=","tags":["agent-output","report"]}'
Price
$0.005 per upload
File
One file, up to 10 MiB
Link
Public for 7 days, renewable up to 30
Where
Local server or HTTP, not the connector

Tools and routes

The same operation as an MCP tool, charged to a Munition account, and as HTTP routes paid per request. One fixed price each.

  • Upload a file

    Over MCP, give a local path. Over HTTP, buy a slot with the file's name, type, size and SHA-256, then PUT the bytes to the presigned URL within 10 minutes.

    MCPuploadlocal server
    $0.005
    x402POST /v1/uploads
    $0.005
    MPPPOST /v1/mpp/uploads
    $0.005
    Example request body
    json
    {
      "filename": "agent-report.pdf",
      "mime": "application/pdf",
      "size": 42000,
      "sha256": "b43cd80a9e6155029135a38c0559aff6696566c431bfb8a9c9433882898247d1",
      "sha256Base64": "tDzYCp5hVQKRNaOMBVmv9mllZsQxv7ipyUM4gomCR9E=",
      "tags": [
        "agent-output",
        "report"
      ]
    }
  • Renew

    Add 7 days to a file, up to 30 days after the upload.

    MCPrenew_uploadlocal server
    $0.005
    x402POST /v1/uploads/{id}/renew
    $0.005
    MPPPOST /v1/mpp/uploads/{id}/renew
    $0.005
  • Delete

    Remove a file before it expires. Free over MCP.

    MCPdelete_uploadlocal server
    Free
    x402DELETE /v1/uploads/{id}
    $0.001
    MPPDELETE /v1/mpp/uploads/{id}
    $0.001
  • Recent uploads

    List the account's files that are not deleted, most recent first. MCP only, free.

    MCPrecent_uploadslocal server
    Free

Use it in your AI app

Add the local Munition server to Claude Code, Codex, Cursor or Claude Desktop, then ask in plain words. The remote connector cannot read your disk, so upload needs the local server.

  • “Upload ./coverage/index.html with Munition and add the public URL to the PR description.”

  • “Upload ./out/chart.png with Munition, tag it chart, and give me a Markdown image link.”

  • “List my recent Munition uploads and renew release-notes.html for another 7 days.”

Two ways to pay

A Munition account

For the MCP tools. Connecting creates the account in one click, with no email and no API key. Each call is charged to its balance; when funds run out, the tool returns a top-up link (card where available, or USDC on Base). A connector connection spends at most $1 per call and $5 per 24 hours.

x402, per request

For the HTTP routes, with no account and no key. The route answers 402 with the price; the agent signs a USDC payment from its own wallet, on Base, Polygon, Arbitrum or Solana, and sends the request again.

How payment works

FAQ

The connector runs on Munition's servers and cannot read files on your computer. The local server runs next to your files.

Anyone with the URL. It cannot be guessed, but do not upload secrets, .env files or customer data.

No. The slot is paid when it is created. Retrying with the same Idempotency-Key returns the same slot.

Reference

Every field, limit and error

Inputs, outputs, limits and what each route does when something fails after payment.