Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Nsuccess/Infra-genius

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ InfraGenius - AI DevOps Agent with Memory

OpenAgents PR Hackathon 2026 Submission

An AI infrastructure automation agent that remembers your deployments and learns over time.

OpenAgents MemU E2B

🎯 What is InfraGenius?

InfraGenius is an AI agent that automates infrastructure tasks through natural language. Unlike traditional DevOps tools, InfraGenius remembers your past deployments, configurations, and even errors β€” learning from experience to provide smarter assistance over time.

Key Innovation: Integration of MemU long-term memory with OpenAgents, enabling stateful DevOps automation.

✨ Features

Feature Description
🧠 Long-term Memory Remembers deployments, configs, and learnings across sessions
πŸ” Semantic Search Find past deployments by meaning, not just keywords
πŸ“¦ E2B Sandboxes Provision cloud sandboxes for safe deployment testing
πŸ’¬ Natural Language Deploy apps with simple commands like "deploy my-app"
πŸ”„ Learning Stores error fixes and applies them to future deployments

πŸƒ Quick Start

Prerequisites

Installation

# Clone the repository
git clone https://github.com/Nsuccess/Infra-genius.git
cd Infra-genius

# Install dependencies
pip install openagents==0.8.5 e2b-code-interpreter requests memu-py>=1.1.0

# Configure environment
cp .env.example .env
# Edit .env with your API keys

Configuration

Edit .env with your API keys:

# Groq for agent reasoning (fast LLM)
GROQ_API_KEY=your-groq-key
CUSTOM_API_KEY=your-groq-key

# E2B for cloud sandboxes (optional)
E2B_API_KEY=your-e2b-key

# Nebius for MemU memory (chat + embeddings)
NEBIUS_API_KEY=your-nebius-key
MEMU_BASE_URL=https://api.tokenfactory.nebius.com/v1/
MEMU_CHAT_MODEL=Qwen/Qwen3-30B-A3B-Instruct-2507
MEMU_EMBED_MODEL=BAAI/bge-multilingual-gemma2

Launch

Terminal 1 - Start Network:

openagents network start .

Terminal 2 - Start Agent:

# Windows PowerShell (load env vars first)
Get-Content .env | ForEach-Object { if ($_ -match '^([^#][^=]*)=(.*)$') { [Environment]::SetEnvironmentVariable($matches[1], $matches[2], 'Process') } }
openagents agent start ./agents/deployer.yaml

# Linux/Mac
export $(cat .env | xargs) && openagents agent start ./agents/deployer.yaml

Open Studio: http://localhost:8700/studio

πŸ’‘ Example Conversations

Basic Interaction

You: Hi!
InfraGenius: I can provision and list E2B cloud sandboxes, store/retrieve 
             info in memory. How can I help you?

Memory Operations

You: Remember that I prefer deploying Node.js apps to E2B
InfraGenius: βœ… Stored in memory: [DEPLOYMENT] I prefer deploying Node.js apps to E2B

You: What do you remember about my preferences?
InfraGenius: Found 1 memory: You prefer deploying Node.js apps to E2B

Sandbox Operations

You: Provision a sandbox called my-app
InfraGenius: βœ… Sandbox provisioned!
             πŸ“¦ Name: my-app
             πŸ†” ID: sbx-abc123
             πŸ”— URL: https://8000-sbx-abc123.e2b.app

You: List my sandboxes
InfraGenius: πŸ“¦ Active Sandboxes:
             β€’ my-app (ID: sbx-abc123)

πŸ“ Project Structure

infra-genius/
β”œβ”€β”€ agents/
β”‚   └── deployer.yaml       # Agent configuration
β”œβ”€β”€ tools/
β”‚   β”œβ”€β”€ infra.py            # E2B sandbox tools
β”‚   └── memory.py           # MemU memory tools
β”œβ”€β”€ network.yaml            # OpenAgents network config
β”œβ”€β”€ .env.example            # Environment template
└── README.md               # This file

πŸ”§ Agent Tools

Infrastructure Tools

Tool Description
provision_sandbox Create a new E2B cloud sandbox
list_sandboxes List all active sandboxes
run_command Execute shell commands in sandbox
deploy_app Full deployment pipeline

Memory Tools (MemU)

Tool Description
remember Store information in long-term memory
recall Search memory semantically
list_memories Show stored memories
remember_deployment Store structured deployment record
find_deployments Search past deployments

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                    OpenAgents Studio                     β”‚
β”‚                  http://localhost:8700                   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                          β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                  OpenAgents Network                      β”‚
β”‚              (HTTP:8700 / gRPC:8600)                    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                          β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                 InfraGenius Agent                        β”‚
β”‚            (llama-3.3-70b via Groq)                     β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚  β”‚ Infra Tools β”‚  β”‚ Memory Toolsβ”‚  β”‚ Messaging Tools β”‚  β”‚
β”‚  β”‚   (E2B)     β”‚  β”‚   (MemU)    β”‚  β”‚  (OpenAgents)   β”‚  β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
          β”‚                β”‚
          β–Ό                β–Ό
    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
    β”‚   E2B    β”‚    β”‚    MemU      β”‚
    β”‚ Sandbox  β”‚    β”‚   Memory     β”‚
    β”‚  Cloud   β”‚    β”‚  (Nebius)    β”‚
    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

🎬 Demo Video

[Link to 3-minute demo video - Coming Soon]

The demo shows:

  1. Network and agent startup
  2. Memory operations (remember/recall)
  3. Sandbox provisioning
  4. Natural language infrastructure commands

πŸ› οΈ Tech Stack

Component Technology
Agent Framework OpenAgents v0.8.5
Long-term Memory MemU
LLM (Agent) Groq (llama-3.3-70b-versatile)
LLM (Memory) Nebius (Qwen3-30B + BGE embeddings)
Sandboxes E2B

🀝 Related Hackathon Submissions

This project is part of a multi-hackathon effort:

Hackathon Submission Status
OpenAgents InfraGenius (this repo) βœ… Submitted
MemU 8 PRs (adapters, memory types) βœ… All passing CI

πŸ“„ License

MIT


Built for the OpenAgents PR Hackathon 2026 πŸš€

An AI DevOps agent that remembers your infrastructure and manages it over time.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors