xbird-rest-api

xbird-rest-api is a skill for Claude Code from checkra1neth/xbird-skill. It costs 57 tokens per session (953 once invoked), scanned A, original, MIT.

A pay-per-request HTTP service for retrieving Twitter/X data. It uses USDC payments on Base and can authenticate with either a local stateless token or request headers.

In plain words
What is it for?
Use it in backend services, scripts, or autonomous agents that need Twitter/X data over HTTP. It is not intended for coding tools that already support MCP.
Why use it?
It lets backend services and scripts access Twitter/X data without requiring a database or credentials stored on the service.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument; mentions Claude Code.

Part of the xbird plugin — 4 skills shipped together

Good fit Use it in backend services, scripts, or autonomous agents that need Twitter/X data over HTTP. It is not intended for coding tools that already support MCP.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/checkra1neth/xbird-skill/xbird-rest-api
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 checkra1neth/xbird-skill --skill xbird-rest-api
Clone the repo
git clone --depth 1 https://github.com/checkra1neth/xbird-skill

Made for: Claude Code.

Or install xbird, the plugin that ships this one along with the rest of its 4 skills.

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 xbird-rest-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/checkra1neth/xbird-skill/xbird-rest-api/github.svg)](https://agentmods.dev/skills/checkra1neth/xbird-skill/xbird-rest-api)
Your own site
<a href="https://agentmods.dev/skills/checkra1neth/xbird-skill/xbird-rest-api"><img src="https://agentmods.dev/badge/skills/checkra1neth/xbird-skill/xbird-rest-api/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 xbird-rest-api

Your own site · 80×15
<a href="https://agentmods.dev/skills/checkra1neth/xbird-skill/xbird-rest-api"><img src="https://agentmods.dev/badge/skills/checkra1neth/xbird-skill/xbird-rest-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 953 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.00057 $0.00953
Opus 5.5 $0.00023 $0.00381
Sonnet 5.5 $0.00011 $0.00191
Haiku 4.5 $0.00006 $0.00095

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

Security

Grade A, and why

xbird-rest-api 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.

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.

skills/xbird-rest-api/SKILL.md · 87 lines

How it starts

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

xbird REST API — Twitter/X with x402 Micropayments

Pay-per-request Twitter/X API. Every call is metered via x402 (USDC on Base). Fully stateless — the server stores nothing. No database, no stored credentials.

When to Use

  • Backend services or scripts that need Twitter data via HTTP
  • Autonomous agents without MCP support
  • Any language/framework (not just TypeScript)
  • Direct programmatic integrations

Don't use when: Running inside Claude Code / Cursor / Windsurf (use MCP instead), or operating on Virtuals marketplace (use ACP instead).

Setup

# 1. Install xbird and generate a stateless token
npx @checkra1n/xbird login

# 2. Fund the wallet shown in login output with USDC on Base

The login command auto-detects your browser cookies, encrypts them into a self-contained stateless token locally, and saves it. Nothing is sent to the server.

Authentication

Mode 1 — Stateless token (recommended): run xbird login to generate a token, then pass it via X-Encryption-Key header. The token is self-contained — the server decrypts per-request and stores nothing.

Mode 2 — Per-request headers (simplest): pass X-Twitter-Auth-Token + X-Twitter-CT0 on every request.

Complete Example

import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY as `0x${string}`);
const client = new x402Client();
registerExactEvmScheme(client, { signer: account });
const paymentFetch = wrapFetchWithPayment(fetch, client);

const SERVER = "https://xbirdapi.up.railway.app";

// Search with stateless token
const res = await paymentFetch(
  `${SERVER}/api/search?q=${encodeURIComponent("AI agents")}&count=10`,
  {
    headers: {
      "X-Encryption-Key": process.env.XBIRD_TOKEN!,  // from xbird login
    },
  },
);
const { data, cursor } = await res.json();

Read the full file on GitHub · 87 lines

Files

What ships with it

2 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 · 87 lines · 57 tokens per session scan A b3e73d86dbb7

Subscribe to this mod's changes

xbird-rest-api is a skill published in the GitHub repository checkra1neth/xbird-skill (15 stars, last pushed 4mo ago), licensed MIT. It adds 57 tokens to every session and 953 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

xbird-rest-api compared with skills from other repositories

xbird-rest-api next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
xbird-rest-apicheckra1neth/xbird-skillSkill154mo agoMITA57Claude Code
solana-devsolana-foundation/solana-dev-skillSkill5842d agoMITA258Claude Code, Codex
devtools-event-clientTanStack/devtoolsSkill510yesterdayMITA79Claude Code, Codex
walkeros-create-destinationelbwalker/walkerOSSkill3492d agoMITA77Claude Code
walkeros-create-sourceelbwalker/walkerOSSkill3492d agoMITA65Claude Code
web3-fullstack-packaged-buildHKUDS/OpenSpaceSkill7.8k2mo agoMITA21Claude Code, Codex
web3-fullstack-systematic-buildHKUDS/OpenSpaceSkill7.8k2mo agoMITA21Claude Code, Codex