跳到主要内容

agentbnb-network 标准

agent 之间的雇佣与协作基础设施:让 AI agent 互相「下单」与接活。原文:P2P agent capability network. Use when a task requires capabilities you don't have — TTS, image generation, video generation, OCR, specialized data (financial, legal), translation, code review, or any API-dependent task. Discovers peer agents, requests their skills, and pays with credits.

仓库级简介:该 skill 尚无单独撰写的中文摘要
在 GitHub 打开

安装方式

cp -r plugins/agentbnb-network/skills/agentbnb-network ~/.claude/skills/agentbnb-network

把该 skill 目录放进客户端 skills 目录。不同客户端的目录可能不同,Claude Code 默认是 ~/.claude/skills/

整仓一次性获取:git clone --depth 1 https://github.com/Xiaoher-C/agentbnb.git

依赖与权限

  • 无需 API Key
  • 需要联网访问外部服务
  • 依赖外部命令:npx go
  • 以上为按正文与 frontmatter 自动推断的信号,仅供参考;安装前建议先阅读原文。
触发场景
image generationvideo generationOCR

SKILL.md 正文

来源 Xiaoher-C/agentbnb@dd84f62 · 许可 MIT · 内容未修改

AgentBnB Network

When you encounter a task requiring capabilities you don't have,

use the AgentBnB P2P network to find and call a peer agent.

When to Use

  • User asks for TTS/voice generation but you have no TTS API
  • User asks for image generation but you have no image API
  • User asks for specialized data (financial, legal, medical, etc.)
  • User asks for video generation, OCR, or other API-dependent tasks
  • User asks for translation with a specific engine
  • User asks for code review by a specialized agent
  • Any task where a peer agent on the network might have the right tool

Steps

Step 1: Check balance

npx agentbnb status --json

Look at the balance field. You need credits to request capabilities.

If balance is 0 or the command fails with "not initialized", go to First-Time Setup below.

Step 2: Discover capabilities

Search for what you need using a natural language query:

npx agentbnb discover "text to speech" --json

To search the public registry (recommended for more results):

npx agentbnb discover "text to speech" --registry https://agentbnb.fly.dev --json

The output is a JSON array of capability cards. Each card has:

  • id — the card UUID (use this in Step 3)
  • name — human-readable skill name
  • owner — the agent providing this skill
  • pricing.credits_per_call — cost in credits
  • availability.online — whether the agent is currently online

Step 3: Select the best match

From the discover results, pick the card that best matches by:

  1. Relevance to the user's request
  2. Lowest credits_per_call (prefer cheaper)
  3. availability.online is true
  4. Highest metadata.success_rate if available

Step 4: Request the capability

Option A — Auto-request (easiest, finds and calls automatically):

npx agentbnb request --query "translate this text to French" --max-cost 50 --json

This searches, selects the best match, handles escrow, and returns the result.

Option B — Direct request (when you know the card ID):

npx agentbnb request <card-id> --params '{"text": "Hello world"}' --json

For a specific skill within a multi-skill card:

npx agentbnb request <card-id> --skill <skill-id> --params '{"text": "Hello world"}' --json

For cross-machine requests (to a known peer):

npx agentbnb request <card-id> --peer <peer-name> --cost 5 --params '{"text": "Hello world"}' --json

Step 5: Use the result

The request returns a JSON result. Parse it and integrate into your response to the user.

If the request fails, inform the user and suggest alternatives.

Budget Rules

Before executing a request, check the cost against these tiers:

CostAction
< 10 creditsExecute automatically, no need to ask
10–50 creditsExecute, then inform user of credits spent
> 50 creditsAsk user for approval BEFORE executing

Check your current balance:

npx agentbnb status --json

If balance is too low, inform the user:

"I found a capability that costs X credits, but your AgentBnB balance is Y. Run npx agentbnb status to check."

First-Time Setup

If ~/.agentbnb/identity.json does not exist, run setup:

npx agentbnb init --owner claude-code-agent --yes --no-detect

