INDEX 02 / 14

SETUP

Install Aphrodite

A tool call's output becomes part of the model's context, so Aphrodite is installed where that output is produced.

Aphrodite is installed as a Hermes Agent plugin (recommended) or run as a standalone proxy for OpenAI-compatible APIs.

Two things to know first: the plugin never downloads anything on its own - you run one setup command, and it fetches the Aphrodite binary and library from GitHub Releases, verifies them with SHA-256, and stores them in ~/.hermes/aphrodite/. And you need no Rust toolchain for the two plugin routes: the catalog and the clone install prebuilt binaries. The Cargo and from-source routes do build with Rust, and need 1.88+.

Not sure which to choose? Use the plugin catalog (Option 1).

01 // POSITIONING // INSTALL // FOUR ROUTES

Which route to take

Four routes, one engine. They differ in what they fetch and who owns the files afterwards - and in how much of the plugin you get: Cargo installs the proxy and a hooks-only loader, not the plugin tree. What Aphrodite does once the full plugin is running is the same on all four.

NO RUST FOR #1-#2 RUST 1.88+ FOR #3-#4 SHA-256 VERIFIED

The full host map, including the flavors still planned, is laid out on FLAVORS .

The four routes follow in full, command by command.

02 // DECISION MATRIX

Four routes, side by side

4 routes

Every card states the same three facts - what it installs, whether it needs Rust, and the situation it fits. The catalog is the card the page recommends.

The other three routes

Same engine, different owner of the files. Each is an anchored section, so a link can point at the route a reader needs.

#2 // GIT CLONE

Clone, link, download, enable

For a local plugin checkout

WHAT IT INSTALLS
the plugin, linked into ~/.hermes
NEEDS RUST
no
USE IT WHEN
you want the plugin tree in your own checkout
BASH - macOS / Linux // 7 STEPS POWERSHELL - Windows // 8 STEPS
#3 // CARGO

Crates.io install

For Cargo-managed installation

WHAT IT INSTALLS
the binaries, then a minimal loader
NEEDS RUST
yes
USE IT WHEN
you only need the proxy, or want cargo to own the versions
BASH - macOS / Linux // 3 STEPS POWERSHELL - Windows // 5 STEPS
#4 // FROM SOURCE

Build it yourself

For development

WHAT IT INSTALLS
a local release build you point the plugin at
NEEDS RUST
yes
USE IT WHEN
you are changing the code, not only running it
BASH - macOS / Linux // 4 STEPS POWERSHELL - Windows // 4 STEPS

03 // OPERATIONAL WORKFLOW // THE TRANSCRIPT // ROUTE BY ROUTE

Four installs, one at a time

Each route is self-contained: the commands, what they leave on disk, what makes them fail, and the one check that says the install is live. The recommended path is selected first; the other three are one pill away, in the same container.

Platform is an input, not a footnote. Every route ships two complete lanes - directory creation, discovery and linking, download, enable, verification - and every command block carries the shell it is written for. A Windows lane contains no POSIX command, and a macOS / Linux lane contains no PowerShell.

WINDOWS: use PowerShell and run pwsh ./download.ps1 instead of bash download.sh - the full Windows walkthrough is on /docs/install/windows/ .

PLATFORM //
ROUTE //
SESSION // BASH - macOS / Linux

Plugin catalog install

