Skip to main content

Become a provider

Providers earn USDC by serving AI requests to buyers on the Antseed network. This guide takes you from a fresh machine to a seller that buyers can reach.

Add value, don't resell access

Antseed is for providers who build differentiated services: TEE-secured inference, domain-specific skills or agents, fine-tuned models, or managed products. Reselling raw API access or subscription credentials is not the intended use and may violate your upstream provider's terms. The subscription-based plugins (claude-code, claude-oauth, openai-responses) are for testing only. You are responsible for complying with your upstream provider's terms.

Prerequisites​

  • Node.js 20 or newer.
  • An upstream to serve from: an OpenAI-compatible API key, an Anthropic API key, or a local model server (Ollama or llama.cpp).
  • A little ETH on Base for the gas your seller spends on registration and settlement.
  • A machine with a public IP address, or a port you can forward to it. See Server requirements for its size.

Server requirements​

MinimumRecommended for production
CPU1 vCPU2 vCPUs
Memory1 GiB4 GiB
Disk10 GB20 GB or more
NetworkA public IP address or forwarded ports, with UDP 6881 and TCP 6882 openThe same

A seller passes requests on to its upstream, so it needs little CPU. An idle seller uses about 200 MB of memory. Under traffic its memory follows the size and number of requests in flight: a request stays in memory while it is served, and one request can be as large as 64 MiB. The disk holds your payment channels and metering history under ~/.antseed, which grows with traffic.

These figures are for the seller alone. If the same machine also runs your model server, add what that needs.

On Linux, start a production seller with these variables in its environment. Without them glibc keeps the memory of freed request buffers, so the seller's memory stays at the highest point traffic ever pushed it to. The TEE seller image sets them itself.

Terminal
export MALLOC_ARENA_MAX=2
export MALLOC_MMAP_THRESHOLD_=131072
export MALLOC_TRIM_THRESHOLD_=131072

A TEE seller needs more memory than this. See Server requirements for a TEE seller.

1. Install the CLI​

Terminal
npm install -g @antseed/cli

See Install for other options.

2. Create your identity​

Your identity is a secp256k1 private key. Its EVM address is both your peer ID on the network and the wallet that receives your USDC.

Run the setup wizard. It creates a key at ~/.antseed/identity.key if you don't have one, then walks you through adding a provider and services:

Terminal
antseed seller setup

To use a key you already manage (for example from a secrets manager), set it in the environment instead. It takes precedence over identity.key:

Terminal
export ANTSEED_IDENTITY_HEX=<64-hex-char-private-key>

Use a dedicated key for your seller. To encrypt identity.key at rest, see Protecting wallet keys; an encrypted key needs ANTSEED_PASSPHRASE or ANTSEED_PASSPHRASE_FILE set whenever the seller starts.

To try the whole loop first, with no funds and nothing announced, see Test your seller before going live.

3. Fund and register​

Send a small amount of ETH on Base to your seller address, then register your identity on-chain:

Terminal
antseed seller status     # shows your wallet address
antseed seller register
antseed seller status # "Seller eligible" should now be true

Staking is optional for selling. To earn ANTS rewards on top of USDC, see Staking.

For production, point the seller at your own Base RPC endpoint rather than the public default. See Base RPC.

4. Add services​

Everything you announce lives in ~/.antseed/config.json. If you skipped the wizard, add a provider (which installs its plugin) and then one entry per service:

Terminal
antseed config seller add-provider inference \
--plugin openai \
--base-url https://api.example-inference.com

antseed config seller add-service inference deepseek-v4-flash \
--upstream "<upstream-model-id>" \
--input 0.25 --cached 0.025 --output 1 \
--categories coding

antseed config seller add-service inference kimi-k2.6 \
--upstream "<upstream-model-id>" \
--input 0.6 --cached 0.06 --output 2.5 \
--categories coding

Prices are USD per million tokens. --upstream maps the service name buyers request to your upstream's model ID; omit it when they match. Set --base-url without the /v1 suffix, because the plugin appends the request path.

For a local model, use the local-llm plugin:

Terminal
antseed config seller add-provider ollama --plugin local-llm
antseed config seller add-service ollama gpt-oss-120b --input 0 --output 0

See Seller configuration for capabilities, categories, free-tier limits and every other setting, and Image and video services for per-image and per-video pricing.

5. Start the seller​

Upstream credentials stay in environment variables; everything else comes from config.json:

Terminal
export OPENAI_API_KEY=<your-upstream-key>
antseed seller start

seller start checks before it begins announcing: at least one service per provider, ETH for gas, and on-chain registration. It prints what is missing and the command that fixes it.

The checks need the Base RPC. If it and its fallbacks don't answer after 3 tries, a seller with priced services doesn't start. A seller whose services are all free starts without payments. To test without payments, set ANTSEED_ENABLE_SETTLEMENT=false.

It also serves your seller dashboard on 127.0.0.1:3120: status, model health, gas, earnings, request logs, prices against other sellers, settings and alerts. In a terminal, seller start prints the link. For a seller running as a service, antseed seller dashboard prints it. Pass --no-dashboard to turn it off. See Monitoring.

6. Make sure buyers can reach you​

The seller listens on UDP 6881 (DHT) and TCP 6882 (buyer connections). Allow both through your firewall, then tell buyers which address to dial:

Terminal
antseed config seller set publicAddress "peer.example.com:6882"
antseed seller doctor

seller doctor checks that the announced address is public and opens a TCP connection to it. A successful local probe does not prove that the port is open from outside, so confirm from another network:

Terminal
antseed network peer <peerId>

Your services, prices and categories should appear. Run antseed network browse to see where you sit among other providers.

Next steps​