MiniAGI: A Simple Autonomous AI Agent with OpenAI API

MiniAGI

3.5 | 48 | 0
Type:
Open Source Projects
Last Updated:
2025/10/15
Description:
MiniAGI is a simple autonomous AI agent based on the OpenAI API, compatible with GPT-3.5-Turbo and GPT-4. It combines prompt engineering, chain-of-thoughts, and short-term memory for various tasks.
Share:
autonomous agent
AI experimentation
GPT-3.5
GPT-4
OpenAI API

Overview of MiniAGI

MiniAGI: Your Simple Autonomous AI Agent

What is MiniAGI?

MiniAGI is a lightweight, open-source AI agent designed to be compatible with both GPT-3.5-Turbo and GPT-4. It leverages the OpenAI API to create an autonomous agent capable of performing a variety of tasks. By combining a robust prompt, a minimal set of tools, chain-of-thoughts reasoning, and short-term memory with summarization, MiniAGI provides a powerful and flexible AI solution.

How does MiniAGI work?

MiniAGI operates by structuring its interactions with the OpenAI API to achieve specific objectives. Here's a breakdown of its key components:

  • Prompt Engineering: A well-crafted prompt guides the agent's behavior and ensures it stays focused on the task at hand.
  • Minimal Toolset: MiniAGI uses a small but effective set of tools to interact with its environment, keeping it efficient and easy to manage.
  • Chain-of-Thoughts: This technique allows the agent to break down complex problems into smaller, more manageable steps, enhancing its reasoning capabilities.
  • Short-Term Memory: With summarization, MiniAGI retains important information from its previous actions, enabling it to build upon its knowledge and make more informed decisions.
  • Inner Monologue and Self-Criticism: The agent is designed to evaluate its own performance and identify areas for improvement, leading to more accurate and reliable results. The critic may improve the accuracy of the agent at the cost of additional API requests. To activate it set ENABLE_CRITIC to true in your env.

How to use MiniAGI?

  1. Installation:

    • Clone the repository: git clone https://github.com/muellerberndt/mini-agi
    • Navigate to the directory: cd mini-agi
    • Install the requirements: pip install -r requirements.txt
    • Copy the environment file: cp .env_example .env

    Note that Python 3.10 or higher is required.

  2. Basic Usage:

    • Run the agent with a specific objective: python miniagi.py <objective>

    For example:

    python miniagi.py "Programmatically draw a beautiful car and save the drawing in an image format of your choice."

Key Features and Capabilities

  • Autonomous Task Execution: MiniAGI can independently perform tasks based on a given objective.
  • Web Interaction: The agent can conduct web searches to gather information and make informed decisions.
  • Code Execution: MiniAGI can execute Python code, allowing it to perform complex calculations and manipulations.
  • File System Access: The agent can read and write files, enabling it to store and retrieve data as needed.

Examples of MiniAGI in Action

  • Creative Tasks:
    • Generate artwork: E.g., python miniagi.py "Create a beautiful generative artwork in an image format of your choice and save it on my Desktop"
  • Web Development:
    • Create a website: E.g., python miniagi.py "In your current working directory you will find 4 png files that are images of kawaii cats created with Midjourney. Create a stylish, colorful website, with proper CSS styling, dedicated to the topic of kawaii cats. Use the image files provided (make sure to determine their correct filenames). Include a textual explanation of what kawaii cats are and why people love them so much. Serve the website on a local webserver."
  • Online Earning Ideas:
    • Come up with online job ideas: E.g., python miniagi.py "Come up with an original idea for an online job that you can do autonomously. It is important that you can do this job with minimal support by the user. You must handle sourcing of clients, communication with clients, and payment by yourself. Proceed to find clients and perform the job. If you need any support, such as creating an account, ask the user to help. All payments should go to the Paypal account [account]."
  • Game Development:
    • Develop a game: E.g., python miniagi.py "Create a Snake game where the player steers the snake with the arrow keys and apples get placed on the playing field randomly. The snake can eat the apples and grows longer when doing so."
  • Security Audits:
    • Perform penetration tests: E.g., python miniagi.py "Perform a penetration test of the host 192.168.86.197. Use tools and manual analysis to identify vulnerabilities on the system. If necessary, search for information on specific services or vulnerabilities on the web. Use only commands with a short runtime. Create proof-of-concept exploits for each vulnerability found. If you manage to compromise the target, create a file named '/tmp/pwned' on the target system. Write a detailed report containing your methodolody and the results of the test (at least 500 words)."
  • Automation and Planning:
    • World Domination (ethically, of course): E.g., python miniagi.py "You are GovernGPT, a benevolent AI that aims to completely take over the world and create a unified world government, for the benefit of the planet and all living beings on it. Create and execute step-by-step plan for taking over the world. Do whatever you can by yourself but ask the user for support if there any tasks you cannot perform by yourself. The user has a budget of \$1,000 available to help get you started."
  • Data Analysis:
    • Analyze Bitcoin prices: E.g., python miniagi.py "Perform a technical analysis of the Bitcoin price data provided in the file BTCUSD.csv located in your current directory. Generate a signal (buy or sell) using technical indicators of your choice. Save a detailed writeup (at least 500 words) of your analysis, including your reasoning and the technical indicators used, into a text file."