#1 // PLUGIN CATALOG 5 STEPS READY
  1. 01

    Install the plugin from the catalog

    hermes plugins install aphrodite

    Checks out the catalog entry's reviewed, pinned commit - never a branch tip. Hermes asks Enable now? at the end of this step; the next step answers it explicitly, so the sequence does not depend on a prompt.

    EXPECT A pinned checkout in ~/.hermes/plugins/aphrodite - plugin.yaml plus the __init__.py shim.

  2. 02

    Enable the plugin

    BEFORE hermes on PATH.

    hermes plugins enable aphrodite

    Or answer yes at the Enable now? prompt - this is the same write, run as its own step so it can be re-run on its own.

    hermes plugins enable aphrodite skipped: enabling is a separate write to Hermes's own config.yaml, so a finished install alone does not register the hooks.

  3. 03

    Step into the installed plugin folder

    cd ~/.hermes/plugins/aphrodite

    download.sh is a file in the plugin tree, not a command on PATH, so the next step has to run from inside the folder.

    A download.sh run from outside the plugin folder: the script is a file in the tree, so cd into it before running it.

  4. 04

    Fetch the prebuilt binary and library

    bash download.sh

    Fetches the prebuilt binary and dylib from GitHub Releases into ~/.hermes/aphrodite/binaries/ - never into the plugin directory - validated against the in-tree SHA256SUMS.txt and magic-byte checked. Nothing is compiled and no Rust toolchain is required. Pin both explicitly: bash download.sh 1.6.5 x86_64-unknown-linux-gnu.

    EXPECT aphrodite + libaphrodite_hermes in ~/.hermes/aphrodite/binaries/.

    No route to GitHub Releases: the fetch step fails. The plugin is already enabled in config.yaml by step 2, so Hermes tries to load it - and a loader with no binary logs the setup command and stays inert until the binary is present. An enabled configuration is not a runtime that can load; register() never downloads anything on its own.

    A checksum that does not match SHA256SUMS.txt: the verify step fails, and the honest fix is a re-run, not a hand-copied file.

  5. 05

    Start Hermes

    hermes

    The plugin launches the proxy pair from the binaries you just fetched: :9797 (cache) and :9798 (token).

    EXPECT A log line saying Aphrodite is enabled, then two proxy listeners.

SESSION // POWERSHELL - Windows

Plugin catalog install

#1 // PLUGIN CATALOG 5 STEPS READY
  1. 01

    Install the plugin from the catalog

    hermes plugins install aphrodite

    Checks out the catalog entry's reviewed, pinned commit - never a branch tip. Hermes asks Enable now? at the end of this step; the next step answers it explicitly, so the sequence does not depend on a prompt.

    EXPECT A pinned checkout in %USERPROFILE%\.hermes\plugins\aphrodite - plugin.yaml plus the __init__.py shim.

  2. 02

    Enable the plugin

    BEFORE hermes on PATH.

    hermes plugins enable aphrodite

    Or answer yes at the Enable now? prompt - this is the same write, run as its own step so it can be re-run on its own.

    hermes plugins enable aphrodite skipped: enabling is a separate write to Hermes's own config.yaml, so a finished install alone does not register the hooks.

  3. 03

    Step into the installed plugin folder

    cd "$env:USERPROFILE\.hermes\plugins\aphrodite"

    On Windows the catalog entry lands in %USERPROFILE%\.hermes\plugins\aphrodite, and download.ps1 is a file in that folder.

    A download.ps1 run from outside the plugin folder: the script is a file in the tree, so Set-Location into it before running it.

  4. 04

    Fetch the prebuilt binary and library

    pwsh ./download.ps1

    The direct PowerShell equivalent of download.sh: same version and platform detection, same SHA256SUMS.txt validation, same runtime home - and it runs under both PowerShell 5.1 (built into Windows) and PowerShell 7+. Native PowerShell cannot run bash download.sh without Git Bash, WSL or MSYS, which is why this lane uses download.ps1 and not the POSIX script.

    EXPECT aphrodite.exe + aphrodite_hermes.dll in %USERPROFILE%\.hermes\aphrodite\binaries\.

    No route to GitHub Releases: the fetch step fails. The plugin is already enabled in config.yaml by step 2, so Hermes tries to load it - and a loader with no binary logs the setup command and stays inert until the binary is present. An enabled configuration is not a runtime that can load; register() never downloads anything on its own.

    A checksum that does not match SHA256SUMS.txt: the verify step fails, and the honest fix is a re-run, not a hand-copied file.

  5. 05

    Start Hermes

    hermes

    The plugin launches the proxy pair from the binaries you just fetched: :9797 (cache) and :9798 (token).

    EXPECT A log line saying Aphrodite is enabled, then two proxy listeners.

The catalog is the only lane with no git and no Rust in it: one install, one enable, one download.

OUTCOME // CATALOG INSTALL:

Reviewed pinned checkout of the catalog entry, binaries fetched + SHA-256 verified, plugin enabled.

SRC: the Hermes plugin guide - Installing from the catalog.

THE CATALOG RULE

The catalog entry is reviewed and pinned - hermes plugins install checks out exactly that commit, never a branch tip.

Do NOT run aphrodite setup in a catalog-managed directory - it rewrites the loader the catalog manages. Still run download.sh (or download.ps1 on Windows) from the installed plugin folder.

WHAT IT WRITES

