Skip to content

InstallationΒΆ

Get Flock up and running in minutes.


PrerequisitesΒΆ

  • Python 3.10+ (we use modern async features)
  • OpenAI API key (or compatible LLM provider)
  • UV package manager (recommended) or pip

UV is a fast, reliable Python package manager that handles virtual environments automatically:

# Install Flock
uv pip install flock-core

# Or with all optional features
uv pip install "flock-core[all]"

Install with pipΒΆ

# Install Flock
pip install flock-core

# Or with all optional features
pip install "flock-core[all]"

Optional DependenciesΒΆ

Flock has several optional feature sets:

Development ToolsΒΆ

pip install "flock-core[dev]"
Includes pytest, ruff, mypy, and other development tools.

Dashboard (React UI)ΒΆ

pip install "flock-core[dashboard]"
Real-time dashboard for monitoring agent execution.

Comparison FrameworksΒΆ

pip install "flock-core[comparison]"
LangGraph, AutoGen, and other frameworks for benchmarking.

All FeaturesΒΆ

pip install "flock-core[all]"

ConfigurationΒΆ

Set Your API KeyΒΆ

# For OpenAI
export OPENAI_API_KEY="sk-..."

# For other providers (via LiteLLM)
export ANTHROPIC_API_KEY="..."
export COHERE_API_KEY="..."

Configure Default ModelΒΆ

export DEFAULT_MODEL="openai/gpt-4.1"

Flock uses LiteLLM for provider abstraction, supporting 100+ LLM providers.


Verify InstallationΒΆ

from flock import Flock
print("βœ… Flock installed successfully!")

Or from command line:

python -c "from flock import Flock; print('βœ… Flock ready!')"

Flock's observability features require trace storage:

# Enable auto-tracing to DuckDB
export FLOCK_AUTO_TRACE=true
export FLOCK_TRACE_FILE=true

This creates .flock/traces.duckdb in your project directory for full execution history.


Next StepsΒΆ

Ready to build your first agent? Continue to the Quick Start Guide.

For more details on tracing configuration, see the Tracing Guide.