LibreAI / AI Agents / babyagi
// agents · yoheinakajima/babyagi

babyagi

Yohei Nakajima's autonomous task agent - now a self-building agent framework in Python

★ 22.4k stars⑂ 2.8k forksMITupdated 2026-01
▦ visual — this project's README ships no embeddable screenshot,
so here's a placeholder. The guide below is complete regardless.
// project facts

Project facts

babyagi is an open-source ai agents project by yoheinakajima (yoheinakajima/babyagi on GitHub). It has 22,361 GitHub stars and 2,846 forks, is released under the MIT license, and was last updated on GitHub on 31 January 2026.

GitHub stars
22,361
Forks
2,846
License
MIT
Last updated on GitHub
31 January 2026
Category
AI Agents
Listing
Full install guide
Official site
Official site
// how it works

How it works

  1. Set your goal

    Decide what you want the agent to accomplish and which functions it will need.

  2. Get BabyAGI

    Install the babyagi package from PyPI, or clone the repository to explore the source.

  3. Install and configure

    pip install babyagi, then register functions and store any key dependencies (such as API keys) the functions need.

  4. Run your first agent

    Execute a registered function, watch the execution log, and try the self-building agent flow.

// features

Why people love it

Function-based agents

Build agents by registering Python functions that the agent can call to complete objectives.

Function packs

Organize related functions into packs - including code-writing and self-build packs - and load them into an agent.

Key dependency management

Store secrets and dependencies from code or through the dashboard so functions can use them at runtime.

Self-building agent

Ships a self_build flow where the agent processes user input and writes new functions for itself.

Execution log environment

Runs functions in an environment with a log you can inspect from code or the dashboard.

Dashboard

Includes a dashboard for managing functions and key dependencies.

Advertisement
// run it

Run it yourself

  1. Clone the repository

    Get the source code from GitHub and enter the project directory.

    git clone https://github.com/yoheinakajima/babyagi.git
    cd babyagi
  2. Install the package

    BabyAGI is published on PyPI, so a virtual environment plus pip is all you need.

    pip install babyagi
  3. Register and run a function

    The README's Basic Usage shows registering functions - including ones with dependencies - and executing them.

    import babyagi
    # register your functions, then execute one - see README Basic Usage
// use cases

What you can build

Advertisement
// faq

Questions, answered

Who maintains this project?

It was created by Yohei Nakajima and is maintained as an open-source project on GitHub.

Is it free to use?

Yes - BabyAGI is released under the MIT License, so it is free to use and modify.

Does it need a paid API key?

The framework itself is free, but functions that call an LLM need your own provider API key (for example OpenAI), and usage is billed by that provider.

How does it compare to alternatives?

Compared with larger frameworks like LangChain or AutoGPT-style platforms, BabyAGI is deliberately small and function-centric - easier to read end to end, with a self-building twist, but fewer built-in integrations.

How do I get started?

Run pip install babyagi, follow the README's Quick Start to register a function, and execute it - then explore the dashboard and the self-building agent example.

// keep exploring

Similar tools

AI Agents

arcade-mcp

A Python framework for building MCP servers and agent tools.

★ 1.0k starsMIT
View guide →
AI Agents

langroid

Langroid: a principled Python framework for building LLM multi-agent applications (from CMU/UW researchers)

★ 4.1k starsMIT
View guide →
AI Agents

agent-framework

A framework for building, orchestrating and deploying AI agents and multi-agent workflows with support for Python and .NET.

★ 13.9k starsMIT
View guide →
AI Agents

nanobot

Ultra-lightweight, open-source, self-hosted personal AI agent framework in Python with WebUI, tools, memory, MCP, multi-agent workflows, automation, and chat…

★ 48.8k starsMIT
View guide →
AI Agents

babyagi_archive

A frozen snapshot of the original BabyAGI autonomous-agent experiment.

★ 110 starsMIT
View guide →
Agents

jido

Autonomous agent framework for Elixir: distributed, event-driven, dynamic.

★ 1.9k starsApache-2.0
View guide →
// alternatives

Alternatives in AI Agents

The most-starred other AI Agents projects in the LibreAI catalogue — the realistic shortlist if babyagi is not the right fit.

Get babyagi

Free and open — grab the source, star the repo, and start creating.