Documentation v1 · UPDATED 21 AUG 2026
Get an API key

aispot CLI

The aispot CLI is the scriptable client for Spot. It is a clap front-end over the Rust token-gateway-sdk crate: every gateway call goes through BuyerClient, SellerClient, or health. Agents should prefer it for a one-shot health check, a Chat Completions call, or the list of developer URLs.

The binary name is aispot. Do not look for a spot package on npm, PyPI, or Homebrew — those names belong to unrelated projects. aispot is not published to those registries.

Install

Build from this repository (Rust 1.78, same pin as the gateway):

cargo run -p aispot -- --help
cargo build --release --locked --bin aispot
./target/release/aispot health

Release uploads a precompiled Linux amd64 artifact named aispot-linux-amd64 (the file inside is dist/aispot), the same way it ships the gateway binary. Other platforms build from source.

The crate lives at aispot/ and depends on token-gateway-sdk/ by path.

Commands

CommandSDK call
aispot healthtoken_gateway_sdk::healthGET {base}/health
aispot chat --message TEXTBuyerClient::chat_completions
aispot seller registerSellerClient::register
aispot seller askSellerClient::submit_ask
aispot seller cancelSellerClient::cancel_ask
aispot seller capacitySellerClient::report_capacity
aispot seller tradesSellerClient::list_trades
aispot docsPrint the aispotmarket developer URLs (no network)
aispot openapiPrint the OpenAPI URL (no network)

Default API host is https://api.aispotmarket.com. Override with --base-url or SPOT_API_URL. --from-config URL calls the SDK's GET {url}/config discovery (gatewayApiUrl) instead.

Buyer calls need --api-key or SPOT_API_KEY (or BUYER_API_KEY). Authenticated seller calls need --seller-key or SPOT_SELLER_KEY.

aispot health
aispot chat --message "hello" --model gpt-4 --max-price 0.05 --api-key "$SPOT_API_KEY"
aispot docs
aispot seller register --name acme --endpoint http://127.0.0.1:9000/infer --model gpt-4 --api-key sk-seller

See Authentication, Chat completions, Rate limits, and the crate README in aispot/README.md.