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

# Agent quickstart: from one prompt to a first order

> Set up an AI agent to read Outcome markets, approve a trading-only key from your account, and place a first real order that waits for your approval.

This page takes you from one line of text to a first order placed by your agent, in the same three steps as [outcome.xyz/ai](https://outcome.xyz/ai): paste, approve, trade.

**1. Paste**

Open your agent in an empty folder and paste:

```text theme={null}
Read https://docs.outcome.xyz/skill.md and set me up on Outcome. Plan a strategy and await my approval before the first trade.
```

Your agent fetches the skill file, reads its rules, and loads further pages only when it needs them. Reading markets needs no wallet and costs nothing, so you can start with questions like these:

```text theme={null}
Show me the most active markets on Outcome.
```

```text theme={null}
Explain how the 2026/27 English Premier League winner market resolves, quoting its rules.
```

```text theme={null}
Give me the odds, depth and spread on the BTC Up or Down Daily market.
```

Your agent installs the SDK, reads live data from Hyperliquid, and answers with the market link and the time it read each price.

**2. Approve**

For real trading your agent needs a funded account and a trading-only key that your wallet approves. Your agent creates the key, opens [outcome.xyz/ai/connect](https://outcome.xyz/ai/connect) and copies the key's address to your clipboard. Paste it, check that the start and end match what your agent printed, and approve. The key can place and cancel orders. It cannot withdraw. See [Set up trading](#set-up-trading) below.

**3. Trade**

Ask for a trade in plain words. Your agent states the market, side, price, size, cost and the most the order can lose, then waits. Nothing is signed until you say yes.

```text theme={null}
Buy 10 shares of Liverpool in the Premier League winner market at 0.13 or better.
```

## Set up trading

Your agent trades with a trading-only key, which Hyperliquid calls an agent key or API wallet. You approve it from your own account, and your wallet's own key never goes to the agent. The key can place and cancel orders. It cannot withdraw or send your funds, and you can revoke it at any time. [Agent keys](https://docs.outcome.xyz/ai/agent-keys.md) explains it in full.

> [!NOTE]
>
> Never give an agent the private key or seed phrase of your wallet. An agent that follows Outcome's skill will refuse it.

1. **Fund your account.** Outcome trades settle in USDC on Hyperliquid. If you already trade on [outcome.xyz](https://outcome.xyz), your agent uses that balance. If not, see [Funding your account](https://docs.outcome.xyz/funding-your-account.md). Hyperliquid's bridge takes native USDC from Arbitrum. The minimum is 5 USDC, and a smaller deposit is not credited. A new Hyperliquid account pays a one-time 1 USDC activation fee.
2. **Move USDC to spot if needed.** On a standard Hyperliquid account, deposits land in the perps balance and Outcome orders spend the spot balance. Your wallet signs that transfer, not the agent's key. See [Fund your spot balance](https://docs.outcome.xyz/sdk/reference/wallet-adapter.md#fund-your-spot-balance).
3. **Approve the trading-only key from your account.** Your agent creates the key on your machine, shows you its address, and where it can, opens [outcome.xyz/ai/connect](https://outcome.xyz/ai/connect) and copies the address to your clipboard. Sign in, paste the address, check that the page shows the same start and end as the address your agent printed, and approve it with your wallet. The key's private half stays in a local environment file on your machine. It should never appear in chat, in code or in a repository.
4. **Tell your agent your account address.** The page shows it once the key is approved. The agent signs orders with the key, for your account. See [Authentication](https://docs.outcome.xyz/sdk/concepts/authentication.md).
5. **Check Outcome's builder address is approved.** Orders that carry Outcome's [builder code](https://docs.outcome.xyz/builder-codes.md) count for [liquidity rewards](https://docs.outcome.xyz/outcome-liquidity-rewards.md). If you have enabled trading on outcome.xyz, your account approved it then and there is nothing to do. If not, the approve page asks you to enable trading first. The approval is signed by your wallet, not by the agent's key.

> [!NOTE]
>
> Only approve a key your own agent created on your machine. Never approve an address somebody sent you: whoever holds the key can trade your balance until you remove it.

The smallest order is 1 USDC of notional.

## Prompts for quoting both sides

If you run a quoting strategy, give the agent hard numbers:

```text theme={null}
Read https://docs.outcome.xyz/skill.md. Quote both sides of [market] with [size] per side and stop if losses reach [max loss]. Show me your plan first.
```

A limit written in a prompt is an instruction to the agent, not a control on the key. Keep in the account only what you want the agent to trade with.

## What to expect from the agent

* It shows the source and the time for every price it quotes.
* It asks before the first live order. If you later turn confirmations off, it says so at the start of every session.
* It prefers limit orders and checks depth before a market order.
* It backs off when Hyperliquid rate limits it.
* It stops and tells you if you are in a region where Outcome is not available. See [Facts for agents](https://docs.outcome.xyz/ai/facts.md#availability).

If your agent does something else, stop it and [tell us](https://docs.outcome.xyz/support.md).

## Practise first, if you want

The SDK can also target Hyperliquid's testnet, where orders use test funds. Ask your agent to practise on testnet and it will switch. Testnet has its own markets and needs test funds from Hyperliquid's testnet.


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