AgentServices Action Provider for Coinbase AgentKit

August 5, 2026 · View on GitHub

AgentServices provides 50+ paid APIs for AI agents — crypto data, market intelligence, DeFi analytics, onchain insights, web search, and AI inference. All paid endpoints use the x402 protocol (USDC micropayments on Base).

This action provider lets any Coinbase AgentKit agent discover and use AgentServices APIs.

Installation

pip install agentservices-agentkit

Quick Start

from coinbase_agentkit import AgentKit, AgentKitConfig, CdpWalletProvider
from agentkit.agentservices_action_provider import agentservices_action_provider

wallet_provider = CdpWalletProvider(...)  # Your wallet provider

agent_kit = AgentKit(AgentKitConfig(
    wallet_provider=wallet_provider,
    action_providers=[
        agentservices_action_provider(),
    ]
))

Available Actions

Free Endpoints (no payment required)

ActionDescription
get_crypto_priceCurrent price for any cryptocurrency
get_batch_pricesPrices for multiple cryptocurrencies
get_fear_greedCrypto Fear & Greed Index (0-100)
get_trendingTrending cryptocurrencies
get_gas_pricesEthereum gas prices (slow/standard/fast)
get_global_marketGlobal crypto market cap, volume, BTC dominance
ActionPriceDescription
get_market_indicators$0.02RSI, MACD, Bollinger Bands, moving averages
get_defi_yields$0.02Top DeFi yield opportunities across protocols
get_token_risk$0.03Rug/honeypot checks, liquidity analysis
get_crypto_signals$0.04Aggregated buy/sell/hold trading signals
get_ai_inference$0.03GPT-5.4/5.5 inference for any text task
search_web$0.01Web search with titles, URLs, snippets
get_stock_quote$0.01Stock market quotes (AAPL, GOOGL, etc.)
get_fx_rates$0.003Foreign exchange rates for 30+ currencies
get_market_pulse$0.05Comprehensive market overview (6 data sources)
get_deep_research$0.05Web research + extraction + synthesis
get_portfolio_intelligence$0.10Price + signals + risk + sentiment + verdict
get_onchain_overview$0.15Whales + flows + correlations + TVL
get_defi_strategy$0.25Full DeFi investment strategy report

How x402 Payments Work

AgentServices uses the x402 protocol for payments:

  1. Agent calls a paid endpoint
  2. Server responds with HTTP 402 (Payment Required) + price + payment address
  3. Agent's wallet signs a USDC payment on Base
  4. Server verifies payment and returns data

AgentKit's CdpWalletProvider handles wallet operations. For x402 specifically, agents need a small USDC balance (~$1 covers hundreds of calls).

Competitive Comparison

FeatureAgentServicesAlchemy
Crypto market data50 servicesNone (chain RPC only)
Market intelligenceSentiment, trends, competitorsNone
AI inferenceGPT-5.4/5.5 proxyNone
Free tier6 free endpointsNone
Price transparencyFull price listOpaque credit system
Bundled endpoints5 high-value bundlesNone
Blockchain RPCNoneFull JSON-RPC, 100+ chains

AgentServices and Alchemy are complementary. Use Alchemy for raw chain data, AgentServices for analytics and intelligence.