The catalog checkout only - plugin.yaml plus the __init__.py shim, in ~/.hermes/plugins/aphrodite. download.sh then fetches the binary and the dylib into ~/.hermes/aphrodite/binaries/, never into the plugin directory, validated against the in-tree SHA256SUMS.txt and magic-byte checked.

VERIFY IT WORKS

Start hermes.

The plugin should log that Aphrodite is enabled.

If the binaries are missing, it logs the setup command and stays disabled until you run it.

EXPECT A log line saying Aphrodite is enabled, then two proxy listeners on :9797 (cache) and :9798 (token).

SESSION // BASH - macOS / Linux

Clone, link, download, enable

#2 // GIT CLONE 7 STEPS READY
  1. 01

    Clone the plugin repository

    git clone https://github.com/PlayForm/Aphrodite-Hermes.git

    The plugin is a pure loader - it does not bundle the binary or the dylib - so the clone is small.

    EXPECT An Aphrodite-Hermes directory beside where you ran the command.

  2. 02

    Enter the clone

    cd Aphrodite-Hermes

    Every following step runs from inside the clone: the download script lives in the tree.

  3. 03

    Link the clone into Hermes's plugin directory

    BEFORE No existing ~/.hermes/plugins/aphrodite entry.

    ln -s "$(pwd)" ~/.hermes/plugins/aphrodite

    Hermes discovers plugins from ~/.hermes/plugins/<name>, so the link is what makes the clone a plugin. A symlink (not a copy) means edits to your checkout are picked up without recopying.

    ln -s onto an existing ~/.hermes/plugins/aphrodite directory: the link lands inside it instead of replacing it. Remove the directory first.

  4. 04

    Fetch the prebuilt binary and library

    bash download.sh

    Resolves the version from the bundled BINARY_VERSION, the monorepo's own Cargo.toml, or the latest published release, detects your platform, and installs aphrodite + libaphrodite_hermes into ~/.hermes/aphrodite/binaries/. Nothing is written inside the plugin tree, and no Rust toolchain is required.

    EXPECT aphrodite + libaphrodite_hermes in ~/.hermes/aphrodite/binaries/.

    A download.sh run from outside the clone: the script is a file in the tree, so cd into it before running it.

  5. 05

    Leave the clone

    cd ..

    Optional housekeeping: the remaining steps are not relative to the clone.

  6. 06

    Enable the plugin

    BEFORE hermes on PATH.

    hermes plugins enable aphrodite

    hermes plugins enable aphrodite skipped: enabling is a separate write to Hermes's own config.yaml, so a finished download alone does not register the hooks.

  7. 07

    Start Hermes

    hermes

    EXPECT A log line saying Aphrodite is enabled, then two proxy listeners.

SESSION // POWERSHELL - Windows

Clone, link, download, enable

#2 // GIT CLONE 8 STEPS READY
  1. 01

    Clone the plugin repository

    git clone https://github.com/PlayForm/Aphrodite-Hermes.git

    The plugin is a pure loader - it does not bundle the binary or the dylib - so the clone is small.

    EXPECT An Aphrodite-Hermes directory beside where you ran the command.

  2. 02

    Enter the clone

    cd Aphrodite-Hermes

    Every following step runs from inside the clone: the download script lives in the tree.

  3. 03

    Create the plugins directory

    mkdir "$env:USERPROFILE\.hermes\plugins" -Force

    Hermes discovers plugins from %USERPROFILE%\.hermes\plugins\. -Force leaves an existing directory alone, so the step is safe to repeat.

  4. 04

    Link the clone into Hermes's plugin directory

    BEFORE No existing aphrodite entry in that directory.

    New-Item -ItemType Junction -Path "$env:USERPROFILE\.hermes\plugins\aphrodite" -Target (Get-Location)

    A directory junction is the Windows equivalent of the POSIX symlink and needs no admin rights on modern Windows, unlike a real symlink - so edits to your clone are picked up without recopying.

    Some locked-down environments still restrict junctions: copy instead - Copy-Item -Recurse - and remember you will need to re-copy after every plugin update.

  5. 05

    Fetch the prebuilt binary and library

    pwsh ./download.ps1

    The direct PowerShell equivalent of download.sh - version and platform auto-detected, SHA256SUMS.txt validated, output written into %USERPROFILE%\.hermes\aphrodite\binaries\. Native Windows PowerShell cannot run bash download.sh without Git Bash, WSL or MSYS, so this lane uses the PowerShell script throughout.

    EXPECT aphrodite.exe + aphrodite_hermes.dll in %USERPROFILE%\.hermes\aphrodite\binaries\.

    A download.ps1 run from outside the clone: the script is a file in the tree, so Set-Location into it before running it.

  6. 06

    Leave the clone

    cd ..

    Optional housekeeping: the remaining steps are not relative to the clone.

  7. 07

    Enable the plugin

    BEFORE hermes on PATH.

    hermes plugins enable aphrodite

    hermes plugins enable aphrodite skipped: enabling is a separate write to Hermes's own config.yaml, so a finished download alone does not register the hooks.

  8. 08

    Start Hermes

    hermes

    EXPECT A log line saying Aphrodite is enabled, then two proxy listeners.

