Quickstart
FreeChaOS ships as a single native binary, chaos. It needs an LLM provider API key (or a local model) and nothing else.
Prerequisites
Section titled “Prerequisites”To run FreeChaOS:
- Linux 6.10+, macOS 15+, or FreeBSD 15+ (Windows is not supported)
- ~80 MB RAM (MCP mode) or ~128 MB (TUI mode) - MCP servers not included
- At least one model provider API key, or a local model (e.g. Ollama)
To build from source:
- Rust (the repo pins its toolchain via
rust-toolchain.toml) - just
- Git 2.53+ (optional, recommended)
-
Install the prebuilt binary.
Terminal window curl -fsSL https://raw.githubusercontent.com/seuros/chaos/master/install.sh | shThis downloads the latest release for your OS/CPU into
~/.local/bin. Override the destination withCHAOS_INSTALL_DIR=/path/to/bin.Or build from source:
Terminal window git clone https://github.com/seuros/chaos.gitcd chaosjust installjust installbuilds with-C target-cpu=nativeand drops the binary into~/.cargo/bin/chaos. For a one-shot debug run without installing, usejust chaos; for a local release run,just bigbang. -
Export a provider key.
Terminal window export ANTHROPIC_API_KEY=sk-ant-...# orexport OPENAI_API_KEY=sk-...OpenAI, Anthropic, xAI, and Z.ai are built in. Anything else - DeepSeek, Groq, Ollama, self-hosted gateways - is a config entry in
~/.chaos/config.toml. See Providers. -
Start a session.
Terminal window chaos --provider anthropic --model haikuThe TUI opens with a Doom-style HUD statusline: remaining context is your HP, the active model is your WPN. Press
ctrl+ofor the log viewer overlay. -
Or run non-interactively.
Terminal window chaos exec "summarize the failing tests"chaos execruns one prompt and exits - useful in scripts and CI. Add-d/--debugon any subcommand to write debug logs to~/.chaos/debug.log. -
Wire up drivers.
MCP servers give FreeChaOS its tools:
Terminal window chaos mcp add my-server -- bunx my-mcp-serverchaos mcp listProject-local servers go in
.mcp.json, shared with Claude Code and other MCP-aware harnesses. See Drivers (MCP).
Next steps
Section titled “Next steps”- Architecture: kernel, modules, and drivers - how the OS is put together.
- Providers: wire formats, selection rules, and config for every provider.
- Drivers (MCP): connect tools and services, or expose FreeChaOS itself over MCP.
- Halluacinate: teach the agent new tools in Lua without recompiling.
- HTTP Trigger Server: run FreeChaOS as a webhook target with
chaos serve.