Skip to main content

BindAI Logo

BindAI

Build AI applications with agents, tools, workflows, memory, knowledge, and retrieval.

A modular Python framework for building AI applications from assistants and RAG systems to automation and multi-agent workflows.

Documentation · Website · PyPI · GitHub


Overview

BindAI is an open-source Python framework for building AI applications from composable components.

The framework brings together:

  • AI agents
  • Model providers
  • Tool calling
  • Workflows
  • Memory
  • Knowledge and RAG
  • Embeddings
  • Retrieval
  • Multi-agent delegation and teams
  • External connections
  • MCP integration
  • CLI and project configuration
  • AI automation

The architecture is modular, so applications can start with a simple agent and grow into more sophisticated AI systems without requiring a completely different application structure.


Installation

Install the main framework package:

pip install bindai

The BindAI ecosystem also provides separate packages for providers and integrations.

For development from the repository:

git clone https://github.com/BindBrain/BindAI.git
cd BindAI
uv sync

The repository root is a uv workspace. The root workspace itself is not installed with pip install -e ..


Quick Start

The recommended programmatic construction API is Agent.builder():

from bindai import Agent

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

result = agent.run("Explain what BindAI is.")

print(result.output)

Provider/model selection can also use the provider:model format:

from bindai import Agent

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

Set the required provider environment variable before running the application.

For example:

OPENAI_API_KEY=your-key

See the documentation for provider-specific configuration and additional providers.


Core Capabilities

Agents

BindAI agents provide the primary runtime abstraction for AI application logic.

Agents support:

  • Instructions and prompts
  • Model providers
  • Tool calling
  • Structured output
  • Streaming
  • Memory
  • Knowledge and retrieval
  • Middleware
  • Hooks and events
  • Agent delegation
  • Multi-agent teams
  • Workflow integration

Example:

from bindai import Agent

agent = (
    Agent.builder()
    .name("researcher")
    .instructions("You are a research assistant.")
    .model("openai:gpt-4.1-mini")
    .build()
)

result = agent.run("Explain retrieval-augmented generation.")

print(result.output)

Tools

Tools allow agents to call application-defined Python functions and external services.

from bindai import Agent


def get_status() -> str:
    return "All systems operational."


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

Tools can be combined with workflows, Memory, Knowledge, Connections, and multi-agent systems.


Workflows

BindAI provides workflow orchestration capabilities for composing AI and application operations.

Supported workflow patterns include:

  • Sequential execution
  • Conditional branching
  • Loops
  • Parallel execution
  • Retries
  • Timeouts
  • Human-in-the-loop tasks
  • Scheduling
  • External integrations

Workflows can coordinate agents, tools, retrieval, memory, and external services.


Memory

Memory provides provider-based storage and retrieval of application records.

Current memory providers include:

  • In-memory
  • SQLite
  • PostgreSQL
  • Vector memory
  • Pinecone
  • Chroma

Memory can store application state, long-term information, metadata, relationships, embeddings, and other records.

Example:

from bindai import Agent
from bindai_memory import Memory, SQLiteMemoryProvider


memory = Memory(SQLiteMemoryProvider("memory.db"))

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

Knowledge and RAG

BindAI includes a Knowledge layer for retrieval-augmented applications.

The Knowledge and retrieval stack supports:

  • Document loading
  • Ingestion
  • Parsing
  • Chunking
  • Metadata
  • Embeddings
  • Vector retrieval
  • BM25 retrieval
  • Hybrid retrieval
  • Metadata filtering
  • Reranking
  • Conversational retrieval
  • Knowledge pipelines
  • Agent integration

The framework also provides an OpenAI embedding provider and a deterministic local embedding provider for development and testing.


Embeddings and Retrieval

Embeddings and retrieval are available as modular packages.

Retrieval capabilities include:

  • Vector search
  • BM25 search
  • Hybrid search
  • Similarity scoring
  • Metadata filtering
  • Search configuration
  • Reranking

These components can be used independently or combined with the Knowledge and agent layers.


Multi-Agent Systems

Agents can delegate work to other agents and participate in agent teams.

Current capabilities include:

  • Agent delegation
  • Team delegation
  • Specialist agents
  • Role-based chains
  • Retrieval-enabled agents

More advanced planning and hierarchical coordination remain part of the roadmap.


External Connections

The Connections package provides a common abstraction for integrating external services.

Current integrations include:

  • Webhooks
  • GitHub
  • Slack
  • Notion
  • Jira
  • Discord
  • Resend
  • Vercel
  • Netlify

Connections are modular and can be used by application logic, tools, workflows, and agents.


MCP

BindAI includes a basic MCP client integration for connecting applications to MCP-compatible tool services.

Current MCP capabilities include:

  • Tool discovery
  • Tool calling
  • Basic HTTP connections

Additional MCP capabilities are planned as the integration evolves.


AI Providers

BindAI currently includes provider integrations for:

  • OpenAI
  • Anthropic
  • Google Gemini
  • Groq
  • Ollama
  • OpenRouter

Providers are packaged independently so applications can select the provider they need.

