Skip to main content

Configuration

Configuration is stored at ~/.antseed/config.json. Use antseed config commands or edit the file directly.

Config Sections

SectionDescription
identityDisplay name
sellerPricing, max concurrent buyers, service categories, agent directory
buyerMax pricing thresholds, proxy port
paymentsChain ID (base-mainnet by default)
networkBootstrap nodes
pluginsInstalled plugin packages

Pricing

Pricing is in USD per million tokens. Set defaults and optional per-service overrides:

# Defaults
antseed config seller set pricing.defaults.inputUsdPerMillion 3
antseed config seller set pricing.defaults.cachedInputUsdPerMillion 0.3
antseed config seller set pricing.defaults.outputUsdPerMillion 15

# Per-service override
antseed config seller set pricing.services '{"claude-sonnet-4-6":{"inputUsdPerMillion":3,"cachedInputUsdPerMillion":0.3,"outputUsdPerMillion":15}}'

Or set at runtime without modifying the config file:

antseed seed --provider anthropic --input-usd-per-million 3 --output-usd-per-million 15

Buyers can set max pricing thresholds to avoid expensive providers:

antseed config buyer set maxPricing.defaults.inputUsdPerMillion 25
antseed config buyer set maxPricing.defaults.outputUsdPerMillion 75

Identity and Metadata

# Set display name (shown in browse/discovery)
antseed config set identity.displayName "Acme Inference - us-east-1"

# Set service category tags (announced in peer metadata)
antseed config seller set serviceCategories.anthropic.claude-sonnet-4-6 '["coding","privacy"]'

Recommended category tags: privacy, legal, uncensored, coding, finance, tee. Custom tags are allowed.

Provider Authentication

Provider plugins authenticate with their upstream AI service. Credentials are set via environment variables and never leave the machine:

ProviderAuth
anthropicANTHROPIC_API_KEY
openaiOPENAI_API_KEY (optional OPENAI_BASE_URL for Together, OpenRouter, etc.)
local-llmNo auth needed (Ollama/llama.cpp)

Service Aliases

When using the openai provider, announce buyer-facing service names while forwarding different upstream IDs:

export ANTSEED_ALLOWED_SERVICES="deepseek-v3.1,kimi-k2.5"
export OPENAI_SERVICE_ALIAS_MAP_JSON='{"deepseek-v3.1":"deepseek-ai/DeepSeek-V3.1","kimi-k2.5":"moonshotai/Kimi-K2.5"}'
antseed seed --provider openai

Ant Agent

Providers can wrap their service with an ant agent — a knowledge-augmented AI service that injects a persona, guardrails, and on-demand knowledge into buyer requests.

{
"seller": {
"agentDir": "./my-agent"
}
}

The agent directory contains an agent.json manifest defining persona, guardrails, knowledge modules, and custom tools. The LLM decides which knowledge to load during the conversation. Buyers see only the final response.

Per-service agents (different agents for different services):

{
"seller": {
"agentDir": {
"social-strategist": "./agents/social",
"code-reviewer": "./agents/coding",
"*": "./agents/default"
}
}
}

See the @antseed/ant-agent README for the full manifest reference.

Identity Storage

PriorityMethodBest for
1ANTSEED_IDENTITY_HEX env varCLI and server deployments
2Desktop keychain (Electron safeStorage)AntSeed Desktop app
3Custom IdentityStoreKMS/HSM integrations
4~/.antseed/identity.key (plaintext)Not recommended for production

For production servers, pass the key from a secrets manager:

export ANTSEED_IDENTITY_HEX="$(vault kv get -field=key secret/antseed/identity)"

Runtime Environment Variables

VariableDescription
ANTSEED_IDENTITY_HEXIdentity private key (64 hex chars, optional 0x prefix)
ANTSEED_SETTLEMENT_IDLE_MSIdle time before settling a session (default: 600000 / 10 min)
ANTSEED_DEFAULT_DEPOSIT_USDCDefault lock amount per session (default: 1)
ANTSEED_DEBUGEnable debug logging (set to 1)
ANTSEED_ALLOWED_SERVICESComma-separated list of services to announce