Skip to content
@apowerb

ApowerB

apowerb is an open-source agentic framework for building, running and operating AI agents.

apowerb

The open-source agentic framework to build, orchestrate, and operate production AI agents.

Documentation PyPI version Python License Discord

Documentation • Quickstart • API Reference • Deployment • thaink2


⚡ Overview

apowerb (by thaink2) is an open-source agentic platform and developer framework designed to build, run, and scale AI agents. It bridges the gap between raw LLMs and enterprise execution by combining declarative database-backed agent state, Google ADK execution, and LiteLLM multi-model interoperability.

The framework ships as a Python package providing:

  • 🚀 A high-performance FastAPI server serving REST endpoints and SSE streams.
  • 💻 A Typer-powered CLI for running, testing, and managing local workflows.
  • 🖥️ A companion web UI (apowerb-ui) built with Next.js for visual prompt authoring, monitoring, and debugging.

🧩 Architectural Foundations

 ┌────────────────────────────────────────────────────────┐
 │                      Clients / UI                      │
 │    Next.js UI (apowerb-ui)  •  Typer CLI  •  REST/SSE  │
 └──────────────────────────┬─────────────────────────────┘
                            │
 ┌──────────────────────────▼─────────────────────────────┐
 │                FastAPI Orchestrator Layer               │
 │  • Agent Module Materialization   • Webhooks (Pub/Sub) │
 │  • Cron / Event Scheduler         • SSE Output Stream  │
 └──────────────────────────┬─────────────────────────────┘
                            │
 ┌──────────────────────────▼─────────────────────────────┐
 │               Execution Engine (Google ADK)            │
 │  • Base      • Parallel       • Sequential     • Loop  │
 │  • Hierarchical Sub-Agents    • Human-in-the-loop      │
 └─────────────┬───────────────────────────┬──────────────┘
               │                           │
 ┌─────────────▼─────────────┐   ┌─────────▼──────────────┐
 │   LiteLLM Model Router    │   │  Tool Integrations (24+)│
 │ OpenAI, Anthropic, Gemini │   │ M365, Google, SQL, RAG │
 └───────────────────────────┘   └────────────────────────┘

🚀 Key Capabilities

1. Advanced Agent Orchestration

Choose from four built-in execution patterns depending on task complexity:

  • base: Single-turn and direct conversational agents with tool execution.
  • sequential: Step-by-step pipelines passing context down deterministic stages.
  • parallel: Concurrent branch execution aggregating results for low-latency synthesis.
  • loop: Evaluator-optimizer cycles that iterate until target conditions or stop tokens are met.
  • Hierarchical sub-agents: Delegate specialized tasks to domain-specific worker agents.

2. Universal Model Layer (LiteLLM)

Connect to any major model provider (OpenAI, Anthropic, Google Gemini, Mistral, Groq, local Ollama/vLLM) with unified configuration, fallback logic, and zero changes to underlying agent tools.

3. RAG as a Service

Incorporate retrieval without external plumbing:

  • Automatically parse, chunk, and embed documents, URLs, Amazon S3 objects, and SQL query records.
  • Isolated, per-agent knowledge bases searchable via semantic vector indices.

4. Text-to-SQL & Database Introspection

Connect Postgres, MySQL, or Snowflake instances. apowerb introspects table schemas, generates parameterized queries, and runs validated executions against analytical backends.

5. Automation & Event Triggers

  • Webhooks: Inbound push notifications via Google Cloud Pub/Sub (Gmail) and Microsoft Graph (Outlook) to trigger autonomous email processing agents.
  • Scheduling: Native cron-style schedules for recurring background audits, report generation, and polling tasks.
  • Real-time SSE: Stream token-by-token completions, RAG ingestion progress, and agent state transitions in real time.

6. Tool & Skill Ecosystem (24+ Modules)

First-class support for enterprise SaaS and developer utilities:

  • Workplaces: Google Workspace (Docs, Sheets, Drive, Gmail) and Microsoft 365 (Outlook, Teams, OneDrive).
  • Data & Storage: AWS S3, Cloud Object Storage, PostgreSQL, Vector Stores.
  • Web & Code: GitHub API, SerpAPI, Tavily, headless browsing, and data visualization generators.

🏢 Organization Repositories

Repository Description Status
apowerb Core framework, FastAPI backend, Typer CLI, and ADK execution runtime. Active
apowerb-ui Next.js frontend companion application for visual agent orchestration. Active
docs Official developer guides, API specs, and tutorials (Mintlify). Active
agent-hub Community & official agent templates, custom skills, and tool definitions. Active

⚡ Quickstart

Option A: Complete Stack via Docker Compose

