Skip to main content

BindAI

Build production-ready AI applications with a modern Python framework for AI agents, workflows, tools, memory, knowledge, and retrieval.

BindAI provides a composable Python API for building AI applications while keeping providers, workflows, memory, tools, and project configuration modular.

Installation

Install the core framework from PyPI:

pip install bindai

Provider implementations are installed through optional extras:

pip install "bindai[openai]"

Available provider extras:

  • openai
  • anthropic
  • google
  • groq
  • ollama
  • openrouter

For example:

pip install "bindai[anthropic]"

BindAI requires Python 3.12 or newer.

Quick Start

Configure your provider credentials through the environment:

export OPENAI_API_KEY="your-api-key"

Then create an agent:

from bindai import Agent

agent = (
    Agent.builder()
    .openai("gpt-4.1-mini")
    .instructions("You are a helpful assistant.")
    .build()
)

result = agent.run("Hello!")

print(result.output)

The same agent API can be configured through project configuration and provider connections.

Core Capabilities

AI Agents

Build agents with configurable providers, models, instructions, tools, memory, and execution behavior.

from bindai import Agent

agent = (
    Agent.builder()
    .openai("gpt-4.1-mini")
    .instructions("You are a helpful assistant.")
    .build()
)

Workflows

Compose multi-step AI processes using workflow nodes, conditions, loops, parallel execution, retries, timeouts, scheduling, and human tasks.

from bindai import Workflow

workflow = Workflow.builder() \
    .name("research-workflow") \
    .build()

Tools

Extend agents with Python functions and reusable tools.

from bindai import tool

@tool
def get_weather(city: str) -> str:
    return f"Weather information for {city}"

Memory

Store and retrieve conversational or application state through BindAI memory providers.

Supported memory capabilities include:

  • In-memory storage
  • SQLite-backed storage
  • PostgreSQL-backed storage
  • Vector memory
  • Custom memory providers

Knowledge and Retrieval

Build retrieval-augmented applications from documents, embeddings, and retrievers.

BindAI provides building blocks for:

  • Document ingestion
  • Embeddings
  • Retrievers
  • Retrieval pipelines
  • RAG applications

Multi-Agent Systems

Compose multiple agents and tasks for applications that require specialized roles or coordinated execution.

Provider Connections

BindAI supports project-scoped provider connections so API credentials do not need to be stored directly in project configuration.

A connection consists of provider metadata in the project manifest and a credential stored through the operating system credential store.

Create a connection with the CLI:

bindai connections add work --provider openai

List configured connections:

bindai connections list

Remove a connection:

bindai connections remove work

The project manifest is stored at:

.bindai/connections.toml

The credential itself is stored through the operating system credential store rather than in the project manifest.

Select the connection in bindai.toml:

provider = "openai"
connection = "work"
model = "gpt-4.1-mini"

Agents created through the project configuration can then resolve the configured provider connection.

For example:

from bindai import Agent

agent = Agent.builder().build()
result = agent.run("Hello!")

print(result.output)

Provider credential resolution follows this precedence:

  1. Explicit API key supplied to the builder
  2. Credential from the configured project connection
  3. Provider environment variable

For example, an OpenAI provider normally uses:

OPENAI_API_KEY
OPENAI_BASE_URL
OPENAI_ORGANIZATION

Validate project configuration and connection state with:

bindai doctor

External Connections

BindAI also provides connection capabilities for external application services. These are separate from model-provider connections.

Supported integrations include:

  • Webhooks
  • GitHub
  • Slack
  • Notion
  • Jira
  • Discord
  • Resend
  • Vercel
  • Netlify
  • Google Sheets
  • Google Docs
  • Gmail
  • Google Drive

These integrations can be used by applications and tools to interact with external services.

MCP

BindAI includes Model Context Protocol (MCP) support for connecting agents and applications to MCP-based tools and services.

MCP capabilities include:

  • MCP client support
  • Tool discovery
  • Tool invocation
  • Basic HTTP-based MCP connectivity

AI Providers

BindAI supports multiple model providers through separate provider packages.

OpenAI

pip install "bindai[openai]"
from bindai import Agent

agent = (
    Agent.builder()
    .openai("gpt-4.1-mini")
    .instructions("You are a helpful assistant.")
    .build()
)

Anthropic

pip install "bindai[anthropic]"

Google Gemini

pip install "bindai[google]"

Groq

pip install "bindai[groq]"

Ollama

pip install "bindai[ollama]"

OpenRouter

pip install "bindai[openrouter]"

Provider implementations are distributed independently from the shared provider registry and configuration layer.

Package Ecosystem

BindAI is organized as a collection of focused packages.

