Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,13 @@ they apply:

<!--
Manual steps in order. Delete if none. For example:
1. Publish the node release (the `aether-macos-arm64` asset) before a hub
deploy that refuses older nodes, and tell users to update.
1. Publish the node release for all supported platforms (see
packaging/README.md) before a hub deploy that refuses older nodes, and
tell users to update.
2. Back up the hub database, then deploy the hub. Follow "Before an
upgrade" in server/README.md.
3. Rebuild and deploy the relay image (Dockerfile.relay,
compose.coolify.yml).
4. Owners run `mise run install-aether` and restart `aether node serve`.
4. Owners update with their installation method (see docs/installation.md)
and restart `aether node serve`.
-->
157 changes: 157 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
name: Release binaries

on:
pull_request:
paths:
- "Cargo.*"
- "crates/**"
- "scripts/release.py"
- ".github/workflows/release.yml"
push:
tags: ["v*"]
workflow_dispatch:

permissions:
contents: read

concurrency:
group: release-${{ github.ref }}
cancel-in-progress: false

jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- runner: ubuntu-24.04
target: x86_64-unknown-linux-gnu
- runner: ubuntu-24.04-arm
target: aarch64-unknown-linux-gnu
- runner: macos-15-intel
target: x86_64-apple-darwin
- runner: macos-15
target: aarch64-apple-darwin
runs-on: ${{ matrix.runner }}
env:
TARGET: ${{ matrix.target }}
MACOSX_DEPLOYMENT_TARGET: "15.0"
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Check tag version
shell: bash
run: |
version=$(python3 scripts/release.py version)
if [[ "$GITHUB_REF_TYPE" == tag && "$GITHUB_REF_NAME" != "v$version" ]]; then
echo "The tag must match workspace.package.version: v$version" >&2
exit 1
fi
- name: Install Rust
shell: bash
run: |
rustup toolchain install 1.98.0 --profile minimal
rustup default 1.98.0
rustup target add "$TARGET"
- name: Install Debian packaging tools
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y dpkg-dev
- name: Build and check the binary
shell: bash
run: |
cargo build --release --locked -p aether --target "$TARGET"
"target/$TARGET/release/aether" --help
- name: Check Cargo installation
shell: bash
run: |
cargo install --path crates/aether --locked --target "$TARGET" --root "$RUNNER_TEMP/cargo-install"
"$RUNNER_TEMP/cargo-install/bin/aether" --help
- name: Package
shell: bash
run: python3 scripts/release.py package --target "$TARGET" --binary "target/$TARGET/release/aether"
- name: Check archive installation
shell: bash
run: |
mkdir "$RUNNER_TEMP/archive"
tar -xzf target/dist/*.tar.gz -C "$RUNNER_TEMP/archive"
"$RUNNER_TEMP/archive/aether" --help
- name: Check Debian installation
if: runner.os == 'Linux'
run: |
sudo apt-get install -y ./target/dist/*.deb
/usr/bin/aether --help
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: aether-${{ matrix.target }}
path: target/dist/*
if-no-files-found: error

assemble:
needs: build
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
with:
pattern: aether-*
path: target/dist
merge-multiple: true
- name: Create formula and checksums
run: |
python3 scripts/release.py finalize
cd target/dist
sha256sum --check SHA256SUMS
ruby -c aether.rb
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: release-assets
path: target/dist/*
if-no-files-found: error

publish:
if: startsWith(github.ref, 'refs/tags/v') && github.event_name == 'push'
needs: assemble
runs-on: ubuntu-24.04
permissions:
contents: write
steps:
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
with:
name: release-assets
path: dist
- name: Publish release
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
run: |
gh release create "$GITHUB_REF_NAME" dist/* --verify-tag --generate-notes

homebrew:
if: vars.HOMEBREW_TAP_REPOSITORY != ''
needs: publish
runs-on: ubuntu-24.04
steps:
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
with:
name: release-assets
path: dist
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: ${{ vars.HOMEBREW_TAP_REPOSITORY }}
ssh-key: ${{ secrets.HOMEBREW_TAP_DEPLOY_KEY }}
path: tap
- name: Update Homebrew tap
run: |
mkdir -p tap/Formula
cp dist/aether.rb tap/Formula/aether.rb
cd tap
git config user.name 'github-actions[bot]'
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
git add Formula/aether.rb
if ! git diff --cached --quiet; then
git commit -m "chore(homebrew): release aether $GITHUB_REF_NAME"
git push
fi
32 changes: 10 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,34 +15,22 @@ network access, and the node removes the folder when the task ends.

## Install

You need macOS or Linux, [mise](https://mise.jdx.dev), and an agent: the
[Codex CLI](https://github.com/openai/codex) (the default),
[Hermes Agent](integrations/hermes-plugin/README.md) or
[OpenClaw](integrations/openclaw-plugin/README.md).
Aether runs on Linux and macOS, on Intel/AMD and Arm processors.
Choose an installation method in the [installation guide](docs/installation.md):
Homebrew, a Debian package with `apt`, a binary archive, Cargo, or a source
build with mise. Binary packages need a release made with the new workflow.

```sh
git clone https://github.com/flowcopilot/aether.git
cd aether
mise install
mise run install-aether
```

This builds the release binary and copies it to `~/.local/bin/aether`. Make
sure that `~/.local/bin` is on your `PATH`, then check the install:
To build and install the current source with Cargo:

```sh
cargo install --git https://github.com/flowcopilot/aether.git --locked aether
aether --help
```

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
```

Version 0.2.9 and older cannot connect to a hub that uses the new protocol.
If the page shows "The hub cannot be reached now", build from source.
You need Rust 1.98 or later, Git, a C compiler, and CMake for this build.
A host also needs an agent: the [Codex CLI](https://github.com/openai/codex),
[Hermes Agent](integrations/hermes-plugin/README.md), or
[OpenClaw](integrations/openclaw-plugin/README.md).

## Start your node

Expand Down
1 change: 1 addition & 0 deletions docs/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

# Guides

- [Installation](installation.md)
- [Using Aether](usage.md)
- [Configuration](configuration.md)
- [The PACT gateway](pact.md)
Expand Down
123 changes: 123 additions & 0 deletions docs/installation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
# Install Aether

Aether runs on Linux and macOS. A host also needs an agent. See
[Configuration](configuration.md) for agent setup.

The release workflow builds these packages:

- Linux, x86-64 and Arm64: a binary archive and a Debian package. The builds
use Ubuntu 24.04. Use Ubuntu 24.04 or a compatible system with glibc 2.39
or later. Alpine Linux needs a source build with its own build tools.
- macOS 15 or later, Intel and Apple Silicon: a binary archive.

Windows is not supported. The node and its agent adapters use Unix sockets.

The commands below need a release made with the new release workflow.
For an older release, use the source build at the end of this page.

## Homebrew

After the maintainer has set up the `flowcopilot/homebrew-tap` repository:

```sh
brew install flowcopilot/tap/aether
aether --help
```

To update:

```sh
brew update
brew upgrade flowcopilot/tap/aether
```

The formula selects the archive for your processor and checks its SHA-256
checksum. On Linux, the same glibc requirement applies as for direct downloads.

## Debian and Ubuntu with apt

Install the [GitHub CLI](https://cli.github.com/) first, or download the files
from the [release page](https://github.com/flowcopilot/aether/releases).
Run the following commands in an empty folder:

```sh
arch=$(dpkg --print-architecture)
gh release download --repo flowcopilot/aether --pattern "aether_*_${arch}.deb" --pattern SHA256SUMS
sha256sum --check --ignore-missing SHA256SUMS
sudo apt install ./aether_*_"$arch".deb
aether --help
```

The supported Debian architecture names are `amd64` and `arm64`. The package
installs `/usr/bin/aether`. It does not start a service. To update, download
and install the package from the next release. There is no Aether apt
repository yet, so `apt update` does not find new Aether releases.

## Binary archive

Run the following commands in an empty folder. They need the GitHub CLI.

```sh
case "$(uname -s)" in
Darwin) platform=apple-darwin ;;
Linux) platform=unknown-linux-gnu ;;
*) echo 'Unsupported operating system' >&2; exit 1 ;;
esac
case "$(uname -m)" in
arm64|aarch64) cpu=aarch64 ;;
x86_64) cpu=x86_64 ;;
*) echo 'Unsupported processor' >&2; exit 1 ;;
esac
gh release download --repo flowcopilot/aether --pattern "aether-*-${cpu}-${platform}.tar.gz" --pattern SHA256SUMS
```

Check the files on Linux:

```sh
sha256sum --check --ignore-missing SHA256SUMS
```

Check the files on macOS:

```sh
shasum -a 256 --check --ignore-missing SHA256SUMS
```

If the check succeeds, install the binary:

```sh
tar -xzf aether-*.tar.gz
mkdir -p "$HOME/.local/bin"
install -m 755 aether "$HOME/.local/bin/aether"
```

Add `~/.local/bin` to `PATH`, then run `aether --help`.
The checksums detect damaged files. They are not release signatures.

## Cargo

Install Rust 1.98 or later, Git, a C compiler, and CMake. The build also
needs network access to download Rust dependencies and the Tailwind CLI.

```sh
cargo install --git https://github.com/flowcopilot/aether.git --locked aether
aether --help
```

This installs the current default branch. To install a release, add its tag,
for example `--tag v0.3.0` when that tag is available. Cargo installs the
binary in `~/.cargo/bin` by default. Run the same command to update.

Use the Git URL in the command. `cargo install aether` selects a package
from crates.io. This project does not yet publish packages there.

## Build with mise

```sh
git clone https://github.com/flowcopilot/aether.git
cd aether
mise install
mise run install-aether
```

This installs the binary in `~/.local/bin`.
20 changes: 3 additions & 17 deletions docs/onboarding/human.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ for another 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
Expand All @@ -35,22 +34,9 @@ for another person.

## 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
```
Choose a method in the [installation guide](../installation.md): Homebrew,
a Debian package with `apt`, a binary archive, Cargo, or a source build.
Follow the requirements for that method.

> **Check:** `aether --help` prints the list of commands.

Expand Down
Loading
Loading