Skip to main content

Requirements

  • Python 3.9 or higher
  • pip package manager

Install via pip

This installs both the Python library and the CLI tool.

Set Up API Keys

Configure API keys for the LLM providers you’ll use:
You only need API keys for the providers you’ll use. The SDK supports OpenAI, Anthropic, Gemini, xAI, OpenRouter, and Cerebras.

Using .env Files

Create a .env file in your project:
Load it in your code:

Verify Installation

Test the Python SDK:
Test the CLI:

Troubleshooting

Import Error: Make sure you installed osmosis-ai (not osmosis-sdk)
CLI Not Found: Reinstall and verify PATH
API Key Error: Verify environment variables are set

Next Steps

Quick Start

Your first evaluation in 5 minutes

CLI Quick Start

Batch evaluate with the CLI tool