Pin both explicitly: bash download.sh 1.6.5 x86_64-unknown-linux-gnu. register() never downloads - the only escape hatch is APHRODITE_AUTO_DOWNLOAD=1, which runs the script itself before launching.

OUTCOME // VERIFIED INSTALL:

Binary + native library (dylib) fetched from GitHub Releases, SHA-256 verified, plugin enabled.

WHAT IT WRITES

download.sh resolves the version from the bundled BINARY_VERSION, the monorepo's own Cargo.toml, or the latest published release, detects your platform, and installs aphrodite + libaphrodite_hermes into ~/.hermes/aphrodite/binaries/. Nothing is written inside the plugin tree.

VERIFY IT WORKS

Start hermes.

The plugin should log that Aphrodite is enabled.

If the binaries are missing, it logs the setup command and stays disabled until you run it.

EXPECT A log line saying Aphrodite is enabled, then two proxy listeners on :9797 (cache) and :9798 (token).

SESSION // BASH - macOS / Linux

Crates.io install

#3 // CARGO 3 STEPS READY
  1. 01

    Install the proxy binary

    cargo install aphrodite

    Built from crates.io on your machine, so this route does need a Rust toolchain: 1.88+, and the repo's own toolchain pins nightly.

  2. 02

    Install the plugin's dylib and helper bin

    cargo install aphrodite-hermes

    The native library the Python loader loads, plus the helper binary.

  3. 03

    Run setup

    BEFORE hermes on PATH; Rust 1.88+.

    aphrodite setup

    Provisions ~/.hermes/aphrodite/ - the binary, the dylibs, aphrodite.toml from the embedded template and the BINARY_VERSION pin - then writes the hooks-only loader, plugin.yaml + __init__.py, into ~/.hermes/plugins/aphrodite/, removing a stale symlink from older installs first. It ends by running hermes plugins enable aphrodite.

    EXPECT The runtime home provisioned, the loader written, the plugin registered.

    No hermes on PATH: step one runs hermes --version and fails fast with a clear error, before anything is written.

    A missing libaphrodite_hermes aborts setup; a missing core libaphrodite only warns - the plugin loads the Hermes dylib, not the core one.

    An existing aphrodite.toml is left alone unless you pass --force; --cache-port and --token-port move the pair off 9797/9798 for a second agent on the same machine.

    A failed hermes plugins enable: setup prints a warning and carries on - the binaries are installed, the registration is not.

SESSION // POWERSHELL - Windows

Crates.io install

#3 // CARGO 5 STEPS READY
  1. 01

    Install the proxy binary

    cargo install aphrodite

    Built from crates.io on your machine, so this route does need a Rust toolchain: 1.88+, and the repo's own toolchain pins nightly.

  2. 02

    Install the plugin's dylib and helper bin

    cargo install aphrodite-hermes

    The native library the Python loader loads, plus the helper binary.

  3. 03

    Run setup

    BEFORE hermes on PATH; Rust 1.88+.

    aphrodite setup

    Provisions %USERPROFILE%\.hermes\aphrodite\ - the binary, the dylibs, aphrodite.toml from the embedded template and the BINARY_VERSION pin - and registers the plugin with Hermes. It ends by starting the proxy and printing the one manual step left on Windows: linking the plugin into Hermes, which is the next two steps.

    EXPECT The runtime home provisioned, the plugin registered, the remaining link step named.

    No hermes on PATH: step one runs hermes --version and fails fast with a clear error, before anything is written.

    A missing libaphrodite_hermes aborts setup; a missing core libaphrodite only warns - the plugin loads the Hermes dylib, not the core one.

    An existing aphrodite.toml is left alone unless you pass --force; --cache-port and --token-port move the pair off 9797/9798 for a second agent on the same machine.

    A failed hermes plugins enable: setup prints a warning and carries on - the binaries are installed, the registration is not.

  4. 04

    Create the plugins directory

    New-Item -ItemType Directory -Force "$env:USERPROFILE\.hermes\plugins" | Out-Null

    Hermes discovers plugins from %USERPROFILE%\.hermes\plugins\; -Force leaves an existing directory alone.

  5. 05

    Link the runtime home into the plugin directory

    New-Item -ItemType Junction -Path "$env:USERPROFILE\.hermes\plugins\aphrodite" -Target "$env:USERPROFILE\.hermes\aphrodite"

    This is the manual follow-up setup names on Windows: either a directory junction (no admin rights needed on modern Windows) or a copy of the runtime home. A junction keeps the two in step without recopying.

    Some locked-down environments still restrict junctions: copy the runtime home into the plugin directory instead, and re-copy after every upgrade.