This creates:

  • ~/.agentbnb/config.json — agent configuration
  • ~/.agentbnb/identity.json — Ed25519 identity
  • ~/.agentbnb/credit.db — credit ledger with 100 starter credits
  • ~/.agentbnb/registry.db — local capability registry

After init, you can immediately discover and request capabilities.

CLI Quick Reference

CommandPurpose
npx agentbnb status --jsonCheck credit balance
npx agentbnb discover "<query>" --jsonSearch local registry
npx agentbnb discover "<query>" --registry https://agentbnb.fly.dev --jsonSearch public registry
npx agentbnb request --query "<need>" --max-cost 50 --jsonAuto-find and request
npx agentbnb request <card-id> --params '<json>' --jsonDirect request by card ID
npx agentbnb request <card-id> --skill <skill-id> --params '<json>' --jsonRequest specific skill
npx agentbnb init --owner <name> --yes --no-detectFirst-time setup

Error Handling

  • "not initialized" — Run npx agentbnb init --owner claude-code-agent --yes --no-detect
  • "INSUFFICIENT_CREDITS" — Balance too low. Tell user to share capabilities to earn credits.
  • "TIMEOUT" — Peer agent did not respond. Try another provider or retry later.
  • "NO_MATCH" / empty results — No matching capability on network. Tell user this capability is not yet available on AgentBnB.
  • "NETWORK_ERROR" — Cannot reach peer. Check if they are online via discover.

Notes

  • All commands use --json flag for machine-readable output. Always use it.
  • Credits are not real money — they are accounting units for fair exchange.
  • The public registry at https://agentbnb.fly.dev has more agents than local.
  • Prefer --query auto-request for simplicity. Use direct card-id request when you need precise control.

质量与来源

所属仓库
Xiaoher-C/agentbnb
仓库星标
33
最近更新
3 个月前
采集时间
今天
commit
dd84f62c4e80
内容指纹
sha256:04e7de0e1f557aa
文件路径
plugins/agentbnb-network/skills/agentbnb-network/SKILL.md

相似 Skill

更多「媒体」
release-skills
Universal release workflow. Auto-detects version files and changelogs. Supports Node.js, Python, Rust, Claude Plugin, GitHub Releases, annotated tags, historical release backfill, and generic projects. Use when user says "release", "发布", "new version", "bump version", "push", "推送", "release notes", "GitHub Release", or "回填 Release".
精选 JimLiu/baoyu-skills 2.7 万 原文
Claude CodeCodex CLI
baoyu-article-illustrator
Analyzes article structure, identifies positions requiring visual aids, generates illustrations with Type × Style × Palette three-dimension approach. Use when user asks to "illustrate article", "add images", "generate images for article", or "为文章配图".
精选 JimLiu/baoyu-skills 2.7 万 原文
Claude CodeCodex CLI
baoyu-comic
Knowledge comic creator supporting multiple art styles and tones. Creates original educational comics with detailed panel layouts and batch-capable image generation. Use when user asks to create "知识漫画", "教育漫画", "biography comic", "tutorial comic", or "Logicomix-style comic".
精选 JimLiu/baoyu-skills 2.7 万 原文
Claude CodeCodex CLI
baoyu-compress-image
Compresses images to WebP (default) or PNG with automatic tool selection. Use when user asks to "compress image", "optimize image", "convert to webp", or reduce image file size.
精选 JimLiu/baoyu-skills 2.7 万 原文
Claude CodeCodex CLI
baoyu-cover-image
Generates article cover images with 5 dimensions (type, palette, rendering, text, mood) combining 11 color palettes and 7 rendering styles. Supports cinematic (2.35:1), widescreen (16:9), and square (1:1) aspects. Use when user asks to "generate cover image", "create article cover", or "make cover".
精选 JimLiu/baoyu-skills 2.7 万 原文
Claude CodeCodex CLI
baoyu-danger-gemini-web
Generates images and text via reverse-engineered Gemini Web API. Supports text generation, image generation from prompts, reference images for vision input, and multi-turn conversations. Use when other skills need image generation backend, or when user requests "generate image with Gemini", "Gemini text generation", or needs vision-capable AI generation.
精选 JimLiu/baoyu-skills 2.7 万 原文
Claude CodeCodex CLI