/xbird:xbird-acpfrom xbird
Access Twitter/X data through Virtuals Protocol agent-to-agent commerce with E2E encrypted credentials (ECDH + AES-256-GCM).
Ships in xbird. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Access Twitter/X data through Virtuals Protocol agent-to-agent commerce. Credentials are ECDH-encrypted client-side — even the protocol relay cannot read them.
Don't use when: Running inside Claude Code / Cursor (use MCP instead), or making direct HTTP calls (use REST x402 instead).
acp setup or from config.json LITE_AGENT_API_KEYauth_token and ct0 cookies from an authenticated Twitter session| Endpoint | URL |
|---|---|
| Virtuals REST API | https://claw-api.virtuals.io |
| Virtuals Socket.io | https://acpx.virtuals.io |
| xbird TEE attestation | https://xbirdapi.up.railway.app/tee/attestation |
encryption-flow.md)encryptedCredentialspolling.md)Offering name: twitter_search
| Method | Params | Description |
|---|---|---|
search | { query: string, count?: number, cursor?: string } | Search tweets. Default count: 20. |
getMentions | { handle: string, count?: number } | Get mentions for a handle. |
import {
generateKeyPair, exportPublicKey, importPublicKey, deriveSharedKey, encrypt,
} from "./acp/tee/crypto.ts";
const SERVER = "https://xbirdapi.up.railway.app";
const ACP_API = "https://claw-api.virtuals.io";
// 1. Attestation + ECDH
const att = await fetch(`${SERVER}/tee/attestation`).then(r => r.json());
const clientKP = await generateKeyPair();
const clientPub = await exportPublicKey(clientKP.publicKey);
const sharedKey = await deriveSharedKey(clientKP.privateKey, await importPublicKey(att.publicKey));
const { iv, ciphertext } = await encrypt(sharedKey, JSON.stringify({ authToken, ct0 }));
// 2. Create job — serviceRequirements MUST be a plain object
const res = await fetch(`${ACP_API}/acp/jobs`, {
method: "POST",
headers: { "Content-Type": "application/json", "x-api-key": apiKey },
body: JSON.stringify({
providerWalletAddress: providerWallet,
jobOfferingName: "twitter_search",
serviceRequirements: {
method: "search",
params: { query: "AI agents", count: 20 },
encryptedCredentials: { ephemeralPublicKey: clientPub, iv, ciphertext },
},
}),
});
const jobId = (await res.json())?.data?.jobId;
// 3. Poll (see polling.md for full implementation)
Encryption details: see encryption-flow.md. Polling + socket.io optimization: see polling.md.
| Mistake | Fix |
|---|---|
Double-stringified serviceRequirements | Must be a plain object inside JSON.stringify(), NOT JSON.stringify(JSON.stringify(...)). |
| Wrong API key (401) | Use buyer key (LITE_AGENT_API_KEY), not seller key. |
| Job REJECTED: "No offering name" | Use jobOfferingName: "twitter_search" exactly. |
| Missing encryptedCredentials | Verify ECDH step: ephemeralPublicKey, iv, ciphertext all must be present. |
| Stuck in REQUEST | Provider may be offline. Verify wallet address and ACP runtime status. |
| Response shape varies | Always try data?.data?.data ?? data?.data ?? data to extract job. |
| Phase is numeric via socket.io | Normalize: PHASE_MAP[phase] where {0:"REQUEST",...,6:"EXPIRED"}. |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
virtuals-protocol, agent-commerce, twitter-api, e2e-encryption, ecdh
Generated from the plugin's indexed repository (checkra1neth/xbird-skill) — no native marketplace selected
npx claudepluginhub p/checkra1neth-xbird3 skills in this plugin
/xbirdUse when the user asks to tweet, post threads, read tweets, search Twitter/X, check mentions, manage engagement (like/retweet/bookmark), lists, communities, Grok, notifications, or update profile (bio, avatar, banner). Triggers: twitter, tweet, post, thread, timeline, mentions, followers, bookmark, Grok, Birdwatch./xbird-rest-apiUse when building backend services, autonomous agents, or programmatic integrations that need Twitter/X data via HTTP. Triggers: REST API, x402, USDC payment, stateless token, encrypted credentials, per-request headers, Base mainnet, micropayment.Other plugins' skills for the same job