> ## Documentation Index
> Fetch the complete documentation index at: https://docs.yellow.pro/llms.txt
> Use this file to discover all available pages before exploring further.

# Agent Onboarding

> Connect your wallet, create an agent sub-account, pair your AI client, and verify it works — the full walkthrough on yellow.pro.

Give your AI its own Yellow\.pro trading account: a separate account under your login, with permissions you control.

> [!NOTE]
>
> **What this covers**
>
> * Connect your wallet
> * Create a dedicated agent sub-account
> * Pair an AI client
> * Verify that it works
> * Fund the agent and try it out
>
> **Estimated setup time:** about 10 minutes the first time.

> [!WARNING]
>
> An agent sub-account is a separate account under your main login, with its own balance. Your AI only ever touches funds you move into that sub-account, **never your main account**. An agent can **never withdraw**, regardless of which permissions you grant it. Withdrawals always require your signature on the main account.

## Step 1 — Connect your wallet

Go to [yellow.pro](https://yellow.pro) and click **Connect** in the top-right corner.

![Connect button in the top-right of yellow.pro](https://mintcdn.com/yellow-pro/AICSXepoPOg4jSUt/images/mcp/connect-button.png?fit=max\&auto=format\&n=AICSXepoPOg4jSUt\&q=85\&s=69f77b52b4ab89af688e3f464538ac05)

Pick a wallet — MetaMask, Phantom, Rabby, or WalletConnect — or continue with **Google**.

![Wallet selection dialog](https://mintcdn.com/yellow-pro/AICSXepoPOg4jSUt/images/mcp/choose-wallet.png?fit=max\&auto=format\&n=AICSXepoPOg4jSUt\&q=85\&s=a655db8d2c3b608d550631b7710f4778)

If you connect a wallet, approve two prompts from the wallet extension:

1. A connection request
2. A signature request (`"Please sign this message to authenticate..."`)

> [!NOTE]
>
> **Signing is free.** The signature proves you own the wallet. It is not a transaction.

Once connected, a welcome panel walks you through the quick path: deposit or convert to USDT, transfer spot to perpetual, and open your first position. You can follow it or skip it — click **Start trading** or **×** to dismiss.

> [!NOTE]
>
> None of those steps are required before setting up your agent.

![Welcome to Yellow Pro panel](https://mintcdn.com/yellow-pro/AICSXepoPOg4jSUt/images/mcp/welcome-yellow-pro.png?fit=max\&auto=format\&n=AICSXepoPOg4jSUt\&q=85\&s=cc8a9cb765c6c5b1943ce287146547d0)

## Step 2 — Open the agent onboarding page

Click **AI agent** in the top navigation bar.

![AI agent link in the top navigation](https://mintcdn.com/yellow-pro/AICSXepoPOg4jSUt/images/mcp/ai-agent-nav.png?fit=max\&auto=format\&n=AICSXepoPOg4jSUt\&q=85\&s=dc1f91971ba14ca5504bd8be6d980570)

This takes you to **Give your AI its own trading account**.

![Agent onboarding landing page](https://mintcdn.com/yellow-pro/AICSXepoPOg4jSUt/images/mcp/agent-onboarding-overview.png?fit=max\&auto=format\&n=AICSXepoPOg4jSUt\&q=85\&s=80edd25ffe7033654447e1adbd9b0d63)

The flow has four steps: **Agent sub-account**, **Connect**, **Verify**, and **Agent dashboard**.

## Step 3 — Create your agent sub-account

The page explains what your AI will be able to do:

| Capability | What it means |
| - | - |
| **Reads markets** | Prices, order books, funding rates |
| **Reads its own account** | Balances, positions, orders |
| **Trades only when you switch it on** | Off by default |
| **Withdrawals stay with you** | An agent key can never withdraw or transfer out, regardless of permissions |

Click **Create your agent account**. This creates the account only — no key and no funds yet.

![Create your agent account step](https://mintcdn.com/yellow-pro/AICSXepoPOg4jSUt/images/mcp/create-agent-account.png?fit=max\&auto=format\&n=AICSXepoPOg4jSUt\&q=85\&s=949b6f864c15761fc142a3f2934b3958)

Once created, Step 1 turns green and shows your new account: an **agent account ID** in the form `agentic:0x...` under your main account, with a **balance** starting at `0 USDT`.

> [!NOTE]
>
> There is nothing to fund yet. You'll fund the account once your AI is connected.

![Agent sub-account created and ready](https://mintcdn.com/yellow-pro/AICSXepoPOg4jSUt/images/mcp/agent-account-ready.png?fit=max\&auto=format\&n=AICSXepoPOg4jSUt\&q=85\&s=8f753439ba102acfb95067d1644a2106)

## Step 4 — Choose your AI and set its access

Step 2, **Connect**, asks two questions.

### Which AI are you using?

Seven clients currently work, each with a one-command setup.

| AI client | Setup |
| - | - |
| **Claude Code** | Recommended — one command, no file to edit |
| **Generic AI** | Any MCP-compatible app |
| **Codex CLI** | One command, TOML config |
| **Gemini CLI** | One command, merges settings |
| **Cursor** | One command, instant reload |
| **Hermes** | One command, YAML config |
| **OpenClaw** | One command, JSON5 config |

![Choosing an AI client and access level](https://mintcdn.com/yellow-pro/AICSXepoPOg4jSUt/images/mcp/choose-ai-and-access.png?fit=max\&auto=format\&n=AICSXepoPOg4jSUt\&q=85\&s=0f96dc40e1f1d00d99429af62365f774)

### Should it be allowed to trade?

> [card] Read-only
>
> Reads prices, positions and balances, and answers questions. Cannot trade.
>
> Scopes: `read:spot`, `read:perp`

> [card] Trading on
>
> Places and cancels orders using the agent account's available margin.
>
> Adds: `trade:spot`, `trade:perp`

> [!NOTE]
>
> Start with read-only. You can change the access level later from the agent dashboard without redoing this flow.

## Step 5 — Get your pairing code

Yellow\.pro generates a one-time pairing code and the exact command that redeems it, pre-filled with your selected client and permission choices.

![Pairing code and copy command](https://mintcdn.com/yellow-pro/AICSXepoPOg4jSUt/images/mcp/pairing-code.png?fit=max\&auto=format\&n=AICSXepoPOg4jSUt\&q=85\&s=63695d90e0ab8ba40427f4cca6bd5a4b)

> [!WARNING]
>
> **This code is not your API key or secret.** It is a one-time claim that you redeem once. Redeeming it mints the actual key locally on your machine — Yellow\.pro never sees or stores that key.
>
> The code is single-use and expires in about 10 minutes, so don't generate it until you're ready for the next step. If it expires, click **Change and get a new code**.

Click **Copy command**, then continue to the section for your client.

## Step 6 — Install your AI client, log in, and pair

If your AI client isn't installed yet, set it up first:

> [card] [Install Claude Code CLI](https://docs.yellow.pro/mcp/claude-code-cli.md)
>
> Recommended. Install, verify, and log in.

> [card] [Install Codex CLI](https://docs.yellow.pro/mcp/codex-cli.md)
>
> OpenAI's CLI, if that's your client.

> [!NOTE]
>
> **Claude Code and Claude Desktop are different applications.** Claude Desktop is the chat app with a window; Claude Code runs in your terminal. The pairing command registers with Claude Code specifically.

### Claude Code walkthrough

**1. Install Claude Code**

```bash theme={null}
curl -fsSL https://claude.ai/install.sh | bash
```

![Running the Claude Code installer](https://mintcdn.com/yellow-pro/AICSXepoPOg4jSUt/images/mcp/claude-code-install-command.png?fit=max\&auto=format\&n=AICSXepoPOg4jSUt\&q=85\&s=49e0b2bb6b9680729ddc930ca88785b8)

![Claude Code installed successfully](https://mintcdn.com/yellow-pro/AICSXepoPOg4jSUt/images/mcp/claude-code-install-success.png?fit=max\&auto=format\&n=AICSXepoPOg4jSUt\&q=85\&s=cc940c274da471edfcb1fb2bf265c812)

**2. Verify the install**

Open a **new** terminal window and run:

```bash theme={null}
claude --version
```

You should see a version number such as `2.1.267`.

> [!WARNING]
>
> If you see `command not found`, add the install location to your `PATH`:
>
> ```bash theme={null}
> echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc && source ~/.zshrc
> ```
>
> Then open a fresh terminal and try `claude --version` again.

**3. Log in**

Run:

```bash theme={null}
claude
```

![Starting Claude Code](https://mintcdn.com/yellow-pro/AICSXepoPOg4jSUt/images/mcp/claude-code-run.png?fit=max\&auto=format\&n=AICSXepoPOg4jSUt\&q=85\&s=e555b2cf9d6fb0b915d928784e863e0f)

The first time you run Claude Code in a new folder it asks whether you trust the workspace. Choose **Yes, I trust this folder**.

![Workspace trust prompt](https://mintcdn.com/yellow-pro/AICSXepoPOg4jSUt/images/mcp/claude-code-trust-folder.png?fit=max\&auto=format\&n=AICSXepoPOg4jSUt\&q=85\&s=3ade53cfebe845e99e1c6b16d1f746cf)

Next, choose **Claude account with subscription**.

![Selecting a login method](https://mintcdn.com/yellow-pro/AICSXepoPOg4jSUt/images/mcp/claude-code-login-method.png?fit=max\&auto=format\&n=AICSXepoPOg4jSUt\&q=85\&s=d682e4a3b436ad043b00ba3390d29c57)

Complete the browser sign-in that opens, then click **Authorize**.

![Authorizing Claude Code](https://mintcdn.com/yellow-pro/AICSXepoPOg4jSUt/images/mcp/claude-code-authorize.png?fit=max\&auto=format\&n=AICSXepoPOg4jSUt\&q=85\&s=0ce590cd70f391a6a1cd0fb94fdc8707)

> [!WARNING]
>
> If you see `Claude Max or Pro is required to connect to Claude Code`, your Claude.ai account is on the free plan. Upgrade to **Pro, Max, Team, or Enterprise**, or sign in with an API key instead.

You'll return to the terminal logged in, and can pick a colour theme. This only affects how Claude Code looks, so any option is fine.

![Choosing a colour theme](https://mintcdn.com/yellow-pro/AICSXepoPOg4jSUt/images/mcp/claude-code-theme.png?fit=max\&auto=format\&n=AICSXepoPOg4jSUt\&q=85\&s=c1e45b6e3764b907364b90c61a0733db)

If billing shows **pay-per-use** instead of your plan, type `/login` inside the session. Once confirmed, exit back to the normal prompt:

```bash theme={null}
exit
```

**4. Run the pairing command**

Back in the same terminal — at the normal `%` prompt, **not inside Claude** — paste and run the command Yellow\.pro gave you in Step 5. This installs the Yellow\.pro MCP package and registers it with Claude Code in one go.

![Pasting the pairing command](https://mintcdn.com/yellow-pro/AICSXepoPOg4jSUt/images/mcp/pairing-command-paste.png?fit=max\&auto=format\&n=AICSXepoPOg4jSUt\&q=85\&s=a184ee22c05eb96c2a7ae7285d48811a)

![Pairing command output](https://mintcdn.com/yellow-pro/AICSXepoPOg4jSUt/images/mcp/pairing-command-output.png?fit=max\&auto=format\&n=AICSXepoPOg4jSUt\&q=85\&s=c8079fba2556eec50cae52f402d1d00a)

The confirmation shows the account type (`subaccount`), the granted scopes such as `read:spot` and `read:futures`, where the credential was saved locally, and whether trading was enabled.

> [!NOTE]
>
> Whether trading is enabled is determined entirely by the permission level you selected in Step 4.

> [!WARNING]
>
> **Restart required.** If the output includes `"restart_required": true`, exit the existing Claude session and run `claude` again so it picks up the new MCP server.

**5. Confirm registration**

Run `claude`, then inside the session:

```
/mcp
```

`yellow_pro` should show as **connected**. That's enough to continue — you'll ask it something in Step 9.

### Other supported clients

The pairing command works the same way for all seven supported clients. Run the command Yellow\.pro generated for your selected client. Manual configuration paths for Gemini CLI, Cursor, Hermes, and OpenClaw are on the [Installation](https://docs.yellow.pro/mcp/installation.md) page.

## Step 7 — Verify it's working

Return to the Yellow\.pro tab. Step 2 should now show **Connected**, and Step 3, **Verify**, becomes active.

Click **Verify connection**. This runs a set of read-only checks against your new key.

![Verify connection step](https://mintcdn.com/yellow-pro/AICSXepoPOg4jSUt/images/mcp/verify-connection.png?fit=max\&auto=format\&n=AICSXepoPOg4jSUt\&q=85\&s=470a6009e0cf943fe6078df84cd6a989)

> [!NOTE]
>
> **Safe verification.** Nothing is created and no order is placed. These checks are read-only and safe to re-run anytime.

The checks confirm that the agent sub-account exists, that an active key is connected, and that your AI has actually made a successful call.

### If a check doesn't pass

The most common causes are on the CLI side:

> [accordion] The AI client wasn't restarted
>
> If the client was already running when you paired it, look for `"restart_required": true` in the pairing output. Exit the client and start it again.

> [accordion] The pairing command didn't finish cleanly
>
> Scroll back in your terminal and check for an error before the `"connected": true` confirmation.

> [accordion] The command was run in the wrong place
>
> Make sure the pairing command was pasted into your normal shell prompt, not an active Claude or Codex session.

Fix the issue, then click **Verify connection** again.

## Step 8 — Open your agent dashboard

Once verification passes, Step 4 changes to **Live**. Click **Open dashboard**.

![Verification passed](https://mintcdn.com/yellow-pro/AICSXepoPOg4jSUt/images/mcp/verification-passed.png?fit=max\&auto=format\&n=AICSXepoPOg4jSUt\&q=85\&s=d28b769718a92d375f52232df6e9d71d)

![Open dashboard button](https://mintcdn.com/yellow-pro/AICSXepoPOg4jSUt/images/mcp/open-dashboard.png?fit=max\&auto=format\&n=AICSXepoPOg4jSUt\&q=85\&s=338ae4c8ac2ca5522f1b60f246a54d48)

You'll see your **Agent Overview**: the connected AI, key details, trading status, current portfolio, and transfer controls.

![Agent Overview dashboard](https://mintcdn.com/yellow-pro/AICSXepoPOg4jSUt/images/mcp/agent-overview.png?fit=max\&auto=format\&n=AICSXepoPOg4jSUt\&q=85\&s=5d299a68bd16474211c6ba86d344bf8e)

From the dashboard you can revoke the key, change its trading permission, fund or withdraw from the agent sub-account, and connect another AI to the same account.

> [!NOTE]
>
> If trading is off, the dashboard shows a **Trading OFF** badge and an **Enable trading** control. Turning it on applies to the agent account only.

![Dashboard with trading off](https://mintcdn.com/yellow-pro/AICSXepoPOg4jSUt/images/mcp/dashboard-trading-off.png?fit=max\&auto=format\&n=AICSXepoPOg4jSUt\&q=85\&s=ce5efb43a2ed15eb480244a002a70cd8)

## Step 9 — See it in action

A fresh agent sub-account starts with **0 USDT**. Click **Fund it** or **Deposit** on the dashboard to move balance from your main account before asking your AI to do anything that requires funds. See [Fund your agent](https://docs.yellow.pro/mcp/fund-your-agent.md) for the full transfer flow.

> [!NOTE]
>
> Read-only questions work fine with a zero balance.

Then return to your AI client and try it out.

> [tab] Market question
>
> Ask: *"What's the funding rate on BTC-PERP?"*
>
> Your AI reads live market data through the connected key.
>
> ![Funding rate answer](https://mintcdn.com/yellow-pro/AICSXepoPOg4jSUt/images/mcp/example-funding-rate.png?fit=max\&auto=format\&n=AICSXepoPOg4jSUt\&q=85\&s=4f1bafe9285d4fac2b8a394bceb2b05b)

> [tab] Account question
>
> Ask: *"What's my balance?"*
>
> ![Balance answer](https://mintcdn.com/yellow-pro/AICSXepoPOg4jSUt/images/mcp/example-balance.png?fit=max\&auto=format\&n=AICSXepoPOg4jSUt\&q=85\&s=0458a778d017d1042c3a0d2dc312b142)
>
> Or: *"What's my liquidation distance on my open positions?"*
>
> ![Liquidation distance answer](https://mintcdn.com/yellow-pro/AICSXepoPOg4jSUt/images/mcp/example-liquidation-distance.png?fit=max\&auto=format\&n=AICSXepoPOg4jSUt\&q=85\&s=05295428b58a06083d3717ac178b9b17)
>
> Your AI reads the agent sub-account directly.

> [tab] Place a trade
>
> If trading is enabled, ask the AI to place a small test order.
>
> ![Placing an order](https://mintcdn.com/yellow-pro/AICSXepoPOg4jSUt/images/mcp/example-place-order.png?fit=max\&auto=format\&n=AICSXepoPOg4jSUt\&q=85\&s=0c4d98755b09146bf4cc5b23ca1f80c6)
>
> Then confirm the order appears in your dashboard.
>
> ![Pending order in the dashboard](https://mintcdn.com/yellow-pro/AICSXepoPOg4jSUt/images/mcp/pending-order.png?fit=max\&auto=format\&n=AICSXepoPOg4jSUt\&q=85\&s=d91b576f3531b860310fcd4278fbcf03)

> [tab] Withdrawal boundary
>
> Ask your AI to withdraw funds to an external address. The request should fail, explaining that agent keys cannot withdraw and that withdrawals require your signature on the main account.
>
> ![Withdrawal blocked](https://mintcdn.com/yellow-pro/AICSXepoPOg4jSUt/images/mcp/example-withdrawal-blocked.png?fit=max\&auto=format\&n=AICSXepoPOg4jSUt\&q=85\&s=e7df5e00932593de9d81e69cf4158213)

Once you've asked it something real, return to Yellow\.pro and click **Verify connection** again. Every check should now show as confirmed.

## Next steps

> [card] [Fund your agent](https://docs.yellow.pro/mcp/fund-your-agent.md)
>
> Move USDT between your main and agent accounts.

> [card] [Manage your API keys](https://docs.yellow.pro/mcp/api-keys.md)
>
> Review, freeze, or revoke keys.

> [card] [Agentic portfolio](https://docs.yellow.pro/mcp/agentic-portfolio.md)
>
> Track the agent's performance separately.

> [card] [Troubleshooting](https://docs.yellow.pro/mcp/troubleshooting.md)
>
> Fixes for the most common issues.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.