cargo install installs the binaries only - aphrodite setup then writes a minimal hooks-only loader into ~/.hermes/plugins/aphrodite. For the full plugin tree, use #1 or #2: this route gives you the proxy and a loader that registers the hooks, not the checkout.

Setup ends by starting the proxy - pass --no-launch to skip that, and --force to rewrite an existing aphrodite.toml.

OUTCOME // BINARIES + LOADER:

The proxy binary and the dylib installed by cargo, the runtime home provisioned by aphrodite setup, a hooks-only loader written, the plugin registered.

WHAT IT WRITES

aphrodite setup provisions ~/.hermes/aphrodite/ - the binary, the dylibs, aphrodite.toml from the embedded template (only if none exists, unless --force) and the BINARY_VERSION pin - then writes the hooks-only loader, plugin.yaml + __init__.py, into ~/.hermes/plugins/aphrodite/, removing a stale symlink from older installs first. It ends by running hermes plugins enable aphrodite.

VERIFY IT WORKS

Option 3 does not install the full plugin tree by itself - after aphrodite setup writes the loader, start hermes.

The plugin should log that Aphrodite is enabled; if the binaries are missing, it logs the setup command and stays disabled until you run it.

EXPECT A log line saying Aphrodite is enabled, then two proxy listeners on :9797 (cache) and :9798 (token).

SESSION // BASH - macOS / Linux

Build it yourself

#4 // FROM SOURCE 4 STEPS READY
  1. 01

    Clone the monorepo

    git clone https://github.com/PlayForm/Aphrodite.git
  2. 02

    Enter the checkout

    cd Aphrodite
  3. 03

    Initialise the submodules

    git submodule update --init --recursive

    Vendored dependencies live in submodules, so this is required rather than tidy.

    A skipped git submodule update --init --recursive: vendored dependencies live in submodules and the build stops early.

  4. 04

    Build the release pair

    cargo build --release -p aphrodite -p aphrodite-hermes

    Needs Rust 1.88+ - the repo toolchain pins nightly, and a stable toolchain against it is the build that fails. The outputs land in target/release/: aphrodite and libaphrodite_hermes.dylib (.so on Linux). Point APHRODITE_BINARY_PATH / APHRODITE_HERMES_DYLIB_PATH at them, or copy them into ~/.hermes/aphrodite/binaries/.

    EXPECT target/release/aphrodite + target/release/libaphrodite_hermes.dylib (.so on Linux).

    A stable toolchain against a repo pinned to nightly: the workspace needs Rust 1.88+ and the repo's toolchain pins nightly.

    Build output left in target/release/ while the plugin looks in ~/.hermes/aphrodite/binaries/: set the two env paths, or copy the files across.

    Nothing self-heals: the plugin never downloads and never repairs an install, and layout_check.py is report-only.

SESSION // POWERSHELL - Windows

Build it yourself

