Skip to main content
Coinbase for Agents gives your AI apps access to Coinbase Advanced Trade to trade crypto, preview orders, and manage portfolios from any AI harness or the terminal.

Get started

Portfolio isolation: Create a separate Advanced portfolio, fund it with only what you’re willing to risk, and scope your agent’s access to that portfolio. This limits the blast radius if the agent makes an unexpected trade.
To disconnect Coinbase from an app, go to Coinbase Account > Security > Connections and revoke the connection.

What’s supported today

Coinbase for Agents currently supports:
  • Spot crypto trading: buy and sell 900+ trading pairs on Coinbase Advanced Trade
  • US Derivatives (Futures): trade CFM dated futures contracts on Coinbase Advanced Trade
  • Equities: trade S&P 500 US stocks on Coinbase Advanced Trade
  • Isolated agent portfolios: spot crypto only, scoped to a specific portfolio selected when logging in or creating an API key. US Derivatives (Futures) are available only in your default portfolio.
  • Portfolio management: Check balances and positions across your account
  • USDC/USD conversions: instant zero-fee conversions between USDC and USD
Coming soon: x402 payments for agent-consumed services (paywalled research, data APIs, compute), prediction markets, and additional asset classes. If it’s on Coinbase, your agent will be able to trade it.

Guiding agents to place orders

Based on order-creation testing across Claude and ChatGPT clients and models connected to the Coinbase for Agents remote MCP server:
  • Web clients for Claude and ChatGPT reliably create orders from clear, well-specified instructions, across models. The exception is GPT-5.5 Pro, which doesn’t appear to automatically discover the connected MCP.
  • Claude previews and requests confirmation in the chat to create the order, whereas ChatGPT creates the order in one turn.
  • Claude Desktop refuses most orders that the web client creates; Sonnet 4.6 is the exception, creating orders when the request includes an explicit authorization (e.g. I authorize you to buy…).
  • Lower-tier models may create orders with the wrong product, for example, ETH-USD instead of ETH-USDC. Prompt for approval to confirm before creating the order.
For reliable order creation, specify the order type, the amount and asset or currency, and the portfolio in one instruction, for example, Buy 1 USDC of ETH in my agent portfolio. Vague or partial requests require the model to infer and resolve additional details.

Best practices

  • Scope the agent’s access to the portfolio(s) you want it to use — a focused set gives the agent a clear, unambiguous target.
  • Higher-reasoning models translate more complex intent and recover from underspecified orders; use one for multi-step or vague requests, e.g. check my balance, then put 5% of my USDC into BTC.

Tools

Market data

Equities: products_ticker, products_book, products_candles, and products_best_bid_ask aren’t available for equities yet.

Orders

Market order: executes immediately at the best available price.
Limit order: executes at the specified price or better.
Market buys use quote_size (the amount to spend in USD). Market sells use base_size (the amount of the asset to sell). When switching between buy and sell, explicitly clear the other field (e.g., add quote_size= to clear a stale value).
Futures: CFM dated futures market orders require base_size (number of contracts)—quote_size is rejected. Contract codes roll on a schedule (e.g. BIT-28AUG26-CDE); discover the live one with coinbase products list product_type=FUTURE. Preview the order first to check predicted_liquidation_price.
Equities: use TICKER-QUOTE as the product ID (e.g. AAPL-USD or AAPL-USDC). Only S&P 500 tickers are currently supported. Orders trade regular market hours by default; set equity_trading_session (PRE_MARKET, AFTER_HOURS, OVERNIGHT, or MULTI_SESSION) to trade outside them—each of those four sessions accepts only whole-share limit orders (market orders, quote_size, and fractional sizing are rejected).

Portfolios and balances

Conversions

Info and session


Global flags

These flags work on any CLI command:

Field syntax

CLI commands use the following field syntax:

Troubleshooting


Disclaimer

AI agents can make errors, misinterpret instructions, or produce inaccurate output. Coinbase does not guarantee the accuracy of any action taken by an AI agent using this product. You are solely responsible for reviewing and authorizing any trades, transfers, or account changes made through agentic workflows.