Installation

Pulsar supports multiple installation methods for different use cases.

System Requirements

  • Python: 3.9 or higher

  • Operating System: Linux, macOS, or Windows

  • Memory: 4GB RAM minimum, 8GB recommended

  • Storage: 500MB free space

Installation Methods

Docker Container

Run without installation using Docker:

# Pull from GitHub Container Registry
docker pull ghcr.io/lsalihi/pulsar-compose:latest

# Quick start
docker run --rm ghcr.io/lsalihi/pulsar-compose:latest --help

# Run a workflow with your files
docker run -v $(pwd):/workflows --rm ghcr.io/lsalihi/pulsar-compose:latest \
  run /workflows/my-workflow.yml --input "Hello world"

# Docker Compose style commands
docker run -v $(pwd):/workflows --rm ghcr.io/lsalihi/pulsar-compose:latest \
  compose up

# With persistent configuration
docker run -v $(pwd):/workflows -v ~/.pulsar:/root/.pulsar --rm \
  ghcr.io/lsalihi/pulsar-compose:latest

Package Managers

Install using your favorite package manager:

Homebrew (macOS/Linux):

brew install lsalihi/pulsar-compose/pulsar-compose

PyPI (Python 3.9+ required):

pip install pulsar-compose

Snap (Linux):

sudo snap install pulsar-compose

Chocolatey (Windows):

choco install pulsar-compose

Nix (Linux/macOS):

nix-env -iA nixpkgs.pulsar-compose

Poetry

If you use Poetry for dependency management:

poetry add pulsar-compose

From Source

Clone and install from source:

git clone https://github.com/lsalihi/pulsar-compose.git
cd pulsar-compose
pip install -e .

AI Provider Setup

OpenAI

  1. Get an API key from OpenAI Platform

  2. Set the environment variable:

export OPENAI_API_KEY="your-api-key-here"

Anthropic Claude

  1. Get an API key from Anthropic Console

  2. Set the environment variable:

export ANTHROPIC_API_KEY="your-api-key-here"

Local Models (Ollama)

  1. Install Ollama:

# macOS
brew install ollama

# Linux
curl -fsSL https://ollama.ai/install.sh | sh

# Windows - download from https://ollama.ai/download
  1. Start Ollama service:

ollama serve
  1. Pull models:

ollama pull llama2          # General purpose
ollama pull codellama       # Code generation
ollama pull mistral         # Fast and capable
  1. Configure Pulsar (optional):

export OLLAMA_BASE_URL="http://localhost:11434"

Verification

Verify your installation:

# Check version
pulsar --version

# List available commands
pulsar --help

# Validate a workflow file
pulsar validate examples/simple_chain.yml

Troubleshooting

Common installation issues:

Python Version Error

ERROR: Package 'pulsar-compose' requires a different Python version

Solution: Upgrade Python to 3.9+ or use a virtual environment with the correct version.

Import Error

ModuleNotFoundError: No module named 'pulsar'

Solution: Ensure Pulsar is installed and you’re using the correct Python environment.

API Key Error

ERROR: OpenAI API key not found

Solution: Set the appropriate environment variables for your AI providers.

Ollama Connection Error

ERROR: Cannot connect to Ollama

Solution: Ensure Ollama is running with ollama serve and the correct base URL is set.

Permission Error (Linux/macOS)

Permission denied

Solution: Install with --user flag or use a virtual environment.

pip install --user pulsar-compose

Development Installation

For contributors and developers:

# Clone the repository
git clone https://github.com/lsalihi/pulsar-compose.git
cd pulsar-compose

# Install with development dependencies
poetry install

# Or with pip
pip install -e ".[dev]"

# Run tests
pytest tests/

# Build documentation
cd docs && make html