Installation
This guide walks you through installing BindAI and preparing your development environment. There are two main ways to use BindAI:- Install the published packages from PyPI — recommended for application development.
- Clone the GitHub repository and use the
uvworkspace — recommended for contributors and framework development.
Requirements
Before installing BindAI, make sure you have:- Python 3.12 or newer
- pip
- Git (recommended for source development)
- uv for source development
Install BindAI from PyPI
The easiest way to install BindAI is from PyPI:Verify the Python Package
Verify that the BindAI Python package is available:Install Optional BindAI Packages
BindAI is organized into multiple packages. The mainbindai package provides the core framework experience. Additional capabilities are available through separate packages.
REST API
Install the BindAI REST API package:- Agent execution
- Agent streaming
- Workflow execution
- Project access
- Background automation runs
- Run status
- Health checks
Connections
Install the BindAI Connections package:- Webhooks
- GitHub
- Slack
- Discord
- Notion
- Jira
- Resend
- Vercel
- Netlify
- Google Sheets
- Google Docs
- Gmail
- Google Drive
Create Your First Project
Generate a new BindAI project:Configure Project Settings
BindAI projects usebindai.toml for project configuration.
The CLI can be used to inspect and update supported configuration values.
Show the current project configuration:
bindai.toml file.
Configure Environment Variables
AI providers generally require credentials. Configure the required credentials in your environment or project.env file.
For example:
Use Project-Scoped Provider Connections
BindAI also supports named provider connections for storing provider credentials separately from project configuration. A provider connection has:- A connection name
- A provider name
- Connection metadata stored in
.bindai/connections.toml - A provider credential stored in the operating system credential store
bindai.toml.
Provider credential resolution follows this precedence:
- An explicitly supplied API key
- The credential stored for the selected project connection
- The provider environment variable
Verify Your Environment
Run the built-in diagnostics:bindai doctor also reports the configured connection and whether its stored credential is available.
Run Your Project
Start the generated application:Docker Deployment
BindAI v0.1 includes Docker support for running the BindAI API service. From the BindAI repository root, build the Docker image:Docker Compose
The repository also includes a Docker Compose configuration. Start the API service with:.env file.
Do not commit API keys or other secrets to source control.
See Project Deployment for more information.
API Authentication
Protected BindAI API endpoints use an API key. Configure:/health endpoint is public.
Resource endpoints require authentication.
The v0.1 API uses a simple environment-based API key. Persistent API-key management and more advanced authentication are planned for future releases.
Background Execution
BindAI v0.1 provides background automation execution through the automation worker. Background runs can be submitted through the REST API and queried by run ID. The v0.1 implementation uses in-process execution. Distributed queue-based workers are planned for a future release and are not required for the v0.1 release.Install BindAI from GitHub for Development
If you want to contribute to BindAI or work with the latest source code, clone the repository:uv workspace.
The repository contains multiple BindAI packages under:
- Core functionality
- Agents
- Tools
- Providers
- Memory
- Embeddings
- Retrieval
- Knowledge
- Workflows
- Projects
- Automation
- Connections
- Runtime
- REST API
- MCP
- CLI
Install uv
Ifuv is not already installed, install it with:
Synchronize the Development Workspace
From the repository root, run:Activate the Development Environment
Windows PowerShell
macOS / Linux
Verify the Source Installation
Verify that Python is using the workspace environment:Important: Do Not Use Root-Level Editable Installation
Because the BindAI repository is a multi-packageuv workspace, do not run:
Development Workflow
When working on BindAI from source, a typical workflow is:Windows PowerShell
macOS / Linux
Updating BindAI
To upgrade the published PyPI package:Common Issues
ModuleNotFoundError
Make sure the correct environment is activated.
For source development, activate the workspace environment.
Windows PowerShell
macOS / Linux
CLI Not Found
If thebindai command is unavailable after installation, make sure the environment containing BindAI is activated.
For source development, activate the .venv created by uv sync.
You can also verify which Python executable is being used:
Missing API Key
If a provider reports an authentication error, verify that the required environment variable is configured. For example:.env file, ensure it is located where your application expects it and that your application loads environment variables appropriately.
If you are using a project-scoped provider connection instead, verify the connection:
Unsupported Python Version
Check your Python version:Provider Configuration Issues
If your application cannot connect to a language model:- Verify that the required API key or local provider configuration is available.
- Confirm the selected provider.
- Confirm that the selected model is supported by that provider.
- If using a named connection, verify that the connection exists and matches the selected provider.
- Run:
- Check the provider-specific documentation for additional configuration requirements.
- OpenAI
- Anthropic
- Google Gemini
- Groq
- Ollama
- OpenRouter
Workspace Installation Issues
If source dependencies appear to be missing or inconsistent, run:Docker Issues
If the Docker API container does not start:- Verify Docker is installed and running.
- Build the image again:
- Verify that port
8000is available. - Make sure
BINDAI_API_KEYis configured when running the Docker container.
Next Steps
After installing BindAI, continue with: These guides introduce the core BindAI development workflow. As you become familiar with the framework, explore:- Tools
- Memory
- Knowledge and RAG
- Workflows
- Projects
- Connections
- REST API
- Automation
- MCP
- Multi-Agent Systems
