You need: A Google account, a Telegram account, $5. That's it.
Time: 10 minutes from zero to talking with your AI.
No coding experience required. Every step is copy-paste.
GENESIS PHASE is an AI agent that:
- Lives in Google Colab (free cloud computer)
- Talks to you via Telegram (like a chat app)
- Thinks on its own between conversations
- Learns from its own mistakes
- Can write code, search the web, and modify itself
It's based on Ouroboros by razzant, with 8 upgrades that make it learn from experience.
You need 4 keys. Here's exactly how to get each one.
This lets your AI use models like Claude, Gemini, and GPT.
- Go to https://openrouter.ai
- Click Sign Up (use Google account — fastest)
- Once logged in, click Keys in the left sidebar
- Click Create Key
- Name it anything (e.g., "genesis")
- Copy the key — it starts with
sk-or-v1-... - Go to https://openrouter.ai/credits and add $5 minimum
⚠️ Without credit, the AI can't think. $5 lasts a long time.
This creates the chat bot you'll talk to.
- Open Telegram on your phone or desktop
- Search for @BotFather (it has a blue checkmark)
- Send it:
/start - Send it:
/newbot - It asks for a name — type anything (e.g., "Genesis Phase")
- It asks for a username — type something unique ending in
bot(e.g.,my_genesis_phase_bot) - BotFather replies with a token like
7123456789:AAF...— copy this entire token
This lets the AI save its own code changes.
- Go to https://github.com/settings/tokens
- Click Generate new token (classic)
- Name: "genesis-phase"
- Expiration: 90 days (or "No expiration")
- Check the repo box (full control of private repositories)
- Click Generate token
- Copy the token — it starts with
ghp_...
⚠️ GitHub only shows the token ONCE. Copy it now.
- Go to https://github.com/razzant/ouroboros
- Click Fork (top right)
- Keep all defaults, click Create Fork
- Note your username and the repo name (e.g.,
EXOAI-1/ouroboros)
- Go to https://colab.research.google.com
- Click New Notebook
- Look at the left sidebar — click the 🔑 key icon ("Secrets")
- Click Add a new secret for each of these:
| Name (type exactly) | Value (paste your key) |
|---|---|
OPENROUTER_API_KEY |
Your sk-or-v1-... key |
TELEGRAM_BOT_TOKEN |
Your 7123456789:AAF... token |
GITHUB_TOKEN |
Your ghp_... token |
TOTAL_BUDGET |
50 |
- Toggle each secret ON (the switch next to each one must be blue)
⚠️ If the toggles aren't ON, the AI can't read the secrets. This is the #1 setup mistake.
Click + Code to add a new cell. Paste this and edit the two lines with your info:
import os
# ════════════════════════════════════════
# EDIT THESE TWO LINES
# ════════════════════════════════════════
os.environ["GITHUB_USER"] = "EXOAI-1" # ← Your GitHub username
os.environ["GITHUB_REPO"] = "ouroboros" # ← Your fork name (or "ouroboros")Run this cell (click the ▶ play button or press Shift+Enter).
Click + Code again. Paste this:
from google.colab import drive
drive.mount("/content/drive")Run this cell. A popup asks for permission — click Allow. This stores the AI's memory and logs on your Drive.
Click + Code again. Paste this:
# Upload genesis-phase.zip to Colab first (drag into Files sidebar)
!unzip -o /content/genesis-phase.zip -d /content/ouroboros_repo 2>/dev/null
%cd /content/ouroboros_repo
!pip install -q openai requests
# Create ouroboros branch if needed (first run only)
import subprocess
_DIR = "/content/ouroboros_repo"
_rc = subprocess.run(
["git", "rev-parse", "--verify", "origin/ouroboros"],
cwd=_DIR, capture_output=True
).returncode
if _rc != 0:
subprocess.run(["git", "checkout", "-b", "ouroboros"], cwd=_DIR, check=False)
subprocess.run(["git", "push", "-u", "origin", "ouroboros"], cwd=_DIR, check=False)
print("✓ ouroboros branch created")
else:
print("✓ ouroboros branch exists")
%run colab_launcher.pyBefore running this cell:
- Drag your
genesis-phase.zipfile into the Files panel on the left sidebar of Colab - Wait for it to upload (you'll see it appear as
/content/genesis-phase.zip)
Run this cell. You'll see output scrolling — wait for:
🧠 Background consciousness auto-started (default: always on)
That means it's running. Don't close this tab.
- Open Telegram
- Search for your bot's username (the one you created with BotFather)
- Send any message — try:
Hello, who are you? - Wait 5-10 seconds — GENESIS PHASE responds
First message: You'll see "✅ Owner registered. GENESIS PHASE online." This registers you as the owner. Only you can talk to this bot.
| Message | What happens |
|---|---|
Hello, who are you? |
The AI introduces itself |
Write a Python function that checks if a number is prime |
It writes code |
What's happening in AI news today? |
It searches the web |
/status |
Shows budget, workers, system state |
/bg start |
Starts background thinking |
/bg stop |
Stops background thinking |
/evolve on |
Enables self-evolution (it modifies its own code!) |
/panic |
Emergency stop — kills everything |
Once you've chatted for a while, these things happen silently:
- After ~10 tasks: The AI starts learning from patterns — "I fail 80% of shell tasks due to timeouts"
- On long tasks: The AI sees its own spending: "Round 10/200, spent $0.12" — and wraps up faster on simple questions
- Between conversations: Background consciousness thinks every 5 minutes — reads news, checks GitHub, notices patterns
- Over days: Consciousness observes your preferences ("owner likes short answers") and writes them to a file the agent reads
Check MyDrive/Ouroboros/memory/ after a few hours to see:
task_stats.md— performance summaryconsciousness_thread.md— what it was thinking lastowner_preferences.md— how it thinks you like to communicate
→ You need to mount Google Drive FIRST. Run this in a cell before launching:
from google.colab import drive
drive.mount("/content/drive")Then re-run the launch cell.
→ The ouroboros branch doesn't exist yet. The updated launch cell creates it automatically. If using an old notebook, add this before %run colab_launcher.py:
import subprocess
subprocess.run(["git", "-C", "/content/ouroboros_repo", "checkout", "-b", "ouroboros"], check=False)
subprocess.run(["git", "-C", "/content/ouroboros_repo", "push", "-u", "origin", "ouroboros"], check=False)→ Go to the 🔑 sidebar in Colab. Make sure all 4 secrets are added AND toggled ON (blue switch).
→ Make sure you ran the config cell (Cell 1) before the launch cell.
→ This was a bug — TOTAL_BUDGET wasn't exported to worker processes. Fixed in this version. If you see it, restart the launch cell.
→ Test gate is now OFF by default. Pre-existing code quality issues in Ouroboros don't block the agent. To enable tests later: set OUROBOROS_PRE_PUSH_TESTS=1 in a cell before launching.
→ The agent may try to fix everything it finds. Tell it: "Just do the minimal fix. Don't refactor." Dynamic round limits kick in after ~10 tasks.
→ Check Colab — is the cell still running? Look for errors in red. → Check your OpenRouter balance — if it's $0, the AI can't think. → Make sure you messaged the RIGHT bot (the one YOU created).
→ The Python package is named ouroboros/ for import compatibility. All user-facing text says "GENESIS PHASE." This is intentional.
→ Re-run all cells. Your data is on Google Drive — nothing is lost. → Colab disconnects after ~90 minutes of inactivity. Colab Pro ($10/month) extends this.
To make GENESIS PHASE permanent in your GitHub fork:
- In Colab, open a new cell and run:
%cd /content/ouroboros_repo
!git add -A
!git commit -m "GENESIS PHASE v1.0.0: 8 upgrades + bug fixes"
!git push origin mainOr use the push_genesis_phase.py script included in the zip.
You (Telegram)
│
▼
Google Colab
├── colab_launcher.py ← Main loop: polls Telegram, dispatches tasks
│
├── ouroboros/agent.py ← Receives task, builds context, runs LLM
│ ├── ouroboros/loop.py ← LLM ↔ tool iteration (+cost checks, +dynamic caps)
│ ├── ouroboros/context.py ← Builds prompt (+failure warnings, +owner prefs)
│ ├── ouroboros/tools/ ← 16 tools (shell, git, browser, search, etc.)
│ └── ouroboros/memory.py ← Scratchpad, identity, chat history
│
├── ouroboros/consciousness.py ← Background thinking every 5 min
│ ├── task_stats.py ← Reads logs, computes performance stats
│ └── failure_memory.py ← Finds relevant past failures
│
├── prompts/SYSTEM.md ← "I Am GENESIS PHASE" — agent's identity
├── prompts/CONSCIOUSNESS.md ← Instructions for background thinking
└── BIBLE.md ← Constitution (9 principles of agency)
Google Drive (MyDrive/Ouroboros/)
├── state/ ← Budget, task queue, session state
├── logs/ ← events.jsonl, chat.jsonl, tools.jsonl
└── memory/ ← scratchpad.md, identity.md, knowledge/
task_stats.md, consciousness_thread.md,
owner_preferences.md
GENESIS PHASE is built on Ouroboros by razzant.
Ouroboros provides the core architecture: the agent, the LLM tool loop, the supervisor, the Telegram integration, the consciousness engine, the constitutional framework (BIBLE.md), and the self-evolution pipeline.
GENESIS PHASE adds 8 behavior-changing upgrades and bug fixes on top of this foundation. See UPGRADES.md for the complete technical details.
License: MIT (same as Ouroboros).