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

# SDKs

> Official Kraken SDKs for Spot and Derivatives — Go SDK and community libraries

<CardGroup cols={2}>
  <Card title="kraken-cli" icon="terminal" href="/home/cli">
    Single-binary CLI for Spot and Derivatives trading. 151 commands, paper trading, scripting, and AI agent support.
  </Card>

  <Card title="MCP server" icon="robot" href="/home/mcp">
    Built-in MCP server that exposes all CLI commands as tools for LLM agents.
  </Card>
</CardGroup>

## api-go

[api-go](https://github.com/krakenfx/api-go) is the official Go module for building integrations against the Spot and Derivatives APIs.

### Install

```bash theme={null}
go get github.com/krakenfx/api-go/v2/...
```

### What it covers

* Spot and Derivatives REST (public and authenticated endpoints)
* Spot and Derivatives WebSocket (public data streams and private channels)
* Order operations: add, amend, cancel
* Real-time order book construction with CRC32 checksum validation
* Instrument and asset lookups, account data retrieval

### Example

```go theme={null}
client := krakenapi.New(apiKey, apiSecret)
resp, err := client.AddOrder(krakenapi.AddOrderOptions{
    Pair:      "XBTUSD",
    Type:      "buy",
    OrderType: "limit",
    Price:     "60000",
    Volume:    "0.01",
})
```

## Community libraries

<Note>
  These libraries are not officially maintained by Kraken. Review before using in production.
</Note>

| Library            | Language | Scope                 | Repository                                                                               |
| :----------------- | :------- | :-------------------- | :--------------------------------------------------------------------------------------- |
| kraken-wsclient-py | Python   | WebSocket only (Spot) | [github.com/krakenfx/kraken-wsclient-py](https://github.com/krakenfx/kraken-wsclient-py) |
| kraken-api-client  | PHP      | REST (example only)   | [github.com/krakenfx/kraken-api-client](https://github.com/krakenfx/kraken-api-client)   |
