TannX OS GitHub

Download · v2.89

Three images. Pick your way in.

The current release (v2.87 was the first public one), built by the repository's release workflow and attached to the GitHub release. Open source, GPL-3.0-or-later. A lab OS: read the notes before booting a real PC.

Files

FileBoots onHow
tannx-v2.89-usb-hybrid.imgBIOS and UEFI PCs, QEMUwrite raw to a USB stick (dd, balenaEtcher, Rufus in DD mode)
tannx-v2.89-bios.imgBIOS PCs, QEMUqemu-system-i386 -drive format=raw,file=tannx-v2.89-bios.img -vga std -m 512
tannx-v2.89-uefi.imgUEFI only, QEMU + OVMFqemu-system-x86_64 -bios OVMF.fd -drive format=raw,file=tannx-v2.89-uefi.img
SHA256SUMS–check the download: sha256sum -c SHA256SUMS

Boot it

Six ways to the tannx> prompt.

In your browser, nothing installed

An x86 emulator compiled to WebAssembly boots the real tannx-v2.89-bios.img on this site. Shell, agents, the forest and the desktop work; wishes to a real model do not, because the emulator has no network the OS can use. About 4 MB download, a few seconds to the prompt.

Boot TannX in the browser

QEMU, BIOS image

curl -LO https://github.com/tannenbaum-media/tannx/releases/download/v2.89/tannx-v2.89-bios.img
qemu-system-i386 -drive format=raw,file=tannx-v2.89-bios.img -vga std -m 512 \
  -netdev user,id=n0 -device rtl8139,netdev=n0

Then type run tour for the guided tour, help for everything else, forest to watch the agents. To talk to a model, run ./llm-proxy.py from the repository on the host (--mock gives canned answers) and type llm hello.

QEMU with OVMF, UEFI image

qemu-system-x86_64 -bios OVMF.fd -drive format=raw,file=tannx-v2.89-uefi.img

The UEFI loader is a hand-laid PE32+; the kernel renders the console into the GOP framebuffer with its own font. On Debian/Ubuntu OVMF.fd comes from the ovmf package.

A USB stick for a real PC – BIOS and UEFI from one image

lsblk                                   # find the stick – the next line overwrites it
sudo dd if=tannx-v2.89-usb-hybrid.img of=/dev/sdX bs=4M status=progress conv=fsync

Or balenaEtcher, or Rufus in DD mode. Old firmware runs the boot sector; UEFI firmware ignores the code, finds the type-EF partition and runs \EFI\BOOT\BOOTX64.EFI. Both land in the same kernel. Secure Boot must be off. Read before you boot a real PC.

PXE: the no-stick loop

A PXE-capable NIC downloads pxe.img over TFTP at boot, so the OS needs no NIC driver to get in. make pxe builds the image; on the lab LAN the simplest server is dnsmasq in proxy-DHCP mode (your router keeps handing out addresses):

sudo dnsmasq --conf-file=/dev/null --port=0 \
  --interface=enp3s0 --bind-interfaces \
  --dhcp-range=192.0.2.0,proxy --dhcp-boot=pxe.img \
  --pxe-service=x86PC,"TannX OS network boot",pxe.img \
  --enable-tftp --tftp-root=/srv/tftp-agentos

Addresses are RFC 5737 placeholders. Serve this only on an isolated or lab LAN. A diskless PXE box has no TannX medium, so diskon arms RAM-backed slots: the loop works, nothing persists across reboots.

Build it yourself – and grow it

git clone https://github.com/tannenbaum-media/tannx
cd tannx && sudo apt install build-essential binutils python3 \
  qemu-system-x86 mtools dosfstools ovmf
make            # build the image (the kernel needs only binutils)
make run32      # boot it; saves and wishes persist across rebuilds
make test-all   # the full headless gate: 49 QEMU suites
make wish-loop  # boot, then type: wish <what you want>

make wish-loop needs Claude Code installed and logged in; every wish lands on its own wish/<slug> branch, nothing is merged or pushed. make hybrid, make usb-hybrid DEV=/dev/sdX, make run-uefi, make run-pxe are the other targets you will want.

Under the hood

Three loaders, one kernel at 0x7E00.

BIOS Stage 1 loads 256 sectors in two reads. The UEFI stub is a PE32+ written in assembler that descends from long mode to protected mode. The PXE stub is 512 bytes. All three land the same 32-bit kernel at the same physical address. More on the architecture page.

The three boot paths BIOS, UEFI and PXE loaders on the left, three lanes converging on one box on the right labelled the 32-bit kernel at 0x7E00; lights travel along the lanes. BIOSStage 1 · INT 13h UEFIBOOTX64.EFI · PE32+ PXEpxe_stage1 · TFTP 32-bit kernelagentos32.S @ 0x7E00

Before you boot a real PC

Five things to know.

  1. It is a lab OS. Trusted LAN, trusted ring 3: no TLS, no authentication anywhere in the OS, and ring-3 programs may drive PCI devices by design. Run it in QEMU or on a network you own; read SECURITY.md first.
  2. Your disk is guarded by a marker. Writes are armed by diskon only when LBA 256 of the first disk says AGENTOS-MEDIUM. On any other disk the slots are RAM-backed and the disk is never touched. ahcibless and awrite are explicit and destructive – only on a disk you are willing to lose.
  3. Secure Boot off. The UEFI loader is not signed. Some firmware insists on a GPT ESP; the hybrid image carries an MBR-hosted one that OVMF and both test machines accept.
  4. Input needs PS/2 or EHCI USB. xHCI-only machines boot but have no keyboard yet. A serial cable on COM1 (115200 8N1) always works – the console is mirrored there and accepts input.
  5. smpon is opt-in. A faulting application processor boot-loops a real machine, so the kernel never wakes the other cores on its own.