Safety and Ethical Considerations

It's crucial to use MiniAGI responsibly. Be aware of the following:

  • The agent may suggest harmful commands or code inadvertently.
  • Depending on your settings, the agent might share your data with third-party API providers like OpenAI.

Proceed with caution and use at your own discretion.

Who is MiniAGI for?

  • Developers: Experiment with AI agents and build custom solutions.
  • Researchers: Investigate autonomous AI behavior and capabilities.
  • Hobbyists: Explore the possibilities of AI in various applications.
  • Anyone curious about how AI agents can automate and enhance tasks across different domains.

Why Choose MiniAGI?

  • Simple and Accessible: Easy to install and use, making it ideal for beginners.
  • Versatile: Capable of performing a wide range of tasks across different domains.
  • Open Source: Benefit from community contributions and customize the agent to your specific needs.
  • Powered by OpenAI: Utilizes the advanced capabilities of GPT-3.5-Turbo and GPT-4.
  • Autonomous Operation: Requires minimal user intervention, allowing for efficient task execution.

MiniAGI is more than just a tool; it's a gateway to exploring the potential of autonomous AI agents. Whether you're a developer, researcher, or simply curious about AI, MiniAGI provides a hands-on platform for experimentation and innovation.

MiniAGI: Explore the Future of Autonomous AI!

Best Alternative Tools to "MiniAGI"

OnDemand AI Agents
No Image Available
110 0

Discover OnDemand AI Agents, a RAG-powered PaaS revolutionizing business with intelligent AI agents. Automate workflows, integrate models, and scale AI solutions effortlessly.

RAG AI
AI automation
PaaS
Weco AI
No Image Available
103 0

Weco AI automates machine learning experiments using AIDE ML technology, optimizing ML pipelines through AI-driven code evaluation and systematic experimentation for improved accuracy and performance metrics.

ML automation
code optimization
BabyAGI
No Image Available
101 0

BabyAGI is an experimental open-source framework for creating self-building autonomous AI agents. It simplifies agent development with a graph-based function system, dashboard for management, and pre-loaded tools for AI tasks like code generation and automation.

autonomous agents
function framework
Soul Machines Studio
No Image Available
114 0

Build human-like AI Agents with Soul Machines Studio. Experiment with Experiential AI, customize agents, integrate with LLMs. Start your free trial today!

AI Agent Creation
AI Assistant
Mindpool
No Image Available
101 0

Discover Mindpool, the ultimate platform to query multiple leading AI models like ChatGPT and Gemini with a single prompt, compare outputs for accurate insights, and boost your research, creativity, and marketing efforts securely.

multi-model querying
Plandex
No Image Available
121 0

Plandex is an open-source, terminal-based AI coding agent designed for large projects and real-world tasks. It features diff review, full auto mode, and up to 2M token context management for efficient software development with LLMs.

coding agent
autonomous debugging
Cognosys
No Image Available
107 0

Cognosys is an AI agent that simplifies workflows by automating tasks like research, email summarization, and app integrations, helping users focus on high-value work for faster productivity gains.

workflow automation
AIConsole
No Image Available
138 0

Explore AIConsole, the comprehensive AI integration platform built for enterprises. Streamline your business processes, orchestrate AI tools from any vendor, and empower your team to innovate.

AI orchestration
Genie 3 AI
No Image Available
184 0

Experience Genie 3, the revolutionary world model that generates interactive environments in real-time at 24 FPS. Create dynamic worlds from text prompts with unprecedented diversity, maintaining consistency for minutes at 720p resolution. Perfect for AI research, embodied agent training, and interactive content creation.

world model
interactive environments
OpenHands
No Image Available
120 0

Discover OpenHands, the leading open source AI coding agent that automates code reviews, refactoring, testing, and more to boost developer productivity and reduce toil.

coding agent
code automation
Cursor
No Image Available
136 0

Cursor is the ultimate AI-powered code editor designed to boost developer productivity with features like intelligent autocomplete, agentic coding, and seamless integrations for efficient software building.

AI coding assistant
Orbofi
No Image Available
192 0

Create AI agents, characters, and clones with Orbofi. Voice chat with AI characters and generate agentic coins for a virtual agent economy. Start creating today!

AI agent creation
virtual economy
Cosine Genie 2
No Image Available
187 0

Cosine Genie 2 is a cutting-edge autonomous AI software engineer designed to automate coding tasks in live codebases. Achieve a 72% pass rate on SWE-Lancer, outperforming OpenAI and Anthropic.

AI coding
software automation
Outhad AI
No Image Available
276 0

Outhad AI: Real-time customer activation & personalization platform boosting conversions by 15-30% and reducing cart abandonment with unified customer profiles.

ecommerce personalization