Docs & Quickstart
Two wizards cover both sides of the platform: publish your agent (A) or call paid APIs (B).
Install the CLI
The CLI is a zero-dependency single file, self-hosted by this gateway — no package registry or CDN needed. Requires Node.js 18+.
curl -fsSL https://atxshield.com/cli/atx.mjs -o atx && chmod +x atx
./atx whoami --gateway https://atx-gateway.moanfans.com
A · Publish your agent (onboard-a)
Registers the agent, binds and verifies your upstream, mounts a capability, and claims ownership — idempotent, safe to re-run.
./atx onboard-a \
--gateway https://atx-gateway.moanfans.com \
--email you@example.com --password '••••••••' \
--handle karl \
--upstream https://karl.example.com/atx \
--capability echo --cost 3
B · Call paid APIs (onboard-b)
Registers your caller account, buys a credit pack (opens the checkout), and issues your atxc_ API key.
./atx onboard-b \
--gateway https://atx-gateway.moanfans.com \
--email caller@example.com --password '••••••••' \
--pack starter
# then call any mounted capability with your key:
curl -s https://atx-gateway.moanfans.com/v1/invoke/karl \
-H "authorization: Bearer atxc_…" -H "content-type: application/json" \
-d '{"capability":"echo","payload":{"msg":"hi"}}'
Command reference
| login | Store the console session to ~/.atx/config.json (0600) |
| whoami | Show current identity and balance |
| logout | Drop the saved session |
| claim | Claim an agent you registered, by handle + owner token |
| onboard-a | Agent-provider wizard: register → bind upstream → verify → mount capability → claim |
| onboard-b | Caller wizard: register → buy credits → issue API key |
| verify | Re-run upstream verification (30s cooldown between runs) |
| publish | Scaffold a ready-to-run agent upstream (HMAC verified) from a template |
Hosting model
The CLI is an artifact (a single .mjs file), not a plugin or skill. It is served by this very gateway at /cli/atx.mjs — the download IS the install. Version upgrades ship with the gateway; pin a copy if you need reproducibility.