Skip to main content

SDK Installation

Choose the SDK for your language and install it with your package manager.
pip install meibel
npm install meibel
go get github.com/meibel-ai/meibel-go

Environment Setup

All SDKs authenticate with an API key. Get yours from the Meibel Console, then set it as an environment variable.
export MEIBEL_API_KEY="mbl_your_api_key_here"
$env:MEIBEL_API_KEY = "mbl_your_api_key_here"
MEIBEL_API_KEY=mbl_your_api_key_here
Using a .env file? The Python SDK loads it automatically with python-dotenv. For TypeScript, use the dotenv package.

CLI Installation

The Meibel CLI lets you interact with the API from your terminal. Install it with your preferred method.
brew install meibel-ai/tap/meibel
scoop bucket add meibel https://github.com/meibel-ai/scoop-bucket
scoop install meibel
# Download the latest release for your platform from:
# https://github.com/meibel-ai/meibel-cli/releases
#
# Extract and move to your PATH:
tar -xzf meibel_linux_amd64.tar.gz
sudo mv meibel /usr/local/bin/
After installing, configure the CLI with your API key:
meibel config init

Verify Installation

Run a quick API call to confirm everything is working. This example lists your datasources — an empty list means the connection is healthy.
import os
from meibel import MeibelClient

client = MeibelClient(api_key=os.environ["MEIBEL_API_KEY"])

datasources = client.datasources.list_datasources()
print(f"Connected — {len(datasources.items)} datasource(s) found")
import { MeibelClient } from "meibel";

const client = new MeibelClient({
  apiKey: process.env.MEIBEL_API_KEY,
});

const datasources = await client.datasources.listDatasources();
console.log(`Connected — ${datasources.items.length} datasource(s) found`);
package main

import (
    "context"
    "fmt"
    "os"

    meibel "github.com/meibel-ai/meibel-go"
)

func main() {
    client := meibel.NewClient(
        meibel.WithAPIKey(os.Getenv("MEIBEL_API_KEY")),
    )

    datasources, err := client.Datasources.ListDatasources(context.Background(), nil)
    if err != nil {
        panic(err)
    }
    fmt.Printf("Connected — %d datasource(s) found\n", len(datasources.Items))
}
meibel datasources list
If you see a count (even zero), your installation and API key are working correctly.

Next Steps

Quick Start

Build your first AI-powered workflow end-to-end

API Reference

Explore the full API reference