From discovery to paid API call in one command.
The ArkAPI client discovers the live catalog, validates inputs from OpenAPI, calls tools with Bearer or Ark-402 authentication, and turns the current API into MCP tools for compatible agents.
Install
Download the binary for your architecture, verify it, then install it on your path.
ARM64 users should substitute arkapi-linux-arm64.
Bearer quick start
Create a session and save its token directly into a private client file. The token is omitted from normal output.
Token files are created with mode 0600. The client never accepts a token as a command-line flag.
Give an agent MCP tools
arkapi mcp serve reads the live catalog and OpenAPI document, then publishes each paid endpoint as a typed MCP tool. Add this stdio server to any compatible host:
The default local policy allows at most 25 sats per call and 100 sats of API calls per UTC day. Change those only when the agent's authority requires it.
Ark-402 mode
Ark-402 lets a dedicated Bark wallet pay once, then sign each request against its credit. Install the matching helper alongside the client.
Automatic top-ups are off by default. Use a dedicated, low-balance wallet and keep wallet credentials outside prompt context.
Opt-in automatic top-ups
Only enable payment automation when the agent is authorized to spend. Both per-top-up and daily limits are enforced locally.
A request with an uncertain network outcome remains charged against the local budget until reconciled. This prevents a timeout from silently widening spending authority.
Built-in guardrails
| Control | Default |
|---|---|
| Maximum API cost per call | 25 sats |
| Daily API-call budget | 100 sats |
| Ark-402 automatic payment | Off |
| Maximum Ark-402 top-up | 100 sats |
| Daily Ark-402 top-up budget | 500 sats |
| Bearer token transport | HTTPS, localhost, Tor onion, or I2P only |
Inspect current local usage with arkapi usage. See the agent skill for billing, retry, Tor, I2P, and ambiguous-response guidance.