@antseed/professor-harmic (英语)
使用商用API键在AntSeed P2P网络上提供Anthropic API容量.
重要内容: 简单转售原始 API 访问而不增加值可能会违反您的 API 提供者的服务条款 。 AntSeed是为那些在API访问之外建立区别服务的提供者设计的——例如,在信任的执行环境(TEE)内进行推论,包装特定域的技能或代理,微调模型,或提供管理下的产品经验. 在提供网络容量之前, 总是审查您的API 提供者的使用政策 .
安装
antseed plugin add @antseed/provider-anthropic
使用量
# Secret lives in env
export ANTHROPIC_API_KEY=sk-ant-...
# Services, pricing, and categories live in config.json
antseed config seller add-provider anthropic --plugin anthropic
antseed config seller add-service anthropic claude-sonnet-4-5-20250929 \
--input 3 --output 15 --cached 0.3 \
--categories chat,coding
antseed seller start
配置
只有上游的 API 密钥进入内置 。 服务、定价、类别和上游模式的测绘都处于 seller.providers.<name>.services[id] 内 ~/.antseed/config.json。见 配置 整个形状.
| 密钥 | 需求 | 说明 |
|---|---|---|
ANTHROPIC_API_KEY | 对 | Anthropic API 键 |
通过CLI设定定价/服务:
antseed config seller add-service anthropic claude-sonnet-4-5-20250929 \
--input 12 --output 18 --cached 6 \
--categories coding,chat
antseed config seller add-service anthropic claude-opus-4-5 \
--input 15 --output 75 \
--categories reasoning,coding
如何运作
用途 BaseProvider 财务报告和审定财务报表 StaticTokenProvider 从 @antseed/provider-core 转发请求到 https://api.anthropic.com 与 x-api-key 认证.