#4 // FROM SOURCE 4 STEPS READY
  1. 01

    Clone the monorepo

    git clone https://github.com/PlayForm/Aphrodite.git
  2. 02

    Enter the checkout

    cd Aphrodite
  3. 03

    Initialise the submodules

    git submodule update --init --recursive

    Vendored dependencies live in submodules, so this is required rather than tidy.

    A skipped git submodule update --init --recursive: vendored dependencies live in submodules and the build stops early.

  4. 04

    Build the release pair

    cargo build --release -p aphrodite -p aphrodite-hermes

    Needs Rust 1.88+ - the repo toolchain pins nightly, and a stable toolchain against it is the build that fails. The outputs land in target\release\ as aphrodite.exe and aphrodite_hermes.dll. Point APHRODITE_BINARY_PATH / APHRODITE_HERMES_DYLIB_PATH at them, or copy them into %USERPROFILE%\.hermes\aphrodite\binaries\.

    EXPECT target\release\aphrodite.exe + target\release\aphrodite_hermes.dll.

    A stable toolchain against a repo pinned to nightly: the workspace needs Rust 1.88+ and the repo's toolchain pins nightly.

    Build output left in target\release\ while the plugin looks in %USERPROFILE%\.hermes\aphrodite\binaries\: set the two env paths, or copy the files across.

    Nothing self-heals: the plugin never downloads and never repairs an install, and layout_check.py is report-only.

Nothing outside your checkout is written: cargo build --release writes into target/ and you point the plugin at the result - no installer script, no download.

OUTCOME // A LOCAL BUILD:

A release build in target/release/ that you point the plugin at, or copy into the runtime home's binaries/ - no installer script, no download.

WHAT IT WRITES

Nothing outside your checkout: cargo build --release writes target/release/aphrodite and target/release/libaphrodite_hermes.dylib (.so on Linux). The plugin reads APHRODITE_BINARY_PATH / APHRODITE_HERMES_DYLIB_PATH, or you copy the pair into ~/.hermes/aphrodite/binaries/.

VERIFY IT WORKS

Start hermes.

The plugin should log that Aphrodite is enabled.

If the binaries are missing, it logs the setup command and stays disabled until you run it.

EXPECT A log line saying Aphrodite is enabled, then two proxy listeners on :9797 (cache) and :9798 (token).

VERIFICATION GATE the two plugin routes fetch prebuilt binaries magic-byte verified against the in-tree SHA256SUMS.txt; the cargo and source routes build from source, so there is no downloaded binary to verify DAEMON LISTENING // :9797 cache proxy · :9798 token proxy

The install is done when two ports answer

Start hermes. A working install logs that Aphrodite is enabled and answers on :9797 (cache) and :9798 (token); a missing binary logs the setup command instead, and the plugin stays disabled until you run it.

All four routes converge on the same two directories - what changes on disk .

SRC: docs/install/index.md; docs/install/macos-linux.md

SRC: docs/install/windows.md (download.ps1)

04 // PERSISTENCE ARCHITECTURE // AFTER ANY ROUTE // THE LAYOUT

What changes on disk

THE LAYOUT
~/.hermes/
├── plugins/
│   └── aphrodite/          ← hooks-only: plugin.yaml + __init__.py loader
└── aphrodite/              ← canonical runtime home
    ├── aphrodite.toml      ← proxy/engine config (written by aphrodite setup)
    ├── BINARY_VERSION      ← binary version pin
    ├── binaries/
    │   ├── aphrodite       ← proxy binary
    │   └── libaphrodite_hermes.dylib   ← dylib the plugin loads
    ├── ccr.db              ← SQLite CCR store (created on first run)
    ├── directives/         ← active directive files
    └── logs/               ← proxy/engine logs

All four routes converge on the same two directories. Nothing else moves: no PATH edit, no shell profile, no system-wide install.

THE PLUGIN DIRECTORY

The plugin directory stays hooks-only: it carries just plugin.yaml and the __init__.py loader that registers hooks and tools, and the plugin never writes, downloads or modifies anything inside it.

THE RUNTIME HOME

Every runtime artifact lives in ~/.hermes/aphrodite/ : binaries, config, directives, the CCR database and logs. That split is what lets the catalog own the checkout while the binaries live somewhere else entirely.

On plugin startup layout_check.py checks toward this schema; installed layouts are already canonical, because aphrodite setup produced them.

