Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.galileo.ai/llms.txt

Use this file to discover all available pages before exploring further.

TypeScript SDK

The Galileo TypeScript SDK on npm.

TypeScript SDK GitHub repo

The GitHub repo for the Galileo TypeScript SDK.
Note: This library is in pre-release mode and may not be stable.

Installation

npm install galileo

Initialization/Authentication

You can configure Galileo using environment variables:
# Your Galileo API key
GALILEO_API_KEY="your-galileo-api-key"

# Your Galileo project name
GALILEO_PROJECT="your-galileo-project-name"

# The name of the Log stream you want to use for logging
GALILEO_LOG_STREAM="your-galileo-log-stream "

# Provide the console url below if you are using a
# custom deployment, and not using the free tier, or app.galileo.ai.
# This will look something like “console.galileo.yourcompany.com”.
# GALILEO_CONSOLE_URL="your-galileo-console-url"
If you are using the free version of Galileo, there is no need to set the GALILEO_CONSOLE_URL environment variable.
In Node.js, you can use process.env to specify these variables:
process.env.GALILEO_API_KEY = "your-api-key";
process.env.GALILEO_PROJECT = "your-project";
process.env.GALILEO_LOG_STREAM = "your-log-stream";
process.env.GALILEO_CONSOLE_URL = "your-console-url";