/ Rescue

Linux rescue USB · NixOS live ISO · AI agents

A Linux rescue stick
with an agent inside.

Agentic Rescue is a free Linux rescue USB with opencode, Claude Code and Codex built in. Boot it on the machine that will not start: the agent mounts the installed system read-only, reads the logs with you and asks before it changes anything.

x86_64 · UEFI + BIOS · MIT

Three agents, one console

opencode, Claude Code and Codex are installed and briefed: where they are, how installed systems look from the outside, and the rules.

One key for all three

2342.ai speaks the OpenAI, Responses and Anthropic formats. Groq, Google AI Studio and OpenRouter work too, with free tiers.

Configured before first boot

Key, Wi-Fi, SSH key and keyboard layout go into a 16 KiB slot in the image, right here in your browser. Keys and passwords are never uploaded.

Every filesystem

ZFS, Btrfs, ext4, XFS, NTFS, LUKS, LVM, mdadm. rescue-mount finds the installed system and mounts it read-only first.

Your phone as second screen

Enter a key or finish a Claude or Codex sign-in by scanning a QR code. Follow the console in your phone's browser.

Careful by default

Read-only first. Destructive commands only after an explicit yes. A backup of every file before it is edited.

What you see after boot

Real screenshots of v0.1.0 in a VM. No desktop, no installer: a console that is ready to work.

tty1 · Agentic Rescue
Console after boot: RESCUE logo, status of network, AI and disk, and the menu
Boot, and the menu is there. Network, AI provider and disk at a glance.
rescue-connect
QR code to enter an API key on the phone
No key in the image? Scan the QR code and type it on your phone.
opencode
opencode started from the menu, using 2342.ai
One keypress to an agent. No sign-in, no trust prompts.

Get your rescue stick

Three steps. Your key stays in this browser tab and in the file you save.

1

Choose an AI provider

Wi-Fi, SSH, keyboard (optional)
2

Download the image

Or get it straight from GitHub Releases.

3

Write your settings into the image

When the download has finished, drop the ISO here. The page finds the configuration slot and saves a copy with your key inside. Takes seconds, nothing is uploaded.

Prefer the command line?

Then write the ISO to a USB stick with dd, balenaEtcher, Rufus or Ventoy, and boot it. Whoever holds the stick holds the key: create a key just for the stick and give it a budget.

What happens at boot

  1. Console, not desktop. kmscon with a real font and truecolor, tmux underneath, a menu on top. A second boot entry without modesetting for difficult GPUs.
  2. Your settings apply. Keys become environment variables and agent configuration, Wi-Fi connects, your SSH key is authorized.
  3. Find the patient. rescue-mount unlocks LUKS, assembles LVM and RAID, imports ZFS pools and mounts the installed system read-only at /mnt.
  4. Talk it through. opencode, claude or codex. The agent reads logs, explains, proposes. Repairs run in a chroot, after your yes.

No key in the image? Press C-Space k at the console and type it on your phone via QR code. Claude and Codex subscribers sign in the same way.

Providers

ProvideropencodeClaude CodeCodexFree tier
2342.ai recommended●●●–
Groq●●
Google AI Studio●●
OpenRouter●●
OpenCode Zen●●
Anthropic●●–
OpenAI●●–

Claude Code and Codex also accept their own subscription sign-in at the console.

Guide Linux not booting? How to find the cause and fix it The checks a rescue agent runs, step by step: disk health, journal, package log, initramfs and bootloader, per distribution.

Questions

What is Agentic Rescue?

A free, bootable Linux rescue system for a USB stick. It is a NixOS live ISO with the AI coding agents opencode, Claude Code and Codex installed, next to the usual rescue tools: ddrescue, testdisk, smartctl, cryptsetup, ZFS, Btrfs, LVM and mdadm.

How is it different from SystemRescue (SystemRescueCd)?

SystemRescue is the classic Arch-based rescue toolkit with GParted and an optional graphical desktop. Agentic Rescue is NixOS-based, console-only, and adds three AI agents that read the logs of the broken system, explain what they find and propose repairs. If you want a graphical partition editor, use SystemRescue. If you want help finding the cause, use Agentic Rescue.

Is it free? Do I need an AI subscription?

The ISO is free and MIT licensed. The agents need a model: bring an API key (Groq, Google AI Studio and OpenRouter have free tiers), use one 2342.ai key for all three agents, or sign in with an existing Claude or ChatGPT subscription at the console.

Which systems can it repair?

Linux installs of any distribution: NixOS, Arch and its derivatives, Debian, Ubuntu and Fedora, encrypted with LUKS or not, on ext4, Btrfs, XFS or ZFS. For Windows it can mount NTFS, copy files off the disk and reset local passwords with chntpw, but it does not run Windows repair tools.

Does it work without internet?

The published image needs a network connection for the agents. Ethernet works automatically, Wi-Fi is set up with impala or written into the image on this page. An offline variant with a local language model can be built from source with nix build .#iso-offline.

Does it boot with Secure Boot enabled?

Not yet. The image is not signed for Secure Boot. Switch Secure Boot off in the firmware settings to boot the stick, and switch it back on when you are done.

Is my API key safe?

The key never leaves your browser: the page writes it into your own copy of the image. On the stick it is stored in plain text, so whoever holds the stick holds the key. Create a key just for the stick and give it a budget.

How do I put the ISO on a USB stick?

With any tool that writes disk images: dd on Linux and macOS, balenaEtcher, Rufus in DD image mode, or Ventoy. The stick needs at least 4 GB.

Build it yourself

One Nix flake. Build the image, patch the slot, or bake your configuration in at build time.

nix build github:2342-ai/agentic-rescue#iso
nix run github:2342-ai/agentic-rescue#patch -- result/iso/*.iso \
  --provider groq --key gsk_… --wifi "Home" "secret" -o my-rescue.iso