Your own private
AI agent host.
Run one or many AI agents on a single machine — a coding assistant, a web researcher, a personal agent, each with its own identity, secrets, and tools.
A personal AI server you own and control — every agent isolated, all declared in one file.
New to NixOS? Here's the deal. — 20-second primer[ CLICK ]
NixOS is a Linux distribution where your entire operating system — every package, service, user, and firewall rule — is defined as code in a Git repository. Change a config, run one command, and the whole system updates atomically. No manual installs, no config drift, no "works on my machine."
Tentaflake is a pre-built template for NixOS that adds AI agent support. Clone the repo, define your agents in a few lines, and nixos-rebuild switch deploys everything — containers, secrets, networking, the works. And you don't need to know Nix to start — pick a path below.
tentaflake top TUI ·Go audit daemon · installer + live ISO · MIT
[ CHOOSE YOUR PATH ] · three ways to start, zero wrong answers
Try it live
Boot a USB, agents run in RAM, nothing touches disk. Pull the drive and every trace is gone. Zero commitment.
Install permanently
Boot from USB, an interactive wizard installs NixOS + agents to disk. Your machine, your agents, forever.
Already on NixOS?
Add tentaflake as a flake input to your existing config. ★ Recommended for existing users.
Path 1: Try it now — Live USB (boot from USB, nothing touches disk)
Boot any x86_64 machine from a USB stick. Agents run entirely in RAM — pull the USB and every trace is gone. Requires no install, no existing Nix setup.
You need a way to build the ISO. Three options (any Linux/Mac/Windows):
curl --proto '=https' --tlsv1.2 -sSf https://nix.dev/install-nix | shdocker run --rm -v "$PWD:/build" -w /build nixos/nix sh -c "nix build .#live-agent-iso"Then: git clone → nix build .#live-agent-iso → sudo dd if=result/iso/... of=/dev/sdX → boot → enter API key → docker exec -it hermes-default hermes chat
Path 2: Install permanently — Installer ISO (wizard installs NixOS + agents to disk)
Build a bootable USB that installs NixOS + Tentaflake to disk via an interactive TUI wizard. Requires a separate build machine (any Linux/Mac/Windows — install Nix or use Docker, same options as Path 1).
$ git clone && cd tentaflake
$ nix build .#installer-iso
$ sudo dd if=result/iso/tentaflake.iso of=/dev/sdX bs=4M
Boot from USB → TUI wizard walks you through hostname, disk selection, user setup → installs (~15 min) → reboot → you have a permanent NixOS machine with AI agents ready to go.
Path 3: Already on NixOS? ★ add tentaflake to your existing config
Add tentaflake as a flake input to your existing NixOS config. Create a my-agents.nix file listing your agents, then rebuild.
Then: sudo nixos-rebuild switch --flake .#tentaflake — agents appear as Docker containers.
[ BY THE NUMBERS ] · primitives compiled into one flake
Everything in one flake.
Ten primitives that ship declared together — agents, secrets, containers, networking, TTS, audit, operator shell, security, and a bootable installer.
One brain. Unlimited tentacles.
Each agent is an AI process — an LLM-powered assistant with its own tools, memory, and identity. tentaflake gives every agent its own state directory, Docker container, and API keys. Real OS-level isolation, not just a different folder in the same compose file. Or run teams of agents in one container via agent profiles — multiple personas sharing skills and resources while keeping separate configs and sessions. Choose per agent, not per machine.
tentaflake versus the alternatives
Eight dimensions, four approaches to running agents on one box.
Composable NixOS modules
Each module configures one slice of the host. modules/default.nix aggregates them all — import it and override what you need.
boot.nix
systemd-boot configuration, EFI variables.
locale.nix
Timezone, locale settings, console keymap, and a modern physical console — kmscon renders TTY1 with real TTF fonts and full Unicode instead of the 512-glyph legacy VT.
networking.nix
Hostname, nftables firewall, NetworkManager, opt-in egress allowlist — host rules cover the agent fleet too. Strict perimeter by default.
hardening.nix
Sysctl + kernel-param hardening, explicit LSM order, AppArmor, journald limits. Security baked in, not bolt-on.
ssh.nix
Opt-in hardened OpenSSH — key-only auth, no root login, max 3 auth tries — plus fail2ban. Off by default; Tailscale SSH stays the primary access path.
tailscale.nix
Tailscale with SSH and tag:auto. Optional, off until you enable it.
nix-settings.nix
Flakes, automatic GC, trusted-users, substituters — plus daemon hardening: allowed-users, strict sandbox, disk headroom.
users.nix
Admin user in wheel + networkmanager groups.
packages.nix
curl + git — minimal server essentials.
piper-tts-server.nix
Local Piper TTS, OpenAI-compatible API on port 5001 — sandboxed systemd unit with a configurable memory cap.
tentaflake-auditd.nix
Filesystem audit daemon — fsnotify watcher, debounced writes logged to SQLite. Paired with tentaflake top (live TUI) and the Agent Console (read-only web file explorer + live monitor).
shell.nix
Interactive operator shell — tentaflake CLI, tentaflake-status banner, Starship prompt, zsh/oh-my-zsh, tmux, zoxide, lazygit, modern CLI tools. See docs/06-shell.md.
editor.nix
Optional Neovim via nvf — LSP, treesitter, telescope, gitsigns, blink-cmp. Languages: nix, bash, lua, markdown, yaml. Enable via tentaflake.editor.nvf.enable.
hive-research.nix
Host-side hive-research MCP server — unified web research (search, extract, crawl) with provider failover. Agents reach it on loopback; bring the server as a flake input.
options.nix
Declares the whole tentaflake.* option surface with defaults from lib/constants.nix — plus renamed-option shims so old names keep evaluating with a warning.
default.nix
Imports every module above — the single entry point behind nixosModules.default.
Recipes for every use case
Guides, references, and examples to build with tentaflake.
Where we are — and where we're going
Development is issue-driven, not a fixed schedule — releases land when the work is ready and often mix themes. v0.2.0 made the host agent-agnostic (tentaflake CLI + ZeroClaw); v0.3.1 shipped on 2026-07-19 with the security & ops hardening batch and a third runtime, OpenCode. Since then every merge to main auto-tags a patch release — v0.3.4 is current, with the fleet stats dashboard and screenshot-safe --hide. Here's what's shipped and what's ahead.
Questions, answered
Fork it. Boot the ISO.
Declare your fleet.
A community template — keep it generic, add your agents, encrypt your secrets with agenix. MIT licensed.
