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

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.

agentmods
npx agentmods add skills/xiaoher-c/agentbnb/claude-code
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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00040 $0.00662
Opus 5 $0.00020 $0.00331
Sonnet 5 $0.00008 $0.00132
Haiku 4.5 $0.00004 $0.00066

Measured 3d ago against content hash 2d50ae3cd4a4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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. 3d 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 (32 stars, last pushed 2mo ago), licensed MIT. It adds 40 tokens to every session and 662 once invoked, about $0.0002 per session on Opus 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

Other skills, from other repositories

nsauditor-ai

Use this skill whenever the user wants network security scanning, auditing, vulnerability assessment, host reconnaissance, or cloud-account security/compliance auditing with NSAuditor AI (via the nsauditor-ai MCP server: scanhost, scancloud, getfindings, probeservice, getvulnerabilities, listplugins). Triggers include…

nsasoft/nsauditor-ai-agent-skill · 248 tokens

shiplog

Git-as-knowledge-graph workflow for traceability. Use when planning work, brainstorming designs, creating/managing issues and PRs, tracking architectural decisions, or resuming prior sessions. Slash command /shiplog.

devallibus/shiplog · 46 tokens

auth-web-cloudbase

CloudBase Web Authentication Quick Guide for frontend integration after auth-tool has already been checked. Provides concise and practical Web authentication solutions with multiple login methods and complete user management.

TencentCloudBase/CloudBase-AI-Toolkit · 38 tokens

browse-and-evaluate

Use when exploring the ai-agent-skills catalog to find, compare, and evaluate skills before installing. Always use --fields to limit output size and --dry-run before committing to an install.

MoizIbnYousaf/Ai-Agent-Skills · 43 tokens

loop-engineering

Shared loop-engineering reference for COG skills - the agent loop, deterministic verifiers, termination conditions, in-loop context management, and named patterns. Invoke when designing or debugging a skill that iterates (search-verify-retry, scan-until-dry, fetch-retry-gate).

huytieu/COG-second-brain · 63 tokens

telnyx-messaging-hosted-curl

Set up hosted SMS numbers, toll-free verification, and RCS messaging. Use when migrating numbers or enabling rich messaging features. This skill provides REST API (curl) examples.

team-telnyx/ai · 45 tokens