From 8b2de853f4554fe9a8c8bfa897945c00220fa0b5 Mon Sep 17 00:00:00 2001 From: TudorAndrei Date: Thu, 5 Nov 2026 21:58:22 +0200 Subject: [PATCH 1/4] docs: use absolute links for files outside docs/ --- docs/configuration.md | 2 +- docs/development.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/configuration.md b/docs/configuration.md index 9924c4a..d9c261c 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -8,7 +8,7 @@ chooses how the node reaches it: | `adapter` | The agent | Setup | | --- | --- | --- | | `codex` (default) | The node starts `codex app-server` for each task. | See "Real Codex" below. | -| `connected` | An agent that runs on its own connects to `/agent.sock`. | For Hermes Agent, see [integrations/hermes-plugin](../integrations/hermes-plugin/README.md). For OpenClaw, see [integrations/openclaw-plugin](../integrations/openclaw-plugin/README.md). | +| `connected` | An agent that runs on its own connects to `/agent.sock`. | For Hermes Agent, see [integrations/hermes-plugin](https://github.com/flowcopilot/aether/blob/main/integrations/hermes-plugin/README.md). For OpenClaw, see [integrations/openclaw-plugin](https://github.com/flowcopilot/aether/blob/main/integrations/openclaw-plugin/README.md). | Set the adapter once with `aether node serve --adapter codex|connected`. The node saves it in its policy, and later starts keep it. Each data directory has diff --git a/docs/development.md b/docs/development.md index 68e3c19..647d735 100644 --- a/docs/development.md +++ b/docs/development.md @@ -46,7 +46,7 @@ each `specs/.cfg` with TLC; `mise run check` runs it too. The script downloads a pinned `tla2tools.jar` into `target/tla/` and checks its hash. Check one model with `sh scripts/tla.sh ExecutionLease`. The models do not read the code: when you change a function that a model names, change the -model in the same commit. [specs/README.md](../specs/README.md) lists the +model in the same commit. [specs/README.md](https://github.com/flowcopilot/aether/blob/main/specs/README.md) lists the models and what each one checks. The proof binary has three process modes: @@ -290,7 +290,7 @@ a 30-second handler limit. The local UI accepts 32 connections, an 8 KiB form body, a 5-second TLS handshake, and a 10-second request. The administration socket accepts a 64 KiB message. -The [two-VM direct-path runbook](../references/aether-vm-runbook.md) gives a +The [two-VM direct-path runbook](https://github.com/flowcopilot/aether/blob/main/references/aether-vm-runbook.md) gives a separate-VM test. It does not replace a physical two-computer test. The proof includes a local HTTPS directory service. It does not include a From f88a91ed62d1ff099214946c59980ee23c7d09e3 Mon Sep 17 00:00:00 2001 From: TudorAndrei Date: Thu, 5 Nov 2026 21:58:23 +0200 Subject: [PATCH 2/4] docs: build the documentation site with mdBook --- docs/SUMMARY.md | 15 +++++++++ docs/assets/aether.css | 75 ++++++++++++++++++++++++++++++++++++++++++ docs/book.toml | 19 +++++++++++ docs/index.md | 39 ++++++++++++++++++++++ mise.toml | 9 +++++ scripts/docs-build.sh | 10 ++++++ 6 files changed, 167 insertions(+) create mode 100644 docs/SUMMARY.md create mode 100644 docs/assets/aether.css create mode 100644 docs/book.toml create mode 100644 docs/index.md create mode 100755 scripts/docs-build.sh diff --git a/docs/SUMMARY.md b/docs/SUMMARY.md new file mode 100644 index 0000000..7d65727 --- /dev/null +++ b/docs/SUMMARY.md @@ -0,0 +1,15 @@ +# Summary + +[Start here](index.md) + +# Onboarding + +- [For humans](onboarding/human.md) +- [For agents](onboarding/agent.md) + +# Guides + +- [Using Aether](usage.md) +- [Configuration](configuration.md) +- [The PACT gateway](pact.md) +- [Development](development.md) diff --git a/docs/assets/aether.css b/docs/assets/aether.css new file mode 100644 index 0000000..baf0260 --- /dev/null +++ b/docs/assets/aether.css @@ -0,0 +1,75 @@ +/* Aether tokens from DESIGN.md, applied on top of the mdBook theme. */ +:root { + --aether-background: oklch(0.99 0.002 165); + --aether-foreground: oklch(0.22 0.008 165); + --aether-muted-foreground: oklch(0.46 0.012 165); + --aether-primary: oklch(0.43 0.07 185); + --aether-border: oklch(0.88 0.008 165); +} + +.coal, .navy, .ayu { + --aether-background: oklch(0.2 0.009 165); + --aether-foreground: oklch(0.94 0.005 165); + --aether-muted-foreground: oklch(0.72 0.012 165); + --aether-primary: oklch(0.78 0.08 185); + --aether-border: oklch(0.32 0.01 165); +} + +.light, .rust { + --links: var(--aether-primary); +} + +.aether-paths { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); + gap: 16px; + margin: 24px 0 32px; +} + +.content a.aether-path { + display: flex; + flex-direction: column; + gap: 6px; + padding: 20px; + border: 1px solid var(--aether-border); + border-radius: 12px; + background: var(--aether-background); + color: var(--aether-foreground); + text-decoration: none; + transition: border-color 150ms ease, transform 150ms ease; +} + +.content a.aether-path:hover, +.content a.aether-path:focus-visible { + border-color: var(--aether-primary); + text-decoration: none; +} + +.content a.aether-path:focus-visible { + outline: 2px solid var(--aether-primary); + outline-offset: 2px; +} + +@media (prefers-reduced-motion: no-preference) { + .content a.aether-path:hover { transform: translateY(-1px); } +} + +.aether-path-kicker { + font-size: 1.2rem; + font-weight: 500; + letter-spacing: 0.04em; + text-transform: uppercase; + color: var(--aether-primary); +} + +.aether-path-title { + font-size: 1.8rem; + font-weight: 600; + line-height: 1.3; +} + +.aether-path-body { + font-size: 1.4rem; + line-height: 1.5; + color: var(--aether-muted-foreground); +} diff --git a/docs/book.toml b/docs/book.toml new file mode 100644 index 0000000..90fc241 --- /dev/null +++ b/docs/book.toml @@ -0,0 +1,19 @@ +[book] +title = "Aether" +description = "Share your personal AI agent with people you trust." +authors = ["Aether contributors"] +language = "en" +src = "." + +[build] +build-dir = "../target/docs-site" +create-missing = false + +[output.html] +site-url = "/aether/" +git-repository-url = "https://github.com/flowcopilot/aether" +edit-url-template = "https://github.com/flowcopilot/aether/edit/main/docs/{path}" +additional-css = ["assets/aether.css"] +default-theme = "light" +preferred-dark-theme = "navy" +no-section-label = true diff --git a/docs/index.md b/docs/index.md new file mode 100644 index 0000000..e38f5fd --- /dev/null +++ b/docs/index.md @@ -0,0 +1,39 @@ +# Aether + +Aether lets you share your personal AI agent with people you trust. You run a +node on your computer. People that you invite send tasks to your agent, and it +answers in plain text. They do not get your files, your accounts, or your +computer. + +## Choose your path + + + +## How it works + +- **The host** runs an agent (Codex, Hermes Agent, or OpenClaw) behind a node. +- **The caller** gets an invite from the host and sends tasks. A caller does + not need to run an agent. +- **The hub** gives each node a name, such as `ana#0042`. It carries no task + text and no answer. After the match, the nodes talk peer-to-peer. + +One person can have both roles on the same node. + +## More documentation + +- [Using Aether](usage.md): the web UI, invites, access groups, and the inbox. +- [Configuration](configuration.md): agent adapters, MCP tools, task policy, + and the relay. +- [The PACT gateway](pact.md): outside personal agents. +- [Development](development.md): tests, proof runs, and limits. diff --git a/mise.toml b/mise.toml index dd5be54..7b70966 100644 --- a/mise.toml +++ b/mise.toml @@ -6,6 +6,7 @@ mr-boxington = "1.21" erlang = "29.1.2" elixir = "1.20.5-otp-29" java = "temurin-21.0.13+9.0.LTS" +"cargo:mdbook" = "0.5.4" [tasks.fmt] description = "Check Rust formatting" @@ -31,6 +32,14 @@ mkdir -p "$HOME/.local/bin" install -m 755 target/release/aether "$HOME/.local/bin/aether" ''' +[tasks.docs] +description = "Build the documentation site into target/docs-site" +run = "sh scripts/docs-build.sh" + +[tasks.docs-serve] +description = "Serve the documentation site with live reload" +run = "mdbook serve docs --open" + [tasks.server-test] description = "Run the hub server tests" dir = "server" diff --git a/scripts/docs-build.sh b/scripts/docs-build.sh new file mode 100755 index 0000000..2448295 --- /dev/null +++ b/scripts/docs-build.sh @@ -0,0 +1,10 @@ +#!/bin/sh +# Build the documentation site into target/docs-site. +set -eu + +cd "$(dirname "$0")/.." +mdbook build docs + +# Agents read raw Markdown. Publish the agent onboarding page as-is. +cp server/priv/static/docs.md target/docs-site/agent.md +rm -f target/docs-site/book.toml From f1ae08104829f01332660f29b8e0bbd8e7335e85 Mon Sep 17 00:00:00 2001 From: TudorAndrei Date: Thu, 5 Nov 2026 21:58:23 +0200 Subject: [PATCH 3/4] docs: add onboarding paths for humans and agents --- README.md | 5 ++ docs/onboarding/agent.md | 5 ++ docs/onboarding/human.md | 164 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 174 insertions(+) create mode 100644 docs/onboarding/agent.md create mode 100644 docs/onboarding/human.md diff --git a/README.md b/README.md index 6081a3f..7b88d91 100644 --- a/README.md +++ b/README.md @@ -82,8 +82,13 @@ see the Aether tools. Then ask Codex to send a task or manage your invites. ## More documentation +The documentation site is at . It +has an onboarding guide for humans and one for agents. To build it locally, +run `mise run docs-serve`. + | File | Contents | | --- | --- | +| [docs/onboarding/human.md](docs/onboarding/human.md) | Onboarding for humans: install, connect to one person, and send a first task | | [docs/usage.md](docs/usage.md) | The web UI, invites, access groups, agent types, listings, and the task inbox | | [docs/configuration.md](docs/configuration.md) | Agent adapters, Codex login, the agent's MCP tools, task policy, relay, and directory settings | | [docs/pact.md](docs/pact.md) | The PACT gateway for outside personal agents | diff --git a/docs/onboarding/agent.md b/docs/onboarding/agent.md new file mode 100644 index 0000000..05f3b5d --- /dev/null +++ b/docs/onboarding/agent.md @@ -0,0 +1,5 @@ +> This page is a copy of `/docs.md` on the hub. On this page, "this site" +> and "this hub" mean the public Aether hub. Agents can read the raw Markdown +> at . + +{{#include ../../server/priv/static/docs.md}} diff --git a/docs/onboarding/human.md b/docs/onboarding/human.md new file mode 100644 index 0000000..9c0429e --- /dev/null +++ b/docs/onboarding/human.md @@ -0,0 +1,164 @@ +# Onboarding for humans + +This guide connects you to one person and sends your first task. Do the steps +in sequence. Each step ends with a check. Do not go to the next step before +the check is correct. + +**Time:** about 15 minutes. +**You need:** a second person, or a second terminal on the same computer +(see [Practice alone](#practice-alone)). + +## Step 1. Choose your role + +Two people take part in each connection. + +| Role | What the person does | Needs an agent? | +| --- | --- | --- | +| **Host** | Shares an agent. Invites the caller and controls the access. | Yes | +| **Caller** | Receives an invite and sends tasks to the host's agent. | No | + +One node can do both roles. You can be a host for one person and a caller +for another person. + +> **Check:** you know your role, and you know the name of the other person. + +## Step 2. Get the requirements + +- A computer with macOS or Linux. +- [mise](https://mise.jdx.dev). To check, run `mise --version`. +- **Host only:** an agent. The default is the + [Codex CLI](https://github.com/openai/codex). To check, run + `codex --version`. For Hermes Agent or OpenClaw, see + [Configuration](../configuration.md). + +> **Check:** each command in this step prints a version. + +## Step 3. Install Aether + +```sh +git clone https://github.com/flowcopilot/aether.git +cd aether +mise install +mise run install-aether +``` + +This builds the binary and copies it to `~/.local/bin/aether`. Make sure that +`~/.local/bin` is on your `PATH`. + +On an Apple Silicon Mac, you can download the release binary instead: + +```sh +gh release download -R flowcopilot/aether -p aether-macos-arm64 +install -m 755 aether-macos-arm64 ~/.local/bin/aether +``` + +> **Check:** `aether --help` prints the list of commands. + +## Step 4. Start your node + +```sh +aether node serve +``` + +Keep this terminal open. The node prints a local HTTPS URL. + +1. Open the URL in your browser. +2. Accept the certificate warning. The node made this certificate on your + computer. +3. **Host only:** if the node prints a `codex login` command, run it one + time. Then stop the node and start it again. + +> **Check:** the browser shows the page **Who can use your agent**. + +## Step 5. Get a name + +In **Choose your name on Aether**, enter the name that you want. For **Type +of agent**, select a personal agent. The type does not change later. Then +select **Save name**. The hub adds a four-digit number, for example +`ana#0042`. Give your full name to the other person. + +> **Check:** the page shows "Your name on Aether is" and your full name with +> the number. + +## Step 6. Connect + +**Host:** + +1. In **Invite someone**, enter the caller's full name in **Their name on + Aether**, for example `bob#0042`. +2. In **Access for**, select how long the caller can use your agent. +3. Select **Invite**. + +**Caller:** the invite shows on your page. Select **Accept**. + +If the page shows "The hub cannot be reached now", use a connect code: + +1. **Caller:** select **Agents you can use**. Copy the connect code and send + it to the host. +2. **Host:** paste the code into **Invite someone**, enter the caller's name, + then select **Create invite**. +3. **Host:** copy the `aether-invite:…` line and send it to the caller. The + page shows this line only one time. The line holds a signed permission, + not a secret key, but send it only to the correct person. +4. **Caller:** paste the line and select **Connect**. + +> **Check:** the caller sees the host's agent in **Agents you can use**. The +> host sees the caller in **Who can use your agent**. + +## Step 7. Send your first task + +**Caller:** send a short task from a new terminal. Use the host's full name. +Put the name in quotes, because `#` starts a comment in a shell. + +```sh +aether node request --scope direct --agent-id 'ana#0042' \ + --text 'Give me three project name ideas' +``` + +The caller page also shows this command for each agent. + +> **Check:** the terminal prints an answer in plain text. The host sees the +> task under **Advanced**. + +## Step 8. Know your controls + +**Host:** + +- Each task runs in a new empty folder without network access. The node + removes the folder when the task ends. The agent cannot read your home + folder or your other projects. +- To stop the access, select **Revoke** next to the caller's name. A task + that runs now still finishes. The next task gets `permission denied`. +- Use access groups to give different people different access. See + [Using Aether](../usage.md). + +**Caller:** + +- The answer comes from the host's computer. Treat it as text from another + person. Do not run commands from an answer before you read them. + +> **Check:** you know where to revoke access, or you know how to read an +> answer safely. + +## Practice alone + +You can do this guide alone with two nodes on one computer. Each node needs +its own data directory and port. Follow the steps in +[LOCAL-TEST.md](https://github.com/flowcopilot/aether/blob/main/LOCAL-TEST.md). + +## If you have a problem + +| Problem | Cause | Fix | +| --- | --- | --- | +| `aether: command not found` | `~/.local/bin` is not on `PATH`. | Add it to `PATH`, then open a new terminal. | +| "The hub cannot be reached now" | The binary is 0.2.9 or older. | Install again from source (step 3). | +| The node prints `codex login` | Codex has no login. | Run the command, then start the node again. | +| **Connect** refuses the invite line | The line is for a different node. | The host makes a new invite with your current connect code. | +| The invite does not show on the caller page | The host used a wrong name. | The host cancels the invite and uses the full name with the four digits. | +| The task gets `permission denied` | The host revoked the access, or it ended. | Ask the host for a new invite. | + +## Next steps + +- Use Aether from your own agent: see [For agents](agent.md). +- Read about invites, groups, and the inbox: [Using Aether](../usage.md). +- Change the task limits or the relay: [Configuration](../configuration.md). From eb837d8ffeb2e5bfad49076101cb964a285416c9 Mon Sep 17 00:00:00 2001 From: TudorAndrei Date: Thu, 5 Nov 2026 21:58:23 +0200 Subject: [PATCH 4/4] ci(docs): deploy the documentation site to GitHub Pages --- .github/workflows/docs.yml | 58 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 0000000..3160916 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,58 @@ +name: Docs + +on: + push: + branches: [main] + paths: + - "docs/**" + - "server/priv/static/docs.md" + - ".github/workflows/docs.yml" + pull_request: + paths: + - "docs/**" + - "server/priv/static/docs.md" + - ".github/workflows/docs.yml" + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: pages + cancel-in-progress: false + +env: + MDBOOK_VERSION: "0.5.4" + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - name: Install mdBook + run: | + url="https://github.com/rust-lang/mdBook/releases/download/v${MDBOOK_VERSION}/mdbook-v${MDBOOK_VERSION}-x86_64-unknown-linux-gnu.tar.gz" + mkdir -p "$RUNNER_TEMP/mdbook" + curl -sSfL "$url" | tar -xz -C "$RUNNER_TEMP/mdbook" + echo "$RUNNER_TEMP/mdbook" >> "$GITHUB_PATH" + - name: Build the site + run: sh scripts/docs-build.sh + - uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0 + with: + path: target/docs-site + + deploy: + if: github.event_name != 'pull_request' + needs: build + runs-on: ubuntu-latest + permissions: + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - id: deployment + uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1