Typical model identifiers use:

provider:model

Examples:

openai:gpt-4.1-mini
anthropic:claude-sonnet-4
google:gemini-2.5-flash
groq:llama-3.3-70b-versatile
ollama:llama3
openrouter:openai/gpt-4.1-mini

Provider packages are separate from the main bindai package.


Package Ecosystem

BindAI is organized as a modular package ecosystem.

Package Purpose
bindai Main framework
bindai-agent AI agents
bindai-application Application abstractions
bindai-cli Command-line interface
bindai-config Configuration
bindai-connections External service connections
bindai-core Core framework primitives
bindai-embeddings Embedding providers
bindai-group Agent groups
bindai-host Hosting-related components
bindai-knowledge Knowledge and RAG
bindai-mcp MCP integration
bindai-memory Memory providers
bindai-model Model abstractions
bindai-project Project abstractions
bindai-prompt-builder Prompt construction
bindai-prompts Prompt system
bindai-providers Provider infrastructure
bindai-retrieval Retrieval
bindai-runtime Runtime
bindai-task Tasks
bindai-tool Tool system
bindai-workflow Workflow orchestration

Provider integrations are packaged separately under the provider namespace:

bindai-provider-openai
bindai-provider-anthropic
bindai-provider-google
bindai-provider-groq
bindai-provider-ollama
bindai-provider-openrouter

Architecture

                    Application
                         |
             +-----------+-----------+
             |           |           |
           Agent      Workflow     Tools
             |           |           |
             +-----------+-----------+
                         |
              +----------+----------+
              |                     |
           Memory               Knowledge
                                      |
                                Retrieval / RAG
                                      |
                         +------------+------------+
                         |                         |
                    Embeddings                 Reranking
                         |
                  Model Providers
                         |
       +---------+---------+---------+---------+
       |         |         |         |         |
     OpenAI   Anthropic  Google     Groq     Ollama
                                             |
                                       OpenRouter

External Connections and MCP can be integrated alongside these application components.

The architecture is designed around composable packages so individual capabilities can evolve independently.


Project Structure

BindAI/
├── packages/
│   ├── bindai/
│   ├── bindai-agent/
│   ├── bindai-core/
│   ├── bindai-memory/
│   ├── bindai-tool/
│   ├── bindai-workflow/
│   ├── bindai-knowledge/
│   ├── bindai-connections/
│   ├── bindai-mcp/
│   └── ...
├── docs/
├── scripts/
├── README.md
├── docs.json
└── pyproject.toml

Documentation

Complete documentation is available at:

https://docs.bindai.dev

Documentation includes:

  • Getting Started
  • Installation
  • Core Concepts
  • Agents
  • Tools
  • Memory
  • Knowledge and RAG
  • Workflows
  • Projects
  • Connections
  • MCP
  • API Reference

Roadmap

BindAI is being developed incrementally.

Current roadmap areas include:

  • AI application foundation
  • AI provider ecosystem
  • Memory, storage, and retrieval
  • Advanced Knowledge and RAG
  • Connections and integrations
  • MCP
  • Advanced agents and multi-agent systems
  • AI automation
  • Public API and deployment
  • Observability

Future areas include:

  • Enterprise capabilities
  • Visual workflow platform
  • Voice AI
  • Templates and business solutions

See the current roadmap in the documentation for implementation status and upcoming work.


Contributing

Contributions are welcome.

To contribute:

  1. Fork the repository.
  2. Create a feature branch.
  3. Implement your changes.
  4. Add or update tests when appropriate.
  5. Verify the test suite.
  6. Submit a pull request.

Bug reports, documentation improvements, feature requests, and code contributions are welcome.


Community

Follow BindAI and BindBrain for project updates and future ecosystem announcements.


License

BindAI is released under the MIT License.


Vision

BindAI aims to provide an open-source foundation for building AI software with composable, provider-independent components.

The long-term vision is to support increasingly sophisticated AI applications while keeping the underlying architecture modular, testable, and extensible.


Build AI Software. Scale Everywhere.
Made with ❤️ by BindBrain
https://bindai.dev

Release files for bindai 0.1.5

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.5
File Size Uploaded
bindai-0.1.5.tar.gz 8.9 kB Details

Built distribution (wheel)

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

Total release size: 20.6 kB

Release files / bindai-0.1.5.tar.gz

Download URL bindai-0.1.5.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
9cb523fbc95b44360e079e6e1ae92b303c2e216451100d537eca8fd148e887aa
BLAKE2b-256 checksum
How to use checksums
434fdcf57bd2730ca9fef95724c6f4d19a61ec96f2a9ab4e3e7a25ad6173f6fe
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.5-py3-none-any.whl

Download URL bindai-0.1.5-py3-none-any.whl
Size 11.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
71567a09f9642f66712b7af72b2d3ad08440fccd9d375a2327c453bd486c5f8d
BLAKE2b-256 checksum
How to use checksums
15b4633d67e0412fa47e36a634c608f61219f10c3694b8567518cb4aacda3bb0
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

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

This release

0.1.5 This release

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