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
Install with UV (Recommended)ΒΆ
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ΒΆ
Includes pytest, ruff, mypy, and other development tools.Dashboard (React UI)ΒΆ
Real-time dashboard for monitoring agent execution.Comparison FrameworksΒΆ
LangGraph, AutoGen, and other frameworks for benchmarking.All FeaturesΒΆ
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ΒΆ
Flock uses LiteLLM for provider abstraction, supporting 100+ LLM providers.
Verify InstallationΒΆ
Or from command line:
Enable Tracing (Optional but Recommended)ΒΆ
Flock's observability features require trace storage:
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.