@antseed/provider-anthropic
v0.1.6
Published
Anthropic API key provider plugin for Antseed
Downloads
599
Readme
@antseed/provider-anthropic
Provide Anthropic API capacity on the AntSeed P2P network using a commercial API key.
Important: Simply reselling raw API access without adding value may violate your API provider's terms of service. AntSeed is designed for providers who build differentiated services on top of API access — for example, running inference inside a Trusted Execution Environment (TEE), packaging domain-specific skills or agents, fine-tuned models, or offering a managed product experience. Always review your API provider's usage policies before offering capacity on the network.
Installation
antseed plugin add @antseed/provider-anthropicUsage
export ANTHROPIC_API_KEY=sk-ant-...
antseed seed --provider anthropicConfiguration
| Key | Type | Required | Default | Description |
|-----|------|----------|---------|-------------|
| ANTHROPIC_API_KEY | secret | Yes | -- | Anthropic API key |
| ANTSEED_INPUT_USD_PER_MILLION | number | No | 10 | Input token price (USD per 1M) |
| ANTSEED_OUTPUT_USD_PER_MILLION | number | No | 10 | Output token price (USD per 1M) |
| ANTSEED_MODEL_PRICING_JSON | string | No | -- | Per-model pricing as JSON |
| ANTSEED_MAX_CONCURRENCY | number | No | 10 | Max concurrent requests |
| ANTSEED_ALLOWED_MODELS | string[] | No | -- | Comma-separated model allowlist |
Per-Model Pricing
Override pricing for specific models:
export ANTSEED_MODEL_PRICING_JSON='{"claude-sonnet-4-5-20250929":{"inputUsdPerMillion":12,"outputUsdPerMillion":18}}'How It Works
Uses BaseProvider and StaticTokenProvider from @antseed/provider-core to relay requests to https://api.anthropic.com with x-api-key authentication.
