cd /news/ai-agents/someone-build-a-os-for-claude-code Β· home β€Ί topics β€Ί ai-agents β€Ί article
[ARTICLE Β· art-35832] src=github.com β†— pub= topic=ai-agents verified=true sentiment=↑ positive

Someone Build a OS for Claude Code

A developer created ClaudiOS, a Linux distribution based on Ubuntu 24.04 LTS that boots directly into Claude Code, replacing the traditional desktop interface with an AI agent. The OS provides full system access through Claude, allowing users to install packages, write code, manage files, and browse the internet via a TTY interface. ClaudiOS can be flashed to a USB stick for portable use and includes features like USB persistence, passwordless sudo, and an escape hatch to bash.

read4 min views1 publishedJun 21, 2026
Someone Build a OS for Claude Code
Image: source

What if your entire OS was just Claude Code?

A Linux distro that boots straight into Claude Code. No desktop. No window manager. Just a TTY and an AI agent with full system access. Built on Ubuntu 24.04 LTS.

If Claude Code can install packages, write and run code, manage files, browse the internet, and operate your entire machine β€” what do you need a desktop for?

ClaudiOS takes this idea to its logical conclusion: the operating system gets out of the way and Claude becomes the interface. You boot, you log in, and you're talking to Claude. That's it.

Flash it to a USB stick, boot any x86_64 machine, and you have a portable AI workstation.

sudo apt install live-build curl gnupg grub-pc-bin xorriso
sudo ./build.sh
sudo ./flash.sh /dev/sdX

Replace /dev/sdX

with your USB device (lsblk

to find it). The script writes the ISO and creates the persistence partition automatically β€” the USB is ready to use from the first boot.

Manual flash (without persistence) #

sudo umount /dev/sdX*
sudo dd if=live-image-amd64.hybrid.iso of=/dev/sdX bs=4M status=progress

If you flash manually, the persistence partition will be created automatically on first boot instead.

Log in with claudios

/ claudios

and you're in Claude Code.

BIOS/UEFI β†’ GRUB β†’ Linux β†’ TTY login
  └─ user: claudios / password: claudios
       └─ claudios-shell (login shell)
            β”œβ”€ [if claude missing] auto-install via npm
            └─ Claude Code in loop
                 └─ Ctrl+C (3s) β†’ escape to bash

claudios-shell

is the user's actual login shell β€” set in /etc/passwd

, not a .bashrc

hack. It launches Claude Code in a loop. If Claude exits, you're prompted to restart or drop to bash.

Zero-config bootβ€” log in and you're in Claude Code, ready to work** USB persistence**β€” first boot auto-creates a persistence partition; your auth, config, and session history survive reboots** Escape hatch**β€” hold Ctrl+C for 3 seconds at startup to drop to a standard bash shell** Auto-install**β€” ifclaude

isn't found in PATH, it's installed automatically via npmBuilt-in slash commandsβ€”/reboot

reboots the system,/shut-down

exits back to the shellPasswordless sudoβ€” for system operations Claude needs (reboot, package install)~1 GB ISOβ€” boots in under a minute on most hardware

No need to flash a USB to try it:

sudo apt install qemu-system-x86
./test.sh

Already flashed a USB? You can boot it in QEMU too:

sudo qemu-system-x86_64 \
  -drive file=/dev/sdX,format=raw \
  -m 4G \
  -enable-kvm \
  -cpu host \
  -device virtio-vga \
  -display gtk

Replace /dev/sdX

with your USB device (lsblk

to find it). The ISO boots in BIOS/Legacy mode.

Tip:To log in to your Claude account from your PC terminal (so you can copy and paste the auth URL easily), boot with-nographic

instead:

sudo qemu-system-x86_64 \
  -drive file=/dev/sda,format=raw \
  -m 4G \
  -enable-kvm \
  -cpu host \
  -nographic \
  -serial mon:stdio
  • Linux system with live-build

curl

,gnupg

,grub-pc-bin

,xorriso

  • Internet connection
  • ~10 GB free disk space

auto/config

β€” passes flags tolb config

(Ubuntu Noble, amd64, GRUB boot)config/package-lists/claudios.list.chroot

β€” packages installed in the imageconfig/hooks/live/*.hook.chroot

β€” chroot scripts (locale, Node.js, Claude Code, user creation)config/includes.chroot/

β€” files copied verbatim into the filesystem

sudo ./clean.sh

To also remove the package cache (forces a full re-download on next build):

sudo ./clean.sh && sudo rm -rf cache/
claudios/
β”œβ”€β”€ build.sh                    # Main build script (requires sudo)
β”œβ”€β”€ flash.sh                    # Flashes ISO to USB with persistence
β”œβ”€β”€ clean.sh                    # Removes build artifacts
β”œβ”€β”€ test.sh                     # Launches the ISO in QEMU
β”œβ”€β”€ auto/
β”‚   β”œβ”€β”€ config                  # live-build configuration
β”‚   β”œβ”€β”€ build                   # Wrapper for lb build
β”‚   └── clean                   # Wrapper for lb clean
└── config/
    β”œβ”€β”€ archives/               # Additional apt repositories (NodeSource)
    β”œβ”€β”€ package-lists/          # Packages to install in the ISO
    β”œβ”€β”€ hooks/live/             # Scripts that run inside the build chroot
    β”‚   β”œβ”€β”€ 0050-locale-timezone.hook.chroot
    β”‚   β”œβ”€β”€ 0100-install-nodejs.hook.chroot
    β”‚   β”œβ”€β”€ 0200-install-claude-code.hook.chroot
    β”‚   β”œβ”€β”€ 0300-create-user.hook.chroot
    β”‚   └── 0350-enable-persist.hook.chroot
    └── includes.chroot/        # Files copied directly into the filesystem
        β”œβ”€β”€ etc/motd
        β”œβ”€β”€ etc/shells
        β”œβ”€β”€ etc/sudoers.d/claudios
        β”œβ”€β”€ etc/systemd/system/
        β”‚   └── claudios-persist.service
        β”œβ”€β”€ home/claudios/.claude/commands/
        β”‚   β”œβ”€β”€ reboot.md            # /reboot slash command
        β”‚   └── shut-down.md        # /shut-down slash command
        └── usr/local/bin/
            β”œβ”€β”€ claudios-shell      # Primary login shell
            └── claudios-persist    # Auto-persistence setup script

If claudios-shell

fails and you lose access:

From GRUB: edit the kernel line and appendinit=/bin/bash

From TTY: theclaudios

user has sudo β€” usechsh

to change the shell

Field Value
Username claudios
Password claudios
API key managed by Claude Code
── more in #ai-agents 4 stories Β· sorted by recency
── more on @claude code 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain β€” perfect for shipping the agent you just read about.

$git push zahid main
β†’ Live at https://your-agent.zahid.host βœ“
Get free account β†’ Pricing
from €0/mo Β· no card required
LIVE [news/someone-build-a-os-f…] indexed:0 read:4min 2026-06-21 Β· β€”