# NAUT API agent skill

A drop-in skill for AI agents to fetch verified crypto contacts, projects,
investors, service providers, and cross-search from the NAUT API
(https://api.naut.so). Call GET /v1/me first: it is free and returns every
endpoint with its path and credit price, so the list below can never be the
thing that goes stale on you.

## Install

1. Download this folder (`SKILL.md`, `README.md`, `naut_fetch.js`, `naut_fetch.py`).
2. Place it in your agent's skills directory, for example `~/.claude/skills/naut-api/`
   for Claude Code, or your framework's equivalent.
3. Set `NAUT_API_KEY` in your environment (`COMPASS_API_KEY` still works). Mint a key at
   https://naut.so/developer (the full key shows once).

## What's here

- `SKILL.md`: when to use it, the call recipe, and the conversion loops
  (sample -> subscribe, 402 -> upgrade).
- `naut_fetch.js` / `naut_fetch.py`: a single helper function, `naut`: bearer
  header, JSON parsing, and errors that carry the API's `code`, `hint` and
  `nextAt`. A `402` is raised as `NautTopUpNeeded`.
- `compass_fetch.js` / `compass_fetch.py`: the helper's earlier names. Each
  re-exports `naut_fetch`, so code that imports them keeps working.

## Samples vs live

A free account's key returns clearly-marked synthetic **samples**
(`sample: true`) at 0 credits, whatever its balance; build against them for
free. On a trial or paid plan the same key returns **live** verified data
billed in credits, and a paid key that runs out gets `402`. You never change the key.

Full guide: https://naut.so/docs/api/for-ai-agents
Machine map: https://naut.so/llms.txt
