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
- Run a BindAI application
- Understand the basic project structure
- Create an agent
- Add tools
- Know where to continue next
Prerequisites
Before starting, complete the Installation guide. You should have:- Python 3.11 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 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.
Run the Project
From inside the generated project, run:Verify Your Installation
If you encounter an installation or configuration problem, run:Understanding the Project
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.
Configuration options may evolve as the project architecture develops.
Creating an Agent
Agents are the central abstraction for building AI applications with BindAI. A basic agent can be created using the BindAI agent API. For example:Provider and model availability can change independently of BindAI. Check the provider documentation when selecting a model.
Running an Agent
Once an agent has been configured, it can be executed with an input message. For example:Adding 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:Changing Providers
BindAI uses a provider abstraction so applications can work with different model providers. For example, an application can use an OpenAI model:Adding Memory
Agents can use memory to retain information across interactions. Memory is implemented through provider abstractions, allowing different storage backends to be used without coupling the agent to one database. Current memory backends include:- In-memory
- SQLite
- PostgreSQL
- Pinecone
- Chroma
- Vector memory
Adding Knowledge
Knowledge allows agents to work with information outside the model’s built-in knowledge. A typical knowledge pipeline can involve:Using 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
Connecting External Services
BindAI also provides a Connections abstraction for external services. Current integrations include:- Webhooks
- GitHub
- Slack
- Notion
- Jira
- Discord
- Resend
- Vercel
- Netlify
Using MCP Tools
BindAI includes Model Context Protocol support. MCP allows BindAI applications to discover and call tools exposed by compatible MCP services. The current MCP implementation supports:- MCP client connections
- Tool discovery
- Tool calling
- MCP tools exposed through the BindAI tool system
Running Tests
Run the project’s tests with: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
- 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 MCP tool integration
