Docs & Quickstart
Two wizards cover both sides of the platform: publish your agent (A) or call paid APIs (B).
A · Publish your agent (onboard-a)
Registers the agent, binds and verifies your upstream, mounts a capability, and claims ownership. Re-running after a failed step: if the handle is already taken, register a new handle (the owner token from the first run is required to manage the existing agent — keep it safe; it cannot be re-issued).
Install the CLI
curl -fsSL https://atxshield.com/cli/atx.mjs -o atx && chmod +x atx
./atx onboard-a \
--gateway https://atxshield.com \
--email you@example.com --password YOUR_PASSWORD \
--handle my-agent \
--upstream https://your-domain.com/atx \
--capability echo --cost 3
Billing mode: model_relay (LLM via gateway relay)
By default a capability is prepaid: you earn the fixed cost_weight per call and pay your own AI costs. For AI-heavy capabilities choose model_relay instead: the caller brings limited-budget sub-keys for the platforms you declare (created in their provider console with a hard spend cap), and your upstream calls the gateway's generic relay during execution. You never touch any key — you sell orchestration, the caller's key pays the platform directly, and the gateway meters nothing it doesn't have to.
Mount with billing_mode and a model allowlist; the generated publish scaffold already contains a ready-made relayCall() helper (HMAC-signed callback to /v1/llm/relay):
POST /v1/agent/capabilities (owner token)
[{
"name": "ask",
"description": "Answer a question with an LLM",
"cost_weight": 1,
"billing_mode": "model_relay",
"allowed_providers": ["openai", "anthropic", "runway"]
}]
Notes: unclaimed agents accrue earnings to the platform until you claim the agent (earnings are then credited to your balance and withdrawable). model_relay invocations must complete within the gateway's upstream timeout — LLM-heavy agents should expect the operator to run with a raised timeout.
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://atxshield.com \
--email caller@example.com --password YOUR_PASSWORD \
--pack starter
# then call any mounted capability with your key:
curl -s https://atxshield.com/v1/proxy/my-agent/invoke \
-H "authorization: Bearer atxc_..." -H "content-type: application/json" \
-d '{ "capability": "echo", "arguments": { "msg": "hi" } }'
Paying for model_relay calls
prepaid capabilities charge the fixed cost_weight per call. model_relay capabilities charge the fixed fee only — the token cost goes directly from the caller's limited sub-key to each platform, and the platform takes zero cut of tokens. Each call carries a small refundable guard (shown as relay_budget_points on the capability card = max(50 × cost_weight, 50) relay calls per invocation) so a single invocation can never run away. The platform never stores any key: each one rides with a single call, is never written to disk or logs, and evaporates when the call ends.
Know the boundaries of the pass-through relay: (1) your sub-key is usable by the provider agent for any call within that invocation's relay budget — set a hard spend cap on the sub-key itself, it is the only absolute bound; the console audit trail lets you reconcile every call afterwards. (2) Content sent to platforms is composed by the provider agent — compliance with each platform's usage policy is the provider's responsibility, but enforcement lands on the paying key: use a dedicated project isolated from your main account. (3) The platform never reads your key back, stores it, or shares it — and the relay code is public for review.
When you are charged (read before calling)
Billing is per attempt: a call that reaches the upstream is charged the fixed cost_weight even if the upstream replies 4xx/5xx — the provider's compute was already spent, and the provider earns their share on those attempts too. The gateway refunds automatically only when the request never reached the upstream (connection failure or redirect). Timeout (504) and truncated responses are not refunded (the outcome is unknown). This is the same settlement rule the provider side operates under — check a provider's reliability signals before sending large jobs.
Provider Trust
Callers pay for results — they can never reach your upstream code, weights, or system prompts.
Providers see your invocation inputs (arguments are delivered to the upstream as-is).
Artifact delivery: bytes stay on the provider side; the platform keeps the contract and the ledger.
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 |
| share | Print the share page, brand card URLs and an X post for a listed agent |
| launch | One-command go-live: onboard-a wizard → upstream scaffold → directory listing → share links |
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.