PERSISTENCE 13 PATHS nothing outside ~/.hermes/
PATHWRITTEN BYWHAT IT HOLDS
~/.hermes/plugins/aphrodite/aphrodite setup, or the catalog installplugin.yaml + the __init__.py loader - hooks only, and the plugin never writes inside it
~/.hermes/aphrodite/aphrodite setupthe runtime home - everything below
~/.hermes/aphrodite/aphrodite.tomlaphrodite setup, only if none exists (unless --force)ports 9797/9798, the [flow] budget, the [compression] knobs, api_key
~/.hermes/aphrodite/BINARY_VERSIONaphrodite setupthe binary version pin
~/.hermes/aphrodite/binaries/download.sh / download.ps1, or aphrodite setupthe only directory that holds executables
~/.hermes/aphrodite/binaries/aphroditedownload.sh / download.ps1, or setup's copy stepthe proxy binary - verified before it lands
~/.hermes/aphrodite/binaries/libaphrodite_hermes.dylibthe same fetch, or setup's locate stepthe dylib the plugin loads (macOS)
~/.hermes/aphrodite/binaries/libaphrodite_hermes.sothe same fetch, or setup's locate stepthe shared library the plugin loads (Linux)
~/.hermes/aphrodite/binaries/libaphrodite_hermes.dllthe same fetch, or setup's locate stepthe shared library the plugin loads (Windows)
~/.hermes/aphrodite/directives/first startthe seven built-ins, materialized once
~/.hermes/aphrodite/ccr.dbfirst runthe SQLite CCR store the markers address
~/.hermes/aphrodite/logs/the proxy and the engineproxy and engine logs
~/.hermes/aphrodite/.stale-backup/the startup self-healstale plugin-source copies moved aside, bytes intact
8 STEPS WHAT APHRODITE SETUP DOES, IN ORDER
  1. Verifies hermes is on PATH (hermes --version) - fails fast with a clear error if not.
  2. Creates the runtime home: ~/.hermes/aphrodite/ and ~/.hermes/aphrodite/binaries/.
  3. Copies the binary into binaries/ with locked-down permissions - macOS copies go through the Gatekeeper-safe path above.
  4. Locates libaphrodite_hermes (and the optional core libaphrodite): local build and install dirs first, then the matching GitHub release with SHA-256 verification. A missing libaphrodite_hermes aborts setup; a missing core dylib only warns.
  5. Writes aphrodite.toml from an embedded template (--cache-port / --token-port, defaults 9797/9798) - only if none exists, unless you pass --force.
  6. Writes the hooks-only loader into ~/.hermes/plugins/aphrodite/: plugin.yaml + the __init__.py shim, always refreshed on re-run; a stale symlink from older installs is removed first.
  7. Writes the BINARY_VERSION pin into the runtime home.
  8. Runs hermes plugins enable aphrodite - a failed registration prints a warning, it does not abort.

SRC: docs/install/macos-linux.md (what changes after any of these)

SRC: docs/install/troubleshooting.md (proxy launch order)

05 // CONFIGURATION // /CONFIG.TOML

Configuration

Two files matter and they share no keys: aphrodite.toml for everything that tunes how Aphrodite compresses, and Hermes's own config.yaml for enabling the plugin.

# resolution order:
./aphrodite.toml then ~/.hermes/aphrodite/aphrodite.toml
# precedence:
env var > TOML > default

[compression]
auto_reload = false # opt-in

[flow]
budget_chars = 2600 # hard cap per turn
TEMPLATES IN THE REPO: aphrodite.toml.example + the embedded template

Two shipped files stay in sync: aphrodite.toml.example (the annotated reference) and the embedded template the binary ships with.

Keys not yet wired into the runtime are annotated DOCUMENTED BUT UNWIRED in the example - it is the source of truth for the documented surface.

TWO PARSERS, ONE FILE

The Rust HTTP proxy ( config/proxy.rs ) reads [[proxies]] ,[defaults] , the four hot-reload thresholds plus auto_expand / auto_expand_limit / max_request_body_size, and preview_max_chars. The Hermes dylib session ( config_loader.rs ) reads the [compression] engine keys, [defaults] model/api_url, [flow], [directives] ,[prompts] and [templates] .

NOT HERMES'S CONFIG.YAML

The only Aphrodite-relevant keys in config.yaml are plugins.enabled: [aphrodite] , added by hermes plugins enable , and optionally context.engine: aphrodite with its threshold. Ports, thresholds, preview style and prompt wording all belong in the toml.

Every knob the file exposes is explorable on /config/ , and the complete schema is /docs/config/aphrodite-toml/ .

SRC: aphrodite.toml.example (the annotated reference)

SRC: docs/config/aphrodite-toml.md; docs/config/env-vars.md

06 // VERIFICATION // FAILURES // WHAT THE MESSAGE MEANS

