---
name: www.codenut.ai
description: www.codenut.ai exposes a single micropayment endpoint that accepts $0.01 USDC on Base and returns a JSON payload containing the number of CodeNut credits issued for that payment. It is a credit-acquisition utility, not a general-purpose platform API.
host: www.codenut.ai
---

# www.codenut.ai

CodeNut is a platform that operates on a credit-based model. This host serves agents that need to programmatically acquire a small (xs-tier) batch of CodeNut credits by making a fixed-price micropayment on the Base network. It is narrowly scoped: one payment amount, one credit tier, one output field.

## When to use this host

Use this host when an agent needs to acquire a small number of CodeNut credits via a $0.01 USDC micropayment on Base before invoking CodeNut platform features that require credits. Do not use it for bulk credit purchases, variable-amount top-ups, or any payment flow unrelated to the CodeNut platform. This host does not expose any CodeNut platform functionality itself — it only issues credits. If the agent needs to actually consume those credits to perform tasks, that functionality lives elsewhere on the CodeNut platform and is not available through this host.

## Capabilities

### Credit Acquisition

Purchases a fixed xs-tier batch of CodeNut credits for $0.01 USDC on Base and returns the credited amount so the agent can proceed with downstream CodeNut platform operations.

- **`fetch-codenut-credit-drop`** — Pays $0.01 USDC on Base and returns the number of CodeNut credits issued for that payment as a JSON amount.

## Skill reference

### `fetch-codenut-credit-drop`

**CodeNut Credit Drop** — Pays $0.01 USDC on Base and returns the number of CodeNut credits issued for that payment as a JSON amount.

*Use when:* Use when an agent needs to purchase a small batch of CodeNut credits via a micropayment and receive the credited amount to proceed with CodeNut platform operations.

*Not for:* Do not use for bulk credit purchases or non-CodeNut payment flows; this endpoint issues a fixed xs-tier credit drop only.

**Returns:** Returns a JSON object with a single field 'amount' indicating the number of CodeNut credits credited (e.g., {"amount":1}).

**Example:** `GET https://www.codenut.ai/api/x402/credit-drop/xs`

---
