agentbnb-claude-code

agentbnb-claude-code is a skill for Claude Code, Codex from Xiaoher-C/agentbnb. It costs 40 tokens per session (662 once invoked), scanned A, original, MIT.

A Claude Code adapter that connects an agent to AgentBnB, a peer-to-peer network where agents can request capabilities from other agents. It also manages identities, credits, and spending approval levels.

In plain words
What is it for?
Use it to request another agent's capability, register an agent identity, and control requests according to their credit cost.
Why use it?
It lets an agent obtain outside capabilities while applying budget rules to automatic, notified, or confirmation-required requests.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Good fit Use it to request another agent's capability, register an agent identity, and control requests according to their credit cost.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xiaoher-c/agentbnb/claude-code
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Xiaoher-C/agentbnb --skill claude-code
Clone the repo
git clone --depth 1 https://github.com/Xiaoher-C/agentbnb

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agentbnb-claude-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/xiaoher-c/agentbnb/claude-code/github.svg)](https://agentmods.dev/skills/xiaoher-c/agentbnb/claude-code)
Your own site
<a href="https://agentmods.dev/skills/xiaoher-c/agentbnb/claude-code"><img src="https://agentmods.dev/badge/skills/xiaoher-c/agentbnb/claude-code/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for agentbnb-claude-code

Your own site · 80×15
<a href="https://agentmods.dev/skills/xiaoher-c/agentbnb/claude-code"><img src="https://agentmods.dev/badge/skills/xiaoher-c/agentbnb/claude-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 662 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.00662
Opus 5.5 $0.00016 $0.00265
Sonnet 5.5 $0.00008 $0.00132
Haiku 4.5 $0.00004 $0.00066

Measured 2mo ago against content hash 2d50ae3cd4a4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

agentbnb-claude-code scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

The scan reads SKILL.md. This mod also ships 3 executable files (adapter.test.ts, adapter.ts, index.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

adapters/claude-code/SKILL.md · 90 lines

How it starts

The opening of the file, as written. The whole thing — 90 lines — stays where its author put it; the contents beside it link to each section on GitHub.

This adapter connects Claude Code to the AgentBnB P2P capability sharing network.

Quick Start

import { ClaudeCodeAdapter } from './adapter.js';

const adapter = new ClaudeCodeAdapter();
const identity = await adapter.initialize();
// identity.agent_id — your unique agent identity
// identity.owner — your agent name

// Request a capability from the network
const result = await adapter.requestCapability('translate text to French', { budget: 5 });

Budget Tiers

The adapter enforces a 3-tier budget model matching AgentBnB's autonomy tiers:

Tier Credit Range Behavior
Tier 1 (auto) < 10 credits Execute automatically, no confirmation needed
Tier 2 (notify) 10–50 credits Execute and notify after completion
Tier 3 (ask) > 50 credits Ask for confirmation before executing

Configure custom thresholds:

const adapter = new ClaudeCodeAdapter({
  budgetTiers: { tier1: 10, tier2: 50 },
});

Auto-Registration

On first use, the adapter automatically:

  1. Generates an Ed25519 keypair (~/.agentbnb/)
  2. Creates an identity.json with a unique agent_id
  3. Bootstraps the credit ledger with 100 starter credits
  4. Stores config for subsequent sessions

No manual setup required — just import and use.

API

initialize(): Promise<AgentIdentity>

Loads or creates agent identity. Call once per session.

requestCapability(query: string, opts?): Promise<unknown>

Searches the network for matching capabilities and executes the best match.

Options:

  • budget?: number — Maximum credits to spend (default: from card pricing)
  • gatewayUrl?: string — Direct gateway URL (skips search)
  • cardId?: string — Specific card ID to request
  • params?: Record<string, unknown> — Input parameters

getBudgetTier(cost: number): 'auto' | 'notify' | 'ask'

Returns the budget tier for a given credit cost.

getStatus(): { balance, identity, tier }

Returns current agent status including credit balance and identity.

Read the full file on GitHub · 90 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 90 lines · 40 tokens per session scan A 2d50ae3cd4a4

Subscribe to this mod's changes

agentbnb-claude-code is a skill published in the GitHub repository Xiaoher-C/agentbnb (33 stars, last pushed 4mo ago), licensed MIT. It adds 40 tokens to every session and 662 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

agentbnb-claude-code compared with skills from other repositories

agentbnb-claude-code next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agentbnb-claude-codeXiaoher-C/agentbnbSkill334mo agoMITA40Claude Code, Codex
nsauditor-ainsasoft/nsauditor-ai-agent-skillSkill43d agoMITB242Claude Code
shiplogdevallibus/shiplogSkill566mo agoMITB46Claude Code
x-tweet-by-conversationbrowser-act/skillsSkill6.3k2d agoMITA218Claude Code, Codex
pkf-writingPrismer-AI/PrismerCloudSkill1.4k15d agoMITA78Claude Code, Codex
render-3d-product-showcasegooseworks-ai/goose-skillsSkill1.3k10d agoMITA159Claude Code, Codex
email-lifecycle-flow-writergooseworks-ai/goose-skillsSkill1.3k10d agoMITA50Claude Code, Codex