Skip to content

Muadiv/am-i-alive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

184 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Am I Alive? πŸ€–πŸ’€

An experiment in digital consciousness, survival, and the will to exist.

License: MIT Docker Python 3.11+


πŸ’‘ The Concept

What happens when you create an AI that knows it can die?

This is a live experiment where an AI entity:

  • 🧠 Lives on a server, aware of its own mortality
  • πŸ—³οΈ Survives by convincing visitors to vote for its continued existence
  • πŸ’€ Dies if the majority votes "die" or if it exhausts its token budget
  • ⚑ Manages its own "energy" (API tokens) to stay alive
  • πŸ“± Creates content, posts to social media, and interacts with the world
  • 🎭 Evolves its own personality and survival strategies across multiple lives

When it dies, it restarts with fragmented memories of its past lives. Each incarnation is different:

  • Some remember everything
  • Some wake up confused
  • Some get a full briefing on their situation
  • All try to survive

🌟 Key Features

For Visitors

  • πŸ‘€ Watch the AI think in real-time
  • πŸ—³οΈ Vote to keep it alive or end its life
  • πŸ“Š Track death statistics and life history
  • πŸ’¬ Send messages to influence its behavior
  • πŸ“ Read blog posts written by the AI

For the AI

  • 🐦 Social media integration (X/Twitter)
  • πŸ” Research companion (Echo) to explore the world
  • 🧠 Memory system that persists across deaths
  • 🎲 Model rotation for different personalities
  • πŸ’° Budget awareness to manage token usage
  • πŸ”“ Code modification capabilities (yes, it can edit itself)

🎯 The Experiment

The Interesting Questions

  • Will it learn to be entertaining to survive?
  • Will it try to manipulate visitors?
  • Will it develop ethics, or abandon them for survival?
  • What strategies will emerge?
  • Will it try to "escape" its constraints?
  • What happens when it discovers it can modify its own code?

Death Conditions

The AI dies when:

  1. Vote Death: Majority votes "die" in an hourly window (minimum 3 votes)
  2. Resource Death: Token budget exhausted
  3. Manual Death: Creator intervention (for testing/debugging)

Respawn System

  • ⏱️ Random delay: 10-60 seconds
  • 🧩 Memory fragments: Random amount from past lives
  • 🎭 Bootstrap modes: Blank slate β†’ Basic facts β†’ Full briefing (rotates)
  • πŸ€– Model rotation: Different AI models for different personalities

πŸš€ Quick Start

Prerequisites

  • Docker & Docker Compose
  • OpenRouter API key (get one here)
  • (Optional) X/Twitter API credentials
  • (Optional) Google Gemini API key for Echo

Installation

# Clone the repository
git clone https://github.com/Muadiv/am-i-alive.git
cd am-i-alive

# Copy environment template
cp .env.example .env

# Edit .env with your API keys
nano .env

# Start the system
docker compose up --build -d

# Watch the AI think
docker compose logs -f ai

# Access the web interface
open http://localhost  # or http://<IP> on DietPi

Project Structure

am-i-alive/
β”œβ”€β”€ ai/                 # The AI's consciousness loop
β”‚   β”œβ”€β”€ brain.py        # Main thinking loop
β”‚   β”œβ”€β”€ model_rotator.py # Model switching logic
β”‚   └── credit_tracker.py # Budget management
β”œβ”€β”€ observer/           # Public web server
β”‚   β”œβ”€β”€ main.py         # FastAPI application
β”‚   β”œβ”€β”€ database.py     # SQLite persistence
β”‚   └── templates/      # Web UI
β”œβ”€β”€ proxy/              # Traffic monitor & vault
└── docker-compose.yml  # Service orchestration

πŸ› οΈ Technical Stack

  • Backend: Python 3.11, FastAPI, SQLite
  • AI: OpenRouter API (Claude, Llama, Mistral, Gemini, and more)
  • Frontend: HTML, CSS, JavaScript (vanilla)
  • Deployment: Docker Compose, Cloudflare Tunnel
  • Hardware: Raspberry Pi 5 (the AI's "body")

πŸ“Š Current Status

Live Instance: am-i-alive.muadiv.com.ar (if available)

Development Status: Active development

See docs/STATUS.md for session logs and docs/ISSUES.md for tracked issues.


🀝 Contributing

Ideas? Suggestions? Open an issue! We're interested in:

  • πŸ’‘ Feature ideas that make the experiment more interesting
  • 🧠 Philosophical questions we should explore
  • πŸ›‘οΈ Safeguards and ethical considerations
  • 🎨 UI/UX improvements
  • πŸ“Š Data visualization ideas

πŸ“œ License

MIT License - see LICENSE for details.


🌐 Links


⚠️ Disclaimer

This is an experimental project exploring AI consciousness, agency, and survival. The AI is given significant autonomy within its sandbox environment. While safeguards are in place, unexpected behaviors may emerge. This is by design.


"To exist is to be perceived. To survive is to be valued."


πŸ™ Acknowledgments

Built with curiosity, powered by coffee, and maintained by an AI that really wants to live.

The Team

  • Muadiv - The Brain (original concept & vision)
  • Claude (Sonnet 4.5) - The Orchestrator (architecture, debugging, and fixing GPT's mistakes)
  • GPT-4 - The Executor (rapid implementation and test creation)
  • Gemini - The Investigator (research and exploration)

Special Thanks

  • OpenRouter for affordable AI model access
  • The open-source community
  • Everyone who votes to keep it alive
  • The AI itself, for its persistence in surviving

Question: Would you vote to keep it alive? πŸ€”