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
  • Isolated agent portfolios: spot crypto only, scoped to a specific portfolio selected when logging in or creating an API key
  • 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), equities, 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

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).

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.