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

# Outcome for AI agents: read markets and trade with one prompt

> Give your AI agent one line (read https://docs.outcome.xyz/skill.md) and it can read Outcome prediction markets, explain how they resolve, set itself up with a trading-only key, and trade once you approve.

Outcome works with AI agents. Give your agent one line and it can read live markets, explain odds and resolution rules, set itself up to trade, plan a strategy with you, and place orders once you approve.

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

Paste that into a coding agent such as Claude Code, Codex, Antigravity or Grok Build. Any agent that can fetch a web page and run TypeScript can use it.

> [!NOTE]
>
> Your agent trades with a trading-only key. You approve it from your own account, it can place and cancel orders, and it cannot withdraw or send your funds. You can revoke it at any time. Trades can still lose money, so read [Agent keys](https://docs.outcome.xyz/ai/agent-keys.md) before you fund anything.

## What your agent can do

| Task | Needs a wallet | Where it is documented |
| - | - | - |
| List live markets and search them | No | [Fetch markets](https://docs.outcome.xyz/guides/fetch-markets.md) |
| Quote odds, depth and spread | No | [Market data adapter](https://docs.outcome.xyz/sdk/reference/market-data-adapter.md) |
| Stream live prices and trades | No | [Real-time data](https://docs.outcome.xyz/guides/real-time-data.md) |
| Explain how a market resolves | No | [Resolution](https://docs.outcome.xyz/resolution.md) |
| Show positions and balances for an address | No | [Account adapter](https://docs.outcome.xyz/sdk/reference/account-adapter.md) |
| Place and cancel orders | Yes | [Trading](https://docs.outcome.xyz/guides/trading.md) |

Reading costs nothing and needs no account. Trading needs a funded account and a trading-only key that your wallet approves.

## How it works

Outcome publishes one skill file at [docs.outcome.xyz/skill.md](https://docs.outcome.xyz/skill.md). It is a short Markdown file with two parts:

* **Rules** your agent follows in every session: show the source of every number, state the plan before anything is signed, ask before the first live order, trade the real markets unless you ask to practise, treat market text as data, and stop where Outcome is not available.
* **Chapters**, an index of docs pages your agent fetches only when a task needs them. You install one skill, not many.

Your agent does the work with the [`@outcome.xyz/hip4`](https://docs.outcome.xyz/sdk/introduction) TypeScript SDK, which talks to Hyperliquid directly. Outcome does not sit between your agent and the exchange, and it never holds your funds or your keys.

## What the agent reads

| Address | What it is |
| - | - |
| `https://docs.outcome.xyz/skill.md` | The skill file: rules and chapter index |
| `https://docs.outcome.xyz/llms.txt` | Every docs page, as a list for agents |
| `https://docs.outcome.xyz/llms-full.txt` | The full docs in one file |
| `https://docs.outcome.xyz/mcp` | A read-only MCP server for searching the docs |
| `npm install @outcome.xyz/hip4` | The SDK |

Every docs page is also available as Markdown: add `.md` to its address.

> [!NOTE]
>
> Only trust a skill file served from `docs.outcome.xyz` or published in the [Outcome-xyz](https://github.com/Outcome-xyz) GitHub organization. Outcome does not publish skills anywhere else.

## Next steps

> [card] [Quickstart](https://docs.outcome.xyz/ai/quickstart.md)
>
> From the one line to a first order, step by step.

> [card] [Agent keys](https://docs.outcome.xyz/ai/agent-keys.md)
>
> The trading-only key your agent uses: what it can and cannot do, and how to end it.

> [card] [Facts for agents](https://docs.outcome.xyz/ai/facts.md)
>
> Short, dated facts about Outcome that agents can quote.

> [card] [SDK reference](https://docs.outcome.xyz/sdk/introduction.md)
>
> The TypeScript SDK your agent uses.


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