Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
the simplest self-building general autonomous agent
| Date | Stars |
|---|---|
| 2026-07-31 | 341 |
| 2026-08-06 | 342 |
Today
+1 stars today
This week
— stars this week
This month
— stars this month
Momentum
0.0
growth rate 0.00%/day
# babyagi-2o **BabyAGI 2o** - *the simplest self-building autonomous agent.* BabyAGI 2o is an exploration into creating the simplest self-building autonomous agent. Unlike its sibling project [BabyAGI 2](https://github.com/yoheinakajima/babyagi), which focuses on storing and executing functions from a database, BabyAGI 2o aims to iteratively build itself by creating and registering tools as required to complete tasks provided by the user. As these functions are not stored, the goal is to integrate this with the BabyAGI 2 framework for persistence of tools created. > [!CAUTION] > Because this installs dependencies and executes code based on an LLMs output, please execute in a safe environment and be mindful of the types of requests you make. I personally use Replit to test this, and you can fork the Replit version [here](https://replit.com/@YoheiNakajima/babyagi-2o?v=1). ## Features - **Simple Autonomous Agent**: Capable of building and updating tools to solve user-defined tasks. - **Dynamic Tool Creation**: The agent creates and updates its tools, enabling it to solve increasingly complex tasks without human intervention. - **Package Management**: Automatically installs required packages for tools. - **Error Handling and Iteration**: Handles errors gracefully, learns from them, and continues iterating towards task completion. - **Function Storage**: Functions are registered dynamically, allowing them to be reused in future tasks. - **Model Flexibility**: Compatible with multiple models via `litellm`, as long as they support tool calling. ## Getting Started ### Prerequisites - Python 3.7 or higher - `pip` package manager ### Installation 1. **Clone the Repository** ~~~bash git clone https://github.com/yoheinakajima/babyagi2o.git cd babyagi2o ~~~ 2. **Create a Virtual Environment (Optional but Recommended)** ~~~bash python3 -m venv venv source venv/bin/activate # On Windows, use venv\Scripts\activate ~~~ 3. **Install Dependencies** ~~~bash pip install litellm ~~~ ### Setting Environment Variables BabyAGI 2o uses the `litellm` package to interface with language models. Depending on the model you choose (e.g., OpenAI's GPT-4, Anthropic's Claude), you'll need to set the appropriate API keys in your environment variables. You'll also need to specify the model by setting the `LITELLM_MODEL` environment variable. Ensure that the model you choose supports tool/function calling. #### Supported Models - OpenAI models (e.g., `gpt-4`, `gpt-3.5-turbo`) - Anthropic models (e.g., `claude-2`) - Any other models supported by `litellm` that support tool calling #### Option 1: Temporary Setup in Terminal For **macOS/Linux**: ~~~bash export LITELLM_MODEL=gpt-4 # or another supported model export OPENAI_API_KEY=your-openai-api-key # If using an OpenAI model export ANTHROPIC_API_KEY=your-anthropic-api-key # If using an Anthropic model ~~~ For **Windows (Command Prompt)**: ~~~cmd set LITELLM_MODEL=gpt-4 # or another supported model set OPENAI_API_KEY=your-openai-api-key # If using an OpenAI model set ANTHROPIC_API_KEY=your-anthropic-api-key # If using an Anthropic model ~~~ For **Windows (PowerShell)**: ~~~powershell $env:LITELLM_MODEL="gpt-4" # or another supported model $env:OPENAI_API_KEY="your-openai-api-key" # If using an OpenAI model $env:ANTHROPIC_API_KEY="your-anthropic-api-key" # If using an Anthropic model ~~~ Run the application: ~~~bash python main.py ~~~ #### Option 2: Persistent Setup using a `.env` File (Recommended) 1. **Install `python-dotenv`** to load environment variables from a `.env` file: ~~~bash pip install python-dotenv ~~~ 2. **Create a `.env` file** in the root of the project directory and add your API keys and model configuration: ~~~bash LITELLM_MODEL=gpt-4 # or another supported model OPENAI_API_KEY=your-openai-api-key # If using an OpenAI model ANTHROPIC_API_KEY=your-anthropic-api-key # If using an Anthropic model ~~~
Excerpt of 5,922 characters
Read on GitHubWould you bet a product on this? Bounded 0–100 and slow moving.
matched fp:296496483f6a744c, llm:description: 'the simplest self-building general autonomous agent' (repo: yoheinakajima/babyagi-2o)
matched fp:296496483f6a744c, llm:description: 'the simplest self-building general autonomous agent' (repo: yoheinakajima/babyagi-2o)