Skip to main content
Blaxel features a SDK in Go. To install, follow the instructions below.

Install

import (
	"github.com/blaxel-ai/sdk-go" // imported as blaxel
)
Or to use a specific version:
Go
go get -u 'github.com/blaxel-ai/sdk-go@v0.15.0'

Prerequisites

To use this SDK, you need a Blaxel account and the following environment variables:
VariableDescription
BL_WORKSPACEYour Blaxel workspace name
BL_API_KEYYour Blaxel API key
You can create an API key from the Blaxel console. 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:
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. Alternatively, you can authenticate via the Blaxel CLI:
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.

Go SDK

Open the GitHub repository for Blaxel SDK in Go.
Last modified on April 7, 2026