bluepages

📁 bluepageseth/agent-plugins 📅 4 days ago
1
总安装量
1
周安装量
#49901
全站排名
安装命令
npx skills add https://github.com/bluepageseth/agent-plugins --skill bluepages

Agent 安装分布

amp 1
opencode 1
kimi-cli 1
codex 1
github-copilot 1
gemini-cli 1

Skill 文档

Bluepages API

Crypto address <> Twitter/Farcaster identity lookups. Full docs at bluepages.fyi/docs.

Authentication

Set one of these environment variables before starting Claude Code:

  • BLUEPAGES_API_KEY (recommended) – 20% cheaper, 2x rate limits. Get a key at bluepages.fyi/api-keys.
  • PRIVATE_KEY – Pay-per-request with USDC on Base. No API key needed.

Getting API Credits

Option A: Programmatic Setup (for agents with private key)

If you have a private key, you can get your API key by signing a message.

HTTP Endpoint: POST /api/auth

// 1. Create message with your address and timestamp
const message = `Authenticate with Bluepages API\n\nAddress: ${walletAddress}\nTimestamp: ${Date.now()}`;

// 2. Sign with your private key (EIP-191 personal sign)
const signature = await wallet.signMessage(message);

// 3. Call /api/auth
const response = await fetch('https://bluepages.fyi/api/auth', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({ address: walletAddress, message, signature })
});

const { user } = await response.json();
console.log('API Key:', user.apiKey);
console.log('Credits:', user.credits);

MCP Tool: get_api_key (if using MCP server)

Tool: get_api_key
Args: {}

Purchase credits: POST /api/credits/purchase?package=starter

  • Pay via x402 (USDC on Base)
  • Packages: starter ($5), pro ($45), enterprise ($600)
  • Account + API key created automatically if new

After purchase, call /api/auth again to retrieve your API key and see updated balance.

Option B: Manual Setup (for humans)

  1. Go to bluepages.fyi/api-keys.html
  2. Connect wallet and sign message
  3. Click “Purchase Credits” and select a package
  4. Pay with USDC on Base network

Configure Environment

export BLUEPAGES_API_KEY="bp_your_key_here"

Or ask Claude Code:

Save my Bluepages API key bp_xxx to settings.json

MCP Tools

This plugin provides the following tools via MCP:

Tool Cost Description
check_address 1 credit ($0.001) Check if address has data
check_twitter 1 credit ($0.001) Check if Twitter handle has data
get_data_for_address 50 credits ($0.05) Full identity data for address (free if not found)
get_data_for_twitter 50 credits ($0.05) Full identity data for handle (free if not found)
batch_check 40 credits ($0.04) Check up to 50 items
batch_get_data 40 credits/found item Data for up to 50 items (x402: $2.00 flat/batch)
batch_check_streaming same as batch_check For large lists (100+), shows progress
batch_get_data_streaming same as batch_get_data For large lists (100+), shows progress
check_credits free Check remaining credits (API key only)
set_credit_alert free Set low-credit warning threshold (API key only)
get_api_key free Get/create API key by signing message (PRIVATE_KEY)
purchase_credits $5-$600 USDC Buy credits via x402 (PRIVATE_KEY only)

Input Format

  • Addresses: 0x-prefixed, 42-character hex (e.g. 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045). Case-insensitive.
  • Twitter handles: With or without @ prefix (e.g. vitalikbuterin or @vitalikbuterin).

Workflow

Single address lookup

  1. Use check_address first (cheap) to see if data exists
  2. If found, use get_data_for_address to get full identity data

Cost-efficient batch processing

Always use the two-phase approach for batch lookups to minimize costs:

  1. Check existence first – $0.04 per 50 items (use batch_check_streaming for 100+)
  2. Fetch full data only for found addresses – $2.00 per 50 items (use batch_get_data_streaming for 100+)

This reduces costs by 90%+ vs fetching data for all addresses.

Response Format

Single lookup (get_data_for_address)

Returns identities (twitter, farcaster, etc.), cluster info (related wallets), and data sources.

Batch lookup (batch_get_data)

Returns an object keyed by address/handle with primary identity and alternates.

Rate Limits

  • API Key: 60 req/min
  • x402 (pay-per-request): 30 req/min
  • Batch: max 50 items per request