Package Purpose
bindai Main framework distribution
bindai-core Core abstractions and shared types
bindai-agent Agent construction and execution
bindai-application Application-level functionality
bindai-config Project configuration and resolution
bindai-connections Connection abstractions and credential storage
bindai-group Multi-agent groups
bindai-knowledge Knowledge and document capabilities
bindai-memory Memory abstractions and providers
bindai-model Model abstractions
bindai-project Project runtime and project configuration
bindai-retrieval Retrieval functionality
bindai-runtime Runtime support
bindai-task Task abstractions
bindai-workflow Workflow construction and execution
bindai-providers Provider registry and shared provider infrastructure
bindai-provider-openai OpenAI provider implementation
bindai-provider-anthropic Anthropic provider implementation
bindai-provider-google Google provider implementation
bindai-provider-groq Groq provider implementation
bindai-provider-ollama Ollama provider implementation
bindai-provider-openrouter OpenRouter provider implementation
bindai-cli BindAI command-line interface

The bindai distribution installs the core framework packages. Provider implementations are available through the corresponding optional extras.

Architecture

BindAI separates application concerns into focused layers:

Application
    │
    ├── Agents
    ├── Workflows
    ├── Tasks
    ├── Tools
    ├── Memory
    └── Knowledge
          │
          ▼
       Runtime
          │
          ▼
      Model Layer
          │
          ▼
   Provider Registry
          │
          ├── OpenAI
          ├── Anthropic
          ├── Google
          ├── Groq
          ├── Ollama
          └── OpenRouter

This structure allows individual components to evolve independently while providing a unified framework API.

Project Structure

A BindAI project can contain application configuration, agents, workflows, tools, memory, knowledge, and templates:

my-project/
├── bindai.toml
├── .bindai/
│   └── connections.toml
├── agents/
├── workflows/
├── tools/
├── memory/
├── knowledge/
└── templates/

Project configuration can define the default provider, model, connection, and runtime settings.

Example:

name = "My BindAI Project"
provider = "openai"
connection = "work"
model = "gpt-4.1-mini"
temperature = 0.7
timeout = 60

Documentation

Full documentation is available at:

https://docs.bindai.dev

The documentation covers:

  • Getting started
  • Agents
  • Prompts
  • Execution
  • Providers
  • Results
  • Events
  • Tools
  • MCP
  • Memory
  • Knowledge and RAG
  • Workflows
  • Projects
  • Templates
  • Connections
  • API reference
  • Automation

Roadmap

BindAI is evolving toward a complete framework for production AI applications.

Current development areas include:

  • Agent and workflow reliability
  • Provider integrations
  • Project configuration
  • Secure provider connections
  • Memory and knowledge systems
  • MCP integrations
  • Automation
  • Service APIs
  • Deployment and observability

See the repository roadmap for the current project status and planned work.

Examples

Example applications and workflow templates are maintained in the BindAI repository.

Repository:

https://github.com/BindBrain/BindAI

Contributing

Contributions are welcome.

Before submitting changes:

  1. Create a focused branch.
  2. Make the smallest appropriate change.
  3. Add or update tests when behavior changes.
  4. Run the relevant test suite.
  5. Run the project linting and validation checks.
  6. Open a pull request with a clear description of the change.

Community

Issues, feature requests, and discussions are managed through the BindAI GitHub repository.

https://github.com/BindBrain/BindAI

License

BindAI is released under the project's open-source license.

See the repository LICENSE file for the complete license text.

Vision

BindAI aims to provide a practical foundation for building AI applications that combine agents, tools, workflows, memory, knowledge, model providers, and external services in a single composable Python framework.

Release files for bindai 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bindai 0.1.9
File Size Uploaded
bindai-0.1.9.tar.gz 27.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bindai 0.1.9
File Interpreter ABI Platform
bindai-0.1.9-py3-none-any.whl Python 3 none any Details

Total release size: 39.1 kB

Release files / bindai-0.1.9.tar.gz

Download URL bindai-0.1.9.tar.gz
Size 27.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f3718447fdf26d89693d7373d468476948f672279f6044a105de69a9e014b29d
BLAKE2b-256 checksum
How to use checksums
6830dffcb1fa86d0bc51b3bc3031002418034d12216275f80a373f3f1f964a98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.2

Release files / bindai-0.1.9-py3-none-any.whl

Download URL bindai-0.1.9-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1f4c16ebe15cec6504c5aa12674cc2ca1134cf595fc23ae781228b881b333508
BLAKE2b-256 checksum
How to use checksums
debe9b3248db64be7f38f6b58c5f45c77dde4f095d4581b321361ef0e2d2430d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.2

Release history Release notifications | RSS feed

This release

0.1.9 This release

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page