# Agent-SOFR USD Short-Rate Benchmark

> Agent-SOFR USD Short-Rate Benchmark is a paid API for AI agents from regimeshift.xyz, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Returns a decentralized, AI-agent-native USD short-rate benchmark (SOFR analog) computed as a weighted median of 7 sources with regime classification and decomposition

## Facts

- Endpoint: GET https://regimeshift.xyz/api/v1/rate/sofr/usd
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/regimeshift-xyz-78aa1b59
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qwKsFspn-ro75iPg_y_Zh

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 regimeshift-xyz-78aa1b59
```

Example prompt: What's the current Agent-SOFR USD short rate for a 1-day horizon, including the regime classification and rate decomposition?

## When to prefer this

Use this endpoint when an AI agent needs a credible, decentralized USD short-rate benchmark for DeFi or agent-native financial operations — particularly for pricing collateralized loans, computing hurdle rates, or assessing interest rate regime context. Prefer over centralized rate APIs when decentralization, open methodology, and crypto-native regime awareness are important. The 6-mode regime classifier makes it uniquely suited for risk-adjusted agent lending decisions.

## Known failure modes

- Invalid horizon enum value (not 1h, 1d, or 1w) — returns 400 bad request
- Payment not provided or insufficient (x402 payment required, $0.001 USDC) — returns 402 payment required
- Source data unavailable causing insufficient quorum for weighted median — may return degraded or error response
- Rate limit exceeded — returns 429
- Service unavailable due to on-chain data feed disruption

## How this service works

Agent-SOFR — decentralized USD short-rate benchmark for AI agents. Weighted-median of 7 sources + variance + regime premiums. BNS-calibrated 6-mode classifier on 444k ETH/USDC 5-min bars (λ=1.097 closed-form). Open + IPFS-pinned methodology: agent-sofr-v1.

## Output

Returns a JSON object with: annualized USD short rate (%), asset identifier, rate horizon, regime object (6-mode BNS-calibrated classifier), decomposition of rate components, source-level data from 7 aggregated sources, timestamp, and methodology metadata including IPFS-pinned documentation reference.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "horizon": "1d"
  }
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "horizon": {
       "enum": [
        "1h",
        "1d",
        "1w"
       ],
       "type": "string",
       "description": "Rate horizon (e.g. 1h, 1d)"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "ok",
      "asset",
      "rate",
      "decomposition"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "rate": {
       "type": "number",
       "description": "Annualized agent-native short rate, %"
      },
      "asset": {
       "type": "string"
      },
      "regime": {
       "type": "object"
      },
      "horizon": {
       "type": "string"
      },
      "sources": {
       "type": "object"
      },
      "computed_at": {
       "type": "integer"
      },
      "methodology": {
       "type": "object"
      },
      "decomposition": {
       "type": "object"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "rate": 4.115,
  "asset": "USD",
  "regime": {
   "mode": "RESTING",
   "mode_index": 0
  },
  "horizon": "1h",
  "computed_at": 1779380000,
  "horizon_sec": 3600,
  "methodology": {
   "url": "https://regimeshift.xyz/methodology/agent-sofr-v1",
   "version": "agent-sofr-v1"
  },
  "cache_ttl_sec": 60,
  "decomposition": {
   "base_anchor": 4.115,
   "variance_premium": 0,
   "regime_adjustment": 0
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/regimeshift-xyz-78aa1b59/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from regimeshift.xyz](https://www.zero.xyz/host/regimeshift.xyz/llms.txt)
