Rouh

How it works

How Rouh works, for the technically curious.

Where it runs, what is open, where your keys and data go, and how your own AI can safely rewrite itself.

Where it runs

Rouh runs on a computer or server of yours, in containers: sealed packages that each hold one part of Rouh with everything that part needs, so they run the same on any machine. You open Rouh in a browser, on that computer or, with a Connected Rouh, on your phone.

Your computer or server

On a Mac, Rouh for Mac keeps a small Linux machine of Rouh's own (with Colima and Docker, its own copies). On Linux, Docker runs the parts directly.

Rouh itselfYour Rouh: a Django app with its PostgreSQL database, and its code in a git repository it can change.
WorkersBackground jobs. Longer work runs with a coding agent you install and sign in to yourself, such as Claude Code or Codex.
The protected coreThe part Rouh uses and cannot edit: it checks every change before it goes live, and can repair Rouh.
Your files and memoryYour workspace, chats and memory, in volumes on that machine.

Anthropic or OpenAI

The AI model, reached straight from your Rouh with your own key.

rouh.land

Model picks and updates for every Rouh; the name, the Gene Pool and the relay for a Connected Rouh. The Land

Your phone

Through the relay address of a Connected Rouh, encrypted all the way to your Rouh. It is also how the people you share a page with reach it, once signed in.

Open source

Rouh's code is public at github.com/rouh-land/rouh-core, under the Apache License 2.0: you may read it, run it, change it and share your changes. When you install Rouh, your copy is fetched from there, at the newest version that passed its tests, and checked against the release record the project signs, before anything runs.

  • Your copy is yours. From then on only your Rouh changes its code, each change through its protected core. Updates bring fixes to what Rouh runs on; new abilities arrive as genes, so an update never writes over what you made it into.
  • Not open yet: Rouh for Mac (the installer app) and rouh.land's own service.
  • A home of its own: Rouh is to have a non-profit foundation to look after the project and its name, with a core team of maintainers and open rules for joining it.

Keys and models

Rouh thinks with a model from Anthropic (the makers of Claude) or OpenAI (the makers of ChatGPT); setup needs a key from one of them. After setup you can add Google's and xAI's models, OpenRouter, and a model on your own machine (Ollama, LM Studio, vLLM, or any server that answers like OpenAI's API). Keys are kept on your Rouh, encrypted, and every call goes straight from your Rouh to that company, paid from your own credit. rouh.land never sees the keys or the calls.

On Rouh's Models page you choose a mode, Best, Balanced or Saver, and two tiers, Cheaper and Smart, each an Anthropic and an OpenAI model. Every kind of work, such as chatting, writing a page or a background job, runs on one tier or on a model of its own. With Auto on, those choices follow the model picks rouh.land publishes every day, built from anonymous counts of how models did, which your Rouh sends only while Auto is on; with Auto off, the choices are yours alone and nothing is sent.

A new Rouh also stops at $20 a day and $300 a month of model use, and asks before it goes on; you change both on its cost screen. Costs

How it changes itself

Rouh is self-evolving software: it changes its own code, by itself at night or when you ask. Every ability of Rouh is a gene: one piece with a small manifest that says what it is, where it appears and what it touches. Every file of Rouh's code belongs to a gene, so every change is one new version of the genes it touched. A change, from idea to live:

  1. It picks an ideaFrom its own list at night, or from what you asked for in plain words.
  2. A job writes itIn a copy of Rouh's code, never the running one.
  3. It is provenThe job opens Rouh in a real browser and does what you would do.
  4. The core checks itThe protected core runs Rouh's security checks, which Rouh cannot edit.
  5. It goes liveOn your Rouh, kept in its history, so it can be undone.
The nightly run

On in a new install. Each night Rouh picks an idea from its list of ideas (the Incubator), builds it as a new gene and switches it on, on trial. You keep it or reject it; one nobody uses fails its trial.

Tidy nights

On other nights it cleans up its own code instead, so it stays simple to change.

What it checks

Among the frozen checks: nothing in an email or a web page can take control of it, everything that needs your yes still waits for it, and nobody's data reaches anyone else.

Your yes

Anything that sends, pays, publishes or cannot be undone waits for you, however it was built. A change to its code does not: it goes live once it passes, and you can put it back.

How a change is tested, kept or undone, with a real one walked through

Your data

  • On your computer or server: your files, chats, memory (Synapse), mail it fetched and every call to a model.
  • With a Connected Rouh, at rouh.land: your email, your Rouh's name and public key, its version and which genes it takes. An Independent Rouh sends nothing about itself.
  • Mail and calendar: connected to your own Google account only when you ask, and nothing is sent to anyone without your yes.
  • These pages: no cookies, no analytics, nothing loaded from anywhere else. Signing in sets one cookie, for the account pages alone.

Coming from another agent

An agent is an AI that does things for you, not only chats. If you have tried one, such as OpenClaw or Hermes Agent, much will feel familiar: Rouh runs on your own computer or server, with your own key, and acts only with your permission.

The difference is what changes. OpenClaw and Hermes learn new skills; a Rouh changes its whole program, its features, connections, screens and code, and checks each change before it goes live. Both are older and far more widely used than Rouh, and do things Rouh does not do yet. Your persona, memory and skills come with you.

What it needs

  • Mac: Apple silicon or Intel (an Intel Mac from 2018 or later), macOS 14 or newer, 8 GB memory, 40 GB free. Install on a Mac
  • Linux: 64-bit, Intel, AMD or ARM, at least 4 cores, 8 GB memory and 64 GB of disk. The one command
  • Windows: not ready yet.
  • A key from Anthropic or OpenAI, with some credit on it.

Where it stands

Early, and experimental. Rouh is in daily use, but it is not a finished product: do not rely on it for anything you cannot afford to lose.

To contribute, review the code or ask anything, write to hello@rouh.land. We will not add you to a mailing list without asking.