# Tribe AI

> A self-hosted, drag-and-drop builder for teams of LangGraph agents

- Category: App UIs & Builders / Low-Code & No-Code Builders
- Language: Python & TypeScript
- Licence: MIT
- Repository: https://github.com/StreetLamb/tribe
- Canonical page: https://ai-tldr.dev/tools/tribe-ai/

## In short

Tribe AI is a self-hosted, drag-and-drop builder for teams of LangGraph agents. It sits in the Low-Code & No-Code Builders category of the App UIs & Builders tools and is open-source, written in Python & TypeScript and licensed MIT. To get started: clone the repository.

## Overview

Tribe is an open-source web app for building teams of LLM agents by drag and drop instead of code. You create a team, drag new members out of an existing node, and give each one a name, a role, an optional backstory, a model and a set of skills; then you open the team's Chat tab and send it a question. Under the hood it builds on the LangGraph framework, and the idea is the one in its README: split a hard task among agents that are each good at one thing.

Every team uses one of two workflow shapes. In a hierarchical team a team leader breaks the task into subtasks, delegates them to members (and to sub-team leaders, so teams can nest), reads their answers and either replies or delegates again. In a sequential team the members run one after another in a fixed order, each step able to build on the previous one — the deterministic option when the task is a clear pipeline.

Around that core sit the pieces a team needs to do real work: skills (tool calls — web search, Wikipedia and Yahoo Finance News out of the box, plus your own), retrieval over documents you upload, an approval gate before a sequential member runs a skill, saved conversation threads, LangSmith tracing, multi-user accounts, and public API endpoints so another application can talk to a team. Models can come from OpenAI-compatible endpoints or from open-source models served by Ollama.

Tribe ships as a Docker Compose stack — FastAPI backend, React frontend, Postgres, Qdrant for retrieval, Celery with Flower, and Traefik in front — so it is something you deploy rather than pip-install. The README marks it as under heavy development, and the author points developers who would rather write code to Rojak, a separate Python library from the same GitHub account.

## What it does

- Drag-and-drop team canvas: grow a team by dragging new members off a node, and edit each member's role, backstory, model, temperature and skills in a form
- Two workflow types — hierarchical (a leader delegates to members and nested sub-teams) and sequential (members run in a fixed order)
- Skills: built-in duckduckgo-search, wikipedia and yahoo-finance, custom HTTP skills declared as a JSON skill definition in the UI, or LangChain tools added to the codebase
- Retrieval-augmented generation over uploaded documents, stored in Qdrant, with a configurable fastembed embedding model (BAAI/bge-small-en-v1.5 by default)
- Human-in-the-loop: a sequential member can be set to require approval before executing its skills, and a rejection can carry a message that redirects the agent
- Persistent chat threads, LangSmith observability, multi-tenancy, public API endpoints for external apps, and open-source models through Ollama or any OpenAI-compatible endpoint

## Getting started

The project's local-deployment guide runs Tribe with Docker and Docker Compose; you need both installed, plus an API key for your chosen model provider (or a local Ollama).

1. Clone the repository

```bash
git clone https://github.com/StreetLamb/tribe.git tribe
cd tribe
```

2. Create your .env

   Copy the example file, then change at least USERNAME, HASHED_PASSWORD, SECRET_KEY, FIRST_SUPERUSER_PASSWORD, POSTGRES_PASSWORD, FLOWER_BASIC_AUTH and your provider key (e.g. OPENAI_API_KEY).

```bash
cp .env.example .env
```

3. Generate secret values

   Run this once for every variable whose default is `changethis` and paste each result into .env.

```bash
python -c "import secrets; print(secrets.token_urlsafe(32))"
```

4. Create the Traefik basic-auth credentials

   Copy the printed hash into HASHED_PASSWORD in .env, and the username into USERNAME.

```bash
export USERNAME=admin
export PASSWORD=changethis
export HASHED_PASSWORD=$(openssl passwd -apr1 $PASSWORD)
echo $HASHED_PASSWORD
```

5. Build and start the stack

   The frontend comes up at http://localhost/, the API docs at http://localhost/docs/, and the Qdrant dashboard at http://qdrant.localhost/dashboard. If the backend is killed for lack of memory, lower MAX_WORKERS in .env.

```bash
docker compose -f docker-compose.yml -f docker-compose.local.yml up
```

6. Build and chat with your first team

   Log in with the superuser email and password from .env, open Teams → Add Team, pick hierarchical or sequential, drag out members from the leader node, fill in each member's role and skills, then send the team a question from the Chat tab.

## When to use it

- Prototype a multi-agent team — a planner, a researcher, a critic — without writing LangGraph code, and watch in the chat which member was delegated what
- Give a team private knowledge by uploading documents and choosing which ones each agent's knowledge base includes
- Keep a person in control of tool use: a sequential researcher pauses before each search until someone approves or redirects it
- Run agent teams entirely on your own hardware with Ollama models, then expose a finished team to another application through its public API