Run PostgreSQL, the apowerb backend engine, and apowerb-ui with a single command:

git clone https://github.com/apowerb/apowerb.git
cd apowerb
cp .env.example .env
docker compose up -d

Visit the dashboard at http://localhost:3000 or inspect the API OpenAPI documentation at http://localhost:8000/docs.


Option B: Local Python Installation

Prerequisites:

  • Python 3.12 or 3.13
  • PostgreSQL instance running locally or remotely
  • uv (recommended) or pip
# Install with uv
uv add apowerb

# Or with pip
pip install apowerb

Configure your environment:

export DATABASE_URL="postgresql+asyncpg://postgres:password@localhost:5432/apowerb"
export OPENAI_API_KEY="your-api-key"

Initialize the database schema and start the service:

# Run migrations
apowerb db upgrade

# Start the server
apowerb server --host 0.0.0.0 --port 8000 --reload

💻 CLI Usage

# List all active configured agents
apowerb agents list

# Execute an agent directly from terminal
apowerb run --name "support-agent" --prompt "Summarize pending tickets from yesterday"

# Start webhook receiver daemon
apowerb worker --queues default,webhooks

🤝 Contributing

We welcome pull requests, tool contributions, and bug reports from the developer community!

  1. Fork the repo and create your branch from main.
  2. Follow our Development Guide.
  3. Ensure linting and tests pass:
    uv run ruff check .
    uv run pytest
  4. Check out the Release Process to see how PRs are verified and released.

💬 Community & Support


Released under the Apache 2.0 License • Maintained by thaink2 and the open-source community.

Pinned Loading

  1. apowerb apowerb Public

    The open-source agentic framework to build, orchestrate, and operate production AI agents.

    Python 36 11

  2. th2etl th2etl Public

    ETL and automation library for the apowerb stack — pipelines modelled as stages of blocs.

    Python 3 1

  3. th2pulse th2pulse Public

    OpenTelemetry collection and observability library for the apowerb stack.

    Python 3 2

  4. th2rag th2rag Public

    Python 3 1

  5. apowerb-ui apowerb-ui Public

    The official web interface for apowerb — build an agent, give it tools and knowledge, run it, and watch what it did.

    JavaScript 2

  6. apowerb-hosting apowerb-hosting Public

    Deployment assets for apowerb — Docker Compose, Kubernetes manifests and a Helm chart.

    Python 2

Repositories

Showing 10 of 10 repositories
  • apowerb-ui Public

    The official web interface for apowerb — build an agent, give it tools and knowledge, run it, and watch what it did.

    apowerb/apowerb-ui's past year of commit activity
    JavaScript 2 Apache-2.0 0 1 3 Updated Sep 25, 2026
  • apowerb Public

    The open-source agentic framework to build, orchestrate, and operate production AI agents.

    apowerb/apowerb's past year of commit activity
    Python 36 Apache-2.0 11 13 6 Updated Sep 25, 2026
  • th2forecast Public

    Time service forecasting service uni variate and multivariate

    apowerb/th2forecast's past year of commit activity
    R 2 Apache-2.0 2 0 4 Updated Sep 25, 2026
  • apowerb-hosting Public

    Deployment assets for apowerb — Docker Compose, Kubernetes manifests and a Helm chart.

    apowerb/apowerb-hosting's past year of commit activity
    Python 2 Apache-2.0 0 1 1 Updated Sep 25, 2026
  • apowerb-docs Public

    Source of docs.apowerb.com — the technical documentation for the apowerb open-core stack.

    apowerb/apowerb-docs's past year of commit activity
    MDX 2 Apache-2.0 0 0 0 Updated Sep 25, 2026
  • th2etl Public

    ETL and automation library for the apowerb stack — pipelines modelled as stages of blocs.

    apowerb/th2etl's past year of commit activity
    Python 3 Apache-2.0 1 0 0 Updated Sep 17, 2026
  • th2pulse Public

    OpenTelemetry collection and observability library for the apowerb stack.

    apowerb/th2pulse's past year of commit activity
    Python 3 Apache-2.0 2 1 0 Updated Sep 17, 2026
  • th2rag Public
    apowerb/th2rag's past year of commit activity
    Python 3 Apache-2.0 1 0 0 Updated Sep 16, 2026
  • .github Public
    apowerb/.github's past year of commit activity
    1 Apache-2.0 0 0 0 Updated Sep 10, 2026
  • apowerb-exercice-technique Public

    Copie d'exercice pour entretien technique — ne pas utiliser en production

    apowerb/apowerb-exercice-technique's past year of commit activity
    Python 0 MIT 0 0 0 Updated Sep 9, 2026

People

This organization has no public members. You must be a member to see who’s a part of this organization.