Set up with CLI
The nativeport command for humans and shell-driven agents
@nativeport/cli is a zero-dependency Node 20+ command over the Agent API: find an endpoint, read its price, call it natively, check your balance. It is also published under the short alias nativeport, so npx nativeport and npx @nativeport/cli are the same thing.
Store your key once
Prompts for the key without echoing it (or pass --key). It is validated against the gateway and stored with mode 0600 under ~/.config/nativeport/. NATIVEPORT_API_KEY in the environment always wins, which is what CI and agents should use.
Find, inspect, call
call defaults method, path and body to the entry’s example; override with --method, --path (must start with the entry’s /<provider>), --query k=v and --body (literal JSON, @file, or - for stdin). Status goes to stderr and the body to stdout, so | jq works. Binary bodies are written to --out or an auto-named file.
Commands
Every command accepts --json. Colors appear only on a TTY and never when NO_COLOR is set.
Exit codes
An agent can branch on these without parsing text.
Source and issues: github.com/nativeport/nativeport-cli. Install globally with npm i -g @nativeport/cli for a bare nativeport command.