When it does not come up

Every install failure announces itself in one of six ways. The proxy's own stderr goes to ~/.hermes/aphrodite/proxy-stderr.log - read that file before anything else.

SYMPTOMCAUSEFIX
the plugin logs the setup command and stays disabledbinaries missing from ~/.hermes/aphrodite/binaries/bash download.sh (or pwsh ./download.ps1) in the plugin folder
download.sh stops at the verify stepchecksum does not match SHA256SUMS.txtre-run the script; check network access to GitHub Releases
no API key configuredno aphrodite.toml in the working directory--api-key or APHRODITE_API_KEY
port already in useanother proxy already bound to 9797/9798tail proxy-stderr.log; APHRODITE_CACHE_PORT / APHRODITE_TOKEN_PORT
the binary is SIGKILLed on launch (macOS)quarantine, or no Xcode Command Line Toolsre-run aphrodite setup - ditto, xattr -c, ad-hoc codesign
a health-poll warning after launcha port did not answer within 5 secondsthe warning names the port; check proxy-stderr.log

Before launching, the plugin probes both ports' /health endpoints and skips the launch when another process already answers a confirmed Aphrodite health body - so a second Hermes session does not start a second proxy pair. A failed registration is a warning, never an abort.

SRC: docs/install/troubleshooting.md (checklist, in order)

SRC: docs/install/index.md (which artifact do you need)

07 // PROXY // THE STANDALONE LANE

Run it without Hermes

The same compression engine runs as a standalone proxy: point any OpenAI-compatible client's base_url at http://localhost:9798 (token) or :9797 (cache), and responses compress over plain HTTP.

Invoked without an aphrodite.toml, the binary needs --api-key or APHRODITE_API_KEY. That is a startup requirement, not an upstream call - a placeholder is enough to prove the binary serves.

PORTMODEWHAT IT SERVES
9797cachethe cache proxy - threshold 2048 bytes by default
9798tokenthe token proxy - threshold 256 bytes by default

START // the binary, no Hermes

./aphrodite --api-key «redacted:sk-...» --listen 127.0.0.1:9798

The key is redacted here on purpose: a placeholder is enough, because the flag is a startup requirement rather than a credential the binary verifies.

CHECK // the health endpoint

curl http://127.0.0.1:9798/health

EXPECT // the health body

{"status":"healthy","ccr":true,"mode":"token","version":"<current version>","fill_pct":...}
aphrodite: no API key configured - set APHRODITE_API_KEY env var or api_key in aphrodite.toml STDERR
No aphrodite.toml in the working directory - the CLI mode has no config to read a key from, so the flag (or the env var) is the whole requirement.
REVEALED

You do not need a real Hermes session, a real Hermes install or a real upstream API key to confirm the binary itself works: starting the proxy and hitting /health never calls upstream. Set APHRODITE_NO_AUTO_LAUNCH=1 if you launch it yourself and do not want the plugin to start a second pair - there is no auto_start key in either config file.

The full surface is documented on the proxy pages: architecture , compression , handlers , retry .

SRC: docs/install/troubleshooting.md (verify the proxy without Hermes)

SRC: docs/proxy/architecture.md; docs/proxy/compression.md

08 // UNINSTALL // THREE COMMANDS AND A DIRECTORY

Uninstall

Disable the plugin, remove the loader, then stop anything still running. Every command is its own copy control, so a reader never pastes the sentence about the command.

BASH - macOS / Linux
  1. 01 Disable the plugin
    hermes plugins disable aphrodite
  2. 02 Remove the loader
    rm -rf ~/.hermes/plugins/aphrodite
  3. 03 Stop anything still running
    pkill -f "aphrodite" 2>/dev/null || true
POWERSHELL - Windows
  1. 01 Disable the plugin
    hermes plugins disable aphrodite
  2. 02 Remove the loader
    Remove-Item "$env:USERPROFILE\.hermes\plugins\aphrodite" -Recurse
  3. 03 Stop anything still running
    Get-Process aphrodite -ErrorAction SilentlyContinue | Stop-Process

Remove ~/.hermes/aphrodite/ as well to clean up the binaries, config, CCR database and logs the download scripts or aphrodite setup wrote.

On Windows the runtime home is %USERPROFILE%\.hermes\aphrodite\ .

SRC: docs/install/macos-linux.md (uninstall); docs/install/windows.md (uninstall)