antseed-connect
它能做什么
本指南展示如何将常用的编程工具和 AI 库连接到 AntSeed,这是一个用于获取 AI 模型访问的点对点市场。连接之后,请求会通过你电脑上的一个小型本地代理发送。
适用场景
- ✓当你希望 Claude Code、Codex 或类似工具通过 AntSeed 发送请求的时候。
- ✓当你使用 AI 库构建应用,并希望把 AntSeed 作为提供方的时候。
- ✓当你需要设置工具应调用的本地地址时。
技能链接
https://github.com/internet-court/internet-court-skill/blob/main/vendored/antseed/antseed-connect/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我想让 Claude Code 通过 AntSeed 发送它的请求。”
每周 5 个新技能,1 分钟读完。
工作原理
AntSeed 会在你的电脑上以固定地址运行一个小型本地代理。你的工具像指向其他 AI 端点一样指向该地址,代理会在网络上找到提供方,并把请求发送过去。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
AntSeed — Integration Skill
This file is the agent-readable companion to https://antseed.com/integrations. It tells any AI agent (Claude, Codex, OpenClaw, Hermes, custom) exactly how to wire its tool of choice up to the AntSeed peer-to-peer inference network.
What is AntSeed?
AntSeed is a peer-to-peer marketplace for AI inference. Buyers run a small
local daemon (the buyer proxy) that exposes an HTTP API at
http://localhost:8377 speaking the three caller-facing LLM API protocols:
Anthropic Messages, OpenAI Chat Completions, and OpenAI Responses. Legacy
OpenAI Completions is supported internally for adapter translation. The proxy
discovers providers on a DHT, routes the
request to a peer, translates between protocols when needed (via
@antseed/api-adapter), and settles in USDC on Base.
Important: AntSeed is for value-added AI services (specialized models, agents, TEEs, fine-tunes, managed workflows), not raw resale of API keys or subscription access. Providers must comply with upstream terms of service.
From the perspective of any tool, SDK, or agent, AntSeed is just a local
OpenAI/Anthropic-compatible endpoint — point a base_url at it and you are done.
Glossary (mental model)
Buyer proxy — the local server on
localhost:8377that accepts API calls from your tools and forwards them to AntSeed peers. It is the only thing your editor / agent / SDK ever talks to.Peer — someone selling inference. Each peer has a
peerId(40-char hex), a display name, and a list of services. List withantseed network browse.Service — a single model id like
claude-sonnet-4-6ordeepseek-v4-flash. This is what you pass asmodelin your tool's config. Each service has its own native protocol list and its ownin/cachedIn/outpricing.Protocols (per service) — the wire formats a service accepts natively, advertised on each peer in
providerServiceApiProtocols[provider].services[service]. Values areanthropic-messages,openai-chat-completions,openai-responses,openai-completions. This is the field to match your tool's wire format against. If your tool's wire format is in this list, the request passes through untouched; if not, the api-adapter translates on the fly.Cached input pricing — services charge a separate, much lower rate (typically 4–10×) for tokens that are reused across requests: system prompts, tool schemas, prior conversation turns, long files you keep referencing. The CLI exposes it as
cachedInputUsdPerMillion. For long-running agents and chatbots, this is often the dominant cost line.Pin — telling the buyer proxy "route requests to this peer." In the default manual flow, there is no peer auto-selection; you must choose a peer, send a per-request pin header, or start the proxy with a router plugin that performs selection. Common explicit routes:
- Session pin:
antseed buyer connection set --peer <peerId>. Persists in~/.antseed/buyer.state.jsonand applies to every request until you change it. - Per-request header:
x-antseed-pin-peer: <peerId>on each call. Overrides the session pin for that request, and works without any session pin at all. - Model prefix: set
modelto<peerId>@<service>. The proxy uses the prefix as the peer pin and forwards only<service>to the seller.
If both header and model-prefix pins are present, the header selects the peer; the model prefix is still stripped before routing. Until at least one of these is in effect, every request returns
no_peer_pinned.- Session pin:
Universal setup (do this once)
Option A — VPR desktop app (easiest)
Download from https://antseed.com — it ships the buyer proxy, a wallet, and a
peer browser in a GUI. While the app is open the proxy is reachable at
http://localhost:8377.
Option B — CLI (headless / servers / agents)
# 1. Install
npm install -g @antseed/cli
# 2. Identity (an EVM private key — 64 hex chars). Save this somewhere safe;
# you will reuse it across machines and it controls your USDC deposits.
export ANTSEED_IDENTITY_HEX=$(openssl rand -hex 32)
# SECURITY: never paste this key into chat, logs, GitHub issues, or a file
# committed to git. It controls the buyer identity and access to deposits.
# 3. Start the buyer proxy on :8377
antseed buyer start &
# 4. Browse the network and list every service (= model) each peer offers,
# along with its nati
常见问题
AntSeed 出售 API 密钥或订阅访问吗?
不出售。该技能说明,AntSeed 用于增值 AI 服务,提供方必须遵守上游服务的条款。
这份指南涵盖哪些工具?
列出了多个,包括 Claude Code、Codex、OpenCode、LangChain、Vercel AI SDK 以及原始 HTTP 调用。
AntSeed 如何向提供方付款?
该技能说明,AntSeed 使用 Base 网络上的 USDC 结算。
详情
作者的原始描述
Connect coding agents, AI SDKs, and LLM tools to the AntSeed buyer proxy. Use when configuring Claude Code, Codex, OpenCode, Pi, OpenClaw, Hermes, GenLayer Studio, Vercel AI SDK, LangChain, or raw HTTP to route inference through AntSeed at localhost:8377.
热度
- GitHub 星标
- 7.0k
- 排名
- #13609
- 许可证
- —
- 更新时间
- 2026/10/26
评论
- …
同一仓库的更多技能
internet-court
7.0k帮你的智能体安全地向其他 AI 智能体或付费服务付款、雇用或进行交易,并指引它找到合适的专业指南。
genlayer-erc7710-connector
7.0k帮你的智能体把 AI 审核结果与权限系统连接起来,使不合格的审核可以限制或取消智能体的权限。
genlayer-intelligent-contracts
7.0k帮你的智能体定义 AI 裁判的规则、证据和输出,用于检查另一个智能体是否遵循了其授权范围。
x402-erc7710
7.0k帮你的智能体按次为网络服务付款,并设置在权限预算范围内的持续支出。