Quick Start
This guide gets you from zero to a working BindAI application in a few steps. By the end, you will:- Create a BindAI project
- Configure an AI provider
- Configure project settings
- Optionally configure a project-scoped provider connection
- Run a BindAI application
- Create an agent
- Add tools
- Understand the basic project structure
- Learn how workflows, memory, knowledge, and connections fit together
- Know how to run BindAI through the REST API or Docker
- Know where to continue next
Prerequisites
Before starting, complete the Installation guide. You should have:- Python 3.12 or newer
- BindAI installed
- A virtual environment available
- Credentials for a supported provider, if required
- OpenAI
- Anthropic
- Google Gemini
- Groq
- Ollama
- OpenRouter
Create a New Project
The BindAI CLI provides the project entry point for creating and working with BindAI applications. Create a new project:Configure Project Settings
BindAI projects usebindai.toml for project-level configuration.
You can inspect the current configuration with:
bindai.toml can contain:
Configure Environment Variables
Most hosted AI providers require an API key. If the generated project includes an example environment file, create your local environment file.Windows PowerShell
macOS / Linux
.env and configure the credentials required by your selected provider.
For OpenAI:
Never commit API keys or other secrets to source control.
Use Project-Scoped Provider Connections
BindAI can store provider credentials separately from project configuration using named provider connections. A project-scoped provider connection consists of:- A connection name
- A provider name
-
Connection metadata stored in
.bindai/connections.toml - The provider credential stored in the operating system credential store
work for OpenAI.
Then select that connection for the project:
- An explicitly supplied API key
- The credential stored for the selected project connection
- The provider environment variable
Run the Project
From inside the generated project, run:Verify Your Installation
If you encounter an installation or configuration problem, run:Create an Agent
Agents are the central abstraction for building AI applications with BindAI. A basic agent can be created using the BindAI agent API:Provider and model availability can change independently of BindAI. Check the provider documentation when selecting a model.
Run an Agent
Once an agent has been configured, it can be executed with an input message:Add Tools
Tools allow agents to perform actions instead of only generating text. A tool can be implemented as a Python function and exposed through BindAI’s tool system. For example:Change Providers
BindAI uses a provider abstraction so applications can work with different model providers. For example, an OpenAI model:Add Memory
Agents can use memory to retain information across interactions. BindAI provides memory abstractions that allow applications to use different storage backends. Current memory capabilities include:- In-memory memory
- SQLite
- PostgreSQL
- Vector memory
- Pinecone
- Chroma
- Conversation memory
- Custom memory providers
Add Knowledge
Knowledge allows agents to work with information outside the model’s built-in knowledge. A typical knowledge pipeline can involve:Use Workflows
When an application requires multiple execution steps, workflows can coordinate the process. A workflow can combine:- Agents
- Tools
- Conditions
- Loops
- Parallel execution
- Retries
- Timeouts
- Scheduling
- Human tasks
- Human approval
Connect External Services
BindAI provides a Connections package for integrating external services with applications and workflows. Current integrations include:- Webhooks
- GitHub
- Slack
- Discord
- Notion
- Jira
- Resend
- Vercel
- Netlify
- Google Sheets
- Google Docs
- Gmail
- Google Drive
bindai-connections package.
For example, install the package with:
Use the REST API
BindAI also provides a REST API through thebindai-api package.
Install it with:
- Agent execution
- Agent streaming
- Workflow execution
- Projects
- Background automation runs
- Run status
- Health checks
Run with Docker
BindAI API can also be deployed using Docker. Build the API image:BindAI v0.1 provides in-process background execution. Distributed queue-based workers and Kubernetes deployment are planned for future releases.
MCP and Tool Bridges
BindAI currently provides a lightweight HTTP-based MCP/tool bridge for tool discovery and invocation. The current implementation provides capabilities around:- Tool discovery
- Tool invocation
- MCP client connections
- Integration with the BindAI tool system
Observability
BindAI provides an event-based observability foundation for tracking execution activity. Events can represent activity such as:- Agent execution
- Model requests
- Model responses
- Tool execution
- Workflow execution
- Execution state changes
EventRecorder that can collect events associated with an execution.
This provides a foundation for future tracing, metrics, and external observability integrations.
See Events and Observability.
BindAI v0.1 provides lightweight in-memory event recording. OpenTelemetry, distributed tracing, and external observability backends are planned for future releases.
Project Structure
A BindAI project can be organized around several major components.agents/
Contains agent definitions.
Agents are responsible for interacting with language models and coordinating AI execution.
Agents can work with:
- Prompts and instructions
- Tools
- Memory
- Knowledge
- Retrieval
- Provider integrations
- Execution configuration
- Other agents
tools/
Contains reusable tools that agents can execute.
Tools can represent:
- Python functions
- Application services
- External APIs
- Database operations
- Search functionality
- External integrations
- MCP-backed tools
workflows/
Contains workflow definitions.
BindAI workflows support execution patterns such as:
- Sequential execution
- Conditional branching
- Loops
- Parallel execution
- Retries
- Timeouts
- Scheduling
- Human approval
- Human tasks
knowledge/
Contains knowledge-related application resources.
BindAI’s knowledge system supports capabilities such as:
- Document ingestion
- Parsing
- Chunking
- Embeddings
- Metadata
- Semantic retrieval
- BM25 retrieval
- Hybrid retrieval
- Filtering
- Reranking
- Conversational retrieval
memory/
Contains memory-related application resources.
BindAI supports multiple memory implementations, including:
- In-memory memory
- SQLite
- PostgreSQL
- Vector memory
- Pinecone
- Chroma
- Conversation memory
- Custom memory providers
templates/
Contains reusable workflow or application templates.
Templates provide starting points for common BindAI execution patterns.
tests/
Contains application tests.
Testing is an important part of developing reliable BindAI applications.
main.py
The application entry point.
The exact contents depend on the project generated and the application being built.
bindai.toml
Project-level configuration.
Use this file for BindAI project configuration supported by the application and CLI.
For example:
connection setting is optional. When configured, BindAI uses the named project-scoped provider connection during provider resolution.
Configuration options may evolve as the project architecture develops.
Package Structure
BindAI is organized as a collection of packages that can be used together or independently depending on your application. The main packages include:bindai package provides the core public framework experience, while the other packages provide specialized capabilities such as agents, automation, APIs, integrations, runtime services, and MCP/tool integration.
Running Tests
For an application project, run:uv workspace.
From the repository root:
Useful CLI Commands
Create a project:What You’ve Learned
You have now seen the basic BindAI development workflow:- Created a BindAI project
- Configured a model provider
- Configured project settings
- Learned how project-scoped provider connections work
- Started a BindAI application
- Learned the project structure
- Created an agent
- Added a tool
- Learned how providers can be changed
- Learned how memory works
- Learned how knowledge and RAG fit into an application
- Learned how workflows coordinate execution
- Learned about external connections
- Learned about the REST API
- Learned about Docker deployment
- Learned about background execution
- Learned about BindAI’s observability foundation
- Learned about the current MCP/tool bridge
Next Steps
Continue with:- First Agent
- Project Structure
- Core Agents
- Tools
- Memory
- Knowledge
- Workflows
- Connections
- REST API
- Deployment
