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

# Go SDK Installation

> Set up the preview Go SDK from source.

<Note type="warning">
  The Go SDK is not published yet. Use it from source for now.
</Note>

## Requirements

* Go 1.23+
* Access to this repository

## Install from local source

1. Regenerate the Go SDK (optional but recommended after API changes):

```bash theme={null}
pnpm openapi:gen:go
```

2. In your `go.mod`, add a local `replace` to the SDK path:

```go theme={null}
go 1.23

require github.com/AI-Stats/AI-Stats/packages/sdk/sdk-go v0.0.0

replace github.com/AI-Stats/AI-Stats/packages/sdk/sdk-go => ../ai-stats-public/packages/sdk/sdk-go
```

3. Import the wrapper:

```go theme={null}
import aistats "github.com/AI-Stats/AI-Stats/packages/sdk/sdk-go"
```
