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

# What is CoW Protocol?

> CoW Protocol is the most user-protective trading protocol in DeFi, using batch auctions and solver competition to deliver MEV protection, better prices, and gasless trading.

<img src="https://mintcdn.com/cowswap/SHnim7iZOsy8I4Jp/images/what-is-cow-protocol.png?fit=max&auto=format&n=SHnim7iZOsy8I4Jp&q=85&s=285cf91a28e3b8b84c21d3adcb7fb888" alt="What is CoW Protocol" style={{ width: '100%', borderRadius: '12px', marginBottom: '2rem' }} width="1600" height="900" data-path="images/what-is-cow-protocol.png" />

CoW Protocol is an intent-based trading protocol where users sign what they want to trade, and professional **solvers** compete to find the best execution path. Instead of trading directly against a single AMM, your order enters a **batch auction** where solvers optimize across all available liquidity sources.

```mermaid theme={null}
graph LR
    A[You sign an intent] --> B[Solvers compete]
    B --> C[Best price wins]
    C --> D[You get your tokens]
```

## Why CoW Protocol?

<CardGroup cols={2}>
  <Card title="MEV Protection" icon="shield-check">
    Batch auctions with uniform clearing prices eliminate frontrunning and sandwich attacks. Your trades are safe from MEV bots.
  </Card>

  <Card title="Better Prices" icon="chart-line">
    Solvers access on-chain DEXs, private market makers, and peer-to-peer matching (Coincidence of Wants) to find the best execution.
  </Card>

  <Card title="Gasless Trading" icon="gas-pump">
    No ETH needed for gas. Fees are taken from the sell token. If the order can't execute, you pay nothing.
  </Card>

  <Card title="No Failed Transactions" icon="circle-check">
    You sign a message, not a transaction. Failed orders cost you nothing — ever.
  </Card>
</CardGroup>

## Key concepts

<Steps>
  <Step title="Intents">
    Users express **what** they want to trade, not **how**. You sign a message specifying tokens and amounts — solvers handle the rest. [Learn more](/cow-protocol/explanation/introduction/intents)
  </Step>

  <Step title="Solvers">
    Professional third parties compete in an auction to fill your order at the best price. They scan all liquidity sources: AMMs, aggregators, private market makers, and other users' orders. [Learn more](/cow-protocol/explanation/introduction/solvers)
  </Step>

  <Step title="Batch Auctions">
    Orders are grouped into batches and settled together, enabling peer-to-peer matching (Coincidence of Wants) and uniform clearing prices that eliminate MEV. [Learn more](/cow-protocol/explanation/introduction/fair-combinatorial-auction)
  </Step>

  <Step title="How Intents Are Formed">
    From intention to quote to signed order — understand the fee pipeline that determines your final amounts. [Learn more](/cow-protocol/explanation/how-it-works/how-intents-are-formed)
  </Step>
</Steps>

## Order types

<CardGroup cols={3}>
  <Card title="Market Orders" icon="bolt" href="/cow-protocol/explanation/order-types/market-orders">
    Instant execution at the best price
  </Card>

  <Card title="Limit Orders" icon="arrow-right-arrow-left" href="/cow-protocol/explanation/order-types/limit-orders">
    Set your price, gasless and free
  </Card>

  <Card title="TWAP" icon="clock" href="/cow-protocol/explanation/order-types/twap-orders">
    Split large trades over time
  </Card>

  <Card title="Programmatic" icon="robot" href="/cow-protocol/explanation/order-types/programmatic-orders">
    Condition-triggered smart orders
  </Card>

  <Card title="CoW Hooks" icon="link" href="/cow-protocol/explanation/order-types/cow-hooks">
    Pair any action with your swap
  </Card>

  <Card title="Milkman" icon="shield-halved" href="/cow-protocol/explanation/order-types/milkman-orders">
    Oracle-protected DAO orders
  </Card>
</CardGroup>

## Start building

<CardGroup cols={2}>
  <Card title="Widget" icon="window" href="/cow-swap/widget/overview">
    Drop-in swap UI for your app
  </Card>

  <Card title="TypeScript SDK" icon="code" href="/cow-sdk/quickstart">
    Full TypeScript SDK for trading
  </Card>

  <Card title="Python SDK" icon="python" href="/cow-py/quickstart">
    Trading bots, data, and automation
  </Card>

  <Card title="REST API" icon="square-terminal" href="/cow-protocol/howto/integrate/api">
    Language-agnostic order management
  </Card>
</CardGroup>

## Explore the docs

| Section                                                                     | What you'll find                                      |
| --------------------------------------------------------------------------- | ----------------------------------------------------- |
| **[How It Works](/cow-protocol/explanation/how-it-works/flow-of-an-order)** | Order flow, Coincidence of Wants, protocol vs swap    |
| **[Benefits](/cow-protocol/explanation/benefits/mev-protection)**           | MEV protection, price improvement, gasless trading    |
| **[Order Types](/cow-protocol/explanation/order-types/market-orders)**      | Market, limit, TWAP, programmatic, hooks, flash loans |
| **[Tutorials](/cow-swap/tutorials/swap)**                                   | Step-by-step guides for CoW Swap and Explorer         |
| **[Architecture](/cow-protocol/explanation/architecture/overview)**         | Orderbook, Autopilot, Driver, Solver Engine           |
| **[API Reference](/cow-protocol/reference/apis/orderbook)**                 | Orderbook, Solver, and Driver APIs                    |
| **[Contracts](/cow-protocol/reference/contracts/core)**                     | Settlement, VaultRelayer, AllowList addresses         |
