Forge Recovery Guide
Step-by-step instructions to fix anything. Assumes zero technical knowledge. Follow the numbered steps exactly.
Jump to Section
Where to Start (Read This First) Step 1: Get Into the Server Step 2: Figure Out What is Wrong Fix: A Single Service is Down Fix: Bad Code Was Deployed Fix: Everything is Broken (Nuclear Option) Fix: Database (Supabase) Issues Fix: Dashboard is Down DEFCON System Important Links and FilesWhere to Start (Read This First)
What computer do you need?
Any computer with internet access. Windows, Mac, or Linux. You will be typing commands into a terminal (a window where you type text commands and press Enter to run them).
What is "the server" or "VPS"?
Forge runs on a rented computer in the cloud (a Virtual Private Server at Hetzner). Its address is 178.156.253.142. You connect to it over the internet using SSH (a secure remote connection tool that is already built into Windows and Mac).
Step 1: Get Into the Server
Option A: From a Windows Computer
b. A search box will appear. Type the word: PowerShell
c. You will see "Windows PowerShell" appear in the results. Click on it.
d. A dark blue window will open with white text. This is your terminal. You will type commands here.
b. Click the green box below to copy the command (or highlight it and press Ctrl+C):
d. Press Enter on your keyboard.
root@ubuntu-16gb-ash-1:~# you are connected to the server. Everything you type now runs on the Forge server, not your local computer.Option B: From a Mac
b. Type the word: Terminal
c. Press Enter. A window will open. This is your terminal.
root@ubuntu-16gb-ash-1:~# you are in.Option C: SSH Does Not Work / Forgot Password
b. Go to this address: https://console.hetzner.cloud
c. Log in with your Hetzner email and password.
d. You will see a list of servers. Click on: ubuntu-16gb-ash-1
e. At the top of the page, click the tab that says Console.
f. A terminal will appear right in your browser. Type root and press Enter to log in.
g. You are now connected. No SSH needed.
Option D: Server is Completely Frozen
b. Click your server: ubuntu-16gb-ash-1
c. Click the Power tab.
d. Click Reset. This is like pulling the power cord and plugging it back in.
e. Wait 60 seconds (count to 60 slowly).
f. Now try connecting again using Option A, B, or C above.
Once Connected: Start tmux
tmux keeps your work safe even if your internet disconnects. Run this command:
tmux attach -t recovery and press Enter.Step 2: Figure Out What is Wrong
Now you are connected to the server. Let us check what is happening.
Now go to the matching fix section below based on what you found.
Fix: A Single Service is Down
If only ONE service is broken, restart it. Here is how:
| Service | What It Does | Restart Command (copy and paste) |
|---|---|---|
| forge-commander | Telegram bot | sudo systemctl restart forge-commander |
| forge-dashboard-observe | Dashboard API | sudo systemctl restart forge-dashboard-observe |
| forge-privileged-exec | Root command runner | sudo systemctl restart forge-privileged-exec |
| forge-knowledge | Knowledge graph | sudo systemctl restart forge-knowledge |
| forge-comms | Email service | sudo systemctl restart forge-comms |
| forge-gatekeeper | Task quality scoring | sudo systemctl restart forge-gatekeeper |
For example, if the Telegram bot is down, copy and paste this:
Fix: Bad Code Was Deployed
If Ralph or Claude pushed broken code, roll it back to the previous version.
Fix: Everything is Broken (Nuclear Option)
Step 2: Open the Google Authenticator app on your phone. Find the entry labeled "Forge DEFCON". Type the 6-digit code you see and press Enter.
If you have not set up the authenticator yet: it will ask for your VPS root password instead. Type it and press Enter.
Step 3: Type DO IT (all caps, with a space) and press Enter.
No agent, script, or AI can bypass these steps. Only you.
Fix: Database (Supabase) Issues
Supabase is cloud-hosted and almost never the problem. But if data looks wrong:
b. Log in with your Supabase account.
c. Click on your project.
d. In the left sidebar, click Settings, then Database, then Backups.
e. You will see automatic daily backups. Pick one from before the problem started and click Restore.
Fix: Dashboard is Down
The dashboard is hosted on Vercel (a cloud service). It usually fixes itself.
If Vercel is having problems, just wait. There is nothing to fix on our side.
DEFCON System
DEFCON controls how much automation is allowed to run.
| Level | Color | What Happens |
|---|---|---|
| 5 | GREEN | Normal. Everything runs. |
| 4 | BLUE | Elevated. Commands need approval. |
| 3 | YELLOW | High threat. Extra approvals required. |
| 2 | ORANGE | ALL automation paused. LOCKED. |
| 1 | RED | Active breach. Everything stopped. LOCKED. |
Check current DEFCON level
Unlock from DEFCON 2 or 1 (two commands, run them in order)
Reset DEFCON to normal (level 5)
Unpause Ralph
Ralph (the build agent) might be paused separately:
Important Links and Files
Web Links (open in your browser)
| What | Address |
|---|---|
| Forge Dashboard | forge-dashboard-kbce.vercel.app |
| Hetzner (server control panel) | console.hetzner.cloud |
| Supabase (database) | supabase.com/dashboard |
| Vercel (dashboard hosting) | vercel.com/dashboard |
| Vercel Status (is Vercel down?) | vercel-status.com |
Server Connection
Important Files on the Server
| File | What It Is For |
|---|---|
| /opt/forge/.env.system | All API keys and secrets (DO NOT share with anyone) |
| /opt/forge/.env.llm | LLM API keys (DO NOT share) |
| /opt/forge/config/defcon.json | Current DEFCON level |
| /opt/forge/.claude/memory.md | Agent memory |
| /opt/forge/context/SESSION-QUEUE.md | Work queue between sessions |
All Recovery Commands (quick reference)
| What To Do | Command |
|---|---|
| Stop all automation | sudo bash /opt/forge/scripts/safe-mode.sh |
| Stop EVERYTHING | sudo bash /opt/forge/scripts/safe-mode.sh --full |
| Resume from safe mode | sudo bash /opt/forge/scripts/recovery/resume-all.sh |
| Health check | bash /opt/forge/scripts/recovery/health-check.sh |
| Rollback last deploy | sudo bash /opt/forge/scripts/recovery/rollback.sh |
| Nuclear restore | sudo bash /opt/forge/scripts/recovery/nuke-and-restore.sh |
| Check DEFCON | bash /opt/forge/scripts/sentinel/defcon.sh status |
For the authenticated version, use the Dashboard Recovery Page