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

# Go SDK

> Manage Blaxel resources programmatically using our Go SDK.

Blaxel features a SDK in **Go**. To install, follow the instructions below.

## Install

```go theme={null}
import (
	"github.com/blaxel-ai/sdk-go" // imported as blaxel
)
```

Or to use a specific version:

```shell Go theme={null}
go get -u 'github.com/blaxel-ai/sdk-go@v0.15.0'
```

## Prerequisites

To use this SDK, you need a [Blaxel account](https://app.blaxel.ai) and the following environment variables:

| Variable       | Description                |
| -------------- | -------------------------- |
| `BL_WORKSPACE` | Your Blaxel workspace name |
| `BL_API_KEY`   | Your Blaxel API key        |

You can create an API key from the [Blaxel console](https://app.blaxel.ai/profile/security). Your workspace name is visible in the URL when you log in to the console (e.g. `app.blaxel.ai/{workspace}`).

Set them as environment variables:

```bash theme={null}
export BL_WORKSPACE=my-workspace
export BL_API_KEY=my-api-key
```

Or add them to a `.env` file at the root of your project. For other authentication options, see [Variables and secrets](../Agents/Variables-and-secrets).

Alternatively, you can authenticate via the [Blaxel CLI](../cli-reference/introduction):

```bash theme={null}
bl login
```

When you deploy on Blaxel, authentication is handled automatically.

## Complete SDK reference

Visit the GitHub page below for detailed documentation on the SDK's commands and classes.

<Card title="Go SDK" icon="golang" href="https://github.com/blaxel-ai/sdk-go">
  Open the GitHub repository for Blaxel SDK in Go.
</Card>
