TheDocumentation Index
Fetch the complete documentation index at: https://docs.natural.co/llms.txt
Use this file to discover all available pages before exploring further.
natural CLI is the fastest way to exercise the Natural API while you build an agent — run a call before you wire it into code, set up the agent and wallets your code will run against, and see the exact request your SDK would send. Every command maps one-to-one to an API endpoint.
Install
The install script auto-detects your OS and architecture and needs no toolchain — macOS and Linux:natural to ~/.natural/bin, adding that directory to your shell profile when possible. Confirm it:
Restart your shell after installation if
natural is not immediately found on your PATH..deb, .rpm, .apk, Arch, and .zip archives are published for every platform.
To build from source with Go 1.25+:
go install drops the binary in $(go env GOPATH)/bin — add that to your PATH if natural isn’t found.
Authenticate
sk_ntl_prod_.
Confirm it works:
natural <resource> <verb> [flags]. Add --help to any command for its flags.
Test a call before you code it
Run an endpoint from the terminal and see the real response shape before you wire it into your agent.--debug prints the full HTTP request and response — the same call your SDK will make:
--amount is in cents. --counterparty takes a party ID (pty_*), email, or phone. Reusing an --idempotency-key safely returns the original result instead of charging twice.
Provision what your agent runs against
Your agent needs an agent identity, a funded wallet, and — when it acts for customers — delegations. Set them up once:natural external-accounts list then gives you the eac_* id to deposit from.
Check what your agent sees
When you’re debugging agent behavior, inspect the same state your agent reads:Script setup and CI
--format json plus jq makes the CLI scriptable for seed scripts and CI:
--transform filters output without piping to a separate tool:
0 on success and non-zero on failure — check $? in scripts.
Flags that work on every command
| Flag | What it does |
|---|---|
--api-key | API key override (or set NATURAL_API_KEY) |
--format | Output format: auto, explore, json, jsonl, pretty, raw, yaml |
--base-url | Override the API base URL (or set NATURAL_BASE_URL) |
--environment | Set the API environment |
--debug | Verbose logging, including the full HTTP request/response |
-r, --raw-output | Print string results without JSON quotes |
--transform | Transform output with GJSON syntax |
--version, -v | Print the CLI version |
payments, wallet, transactions, transfers, agents, customers, payment-requests, external-accounts — maps directly to API endpoints (natural payments create is POST /payments). Run natural <resource> --help to explore.
Related
- SDKs — the same API from Python or TypeScript, for your agent runtime
- MCP — connect Claude or Cursor to Natural
- API reference — field-level detail for every endpoint