For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
BlogLog InRequest Demo
HomeProductDevelopersSelf-HostingChangelog
HomeProductDevelopersSelf-HostingChangelog
  • Getting Started
    • Overview
  • Workflows SDK
    • Introduction
    • Installation
    • Core Concepts
    • Defining Control Flow
    • Configuration
    • Custom Docker Images
  • Client SDK
    • Introduction
    • Authentication
    • API Versioning
LogoLogo
BlogLog InRequest Demo
On this page
  • Prerequisites
  • Installation
  • Install the Vellum Workflows SDK
  • Environment Setup
  • Set your Vellum API Key
  • Create a Virtual Environment (Optional but Recommended)
  • Verify Installation
  • Next Steps
  • Need Help?
Workflows SDK

Installation

Was this page helpful?
Previous

Quickstart Overview

Next
Built with

This guide will walk you through installing the Vellum Workflows SDK and setting up your development environment.

Prerequisites

The Vellum Workflows SDK requires Python 3.9 or higher. If you don’t have Python installed, you can download it from python.org.

Installation

Install uv (Recommended)
Install Python

We recommend using uv for package & environment management. If you don’t have uv installed:

$# On macOS and Linux
$curl -LsSf https://astral.sh/uv/install.sh | sh
$
$# On Windows
$powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
$
$# Or using pip
$pip install uv

Learn more about uv here

Install the Vellum Workflows SDK

Using uv (Recommended)
Using pip
$uv add vellum-ai

Environment Setup

Set your Vellum API Key

To use most out-of-the-box Nodes and to push/pull to/from the Vellum UI, you’ll need a Vellum API key.

  1. Get your API key: You can find this in Workspace Settings in Vellum. Note that API keys are Environment-scoped.
  2. Set the environment variable:
macOS/Linux
Windows
$export VELLUM_API_KEY=your-api-key-here

To make this permanent, add it to your shell profile:

$echo 'export VELLUM_API_KEY=your-api-key-here' >> ~/.bashrc
$# or for zsh users:
$echo 'export VELLUM_API_KEY=your-api-key-here' >> ~/.zshrc

Create a Virtual Environment (Optional but Recommended)

It’s good practice to create a virtual environment for your project:

Using uv
Using venv
$uv venv
$source .venv/bin/activate # On Windows: .venv\Scripts\activate

Verify Installation

Test that everything is working correctly:

1from vellum.workflows import BaseWorkflow
2from vellum.workflows.nodes import BaseNode
3
4print("Vellum Workflows SDK installed successfully!")

Next Steps

Now that you have the SDK installed, you can:

  • Get started with the Quickstart guide
  • Learn about Core Concepts
  • Explore Examples

Need Help?

If you don’t have a Vellum account yet, you can sign up for free here.

For additional support, visit our support page.