Requirements

  • Rust stable with Cargo. rust-toolchain.toml requests rustfmt and Clippy.
  • macOS 13+ on Apple Silicon for the native app; Xcode Command Line Tools.
  • Codex CLI available on PATH and authenticated for Codex features.
  • Internet access for dependency installation, Codex, and first-use model downloads.

Python and PyTorch are not required by the current Rust application. The CLI is a separate Cargo package; building the entire workspace also builds macOS-specific GUI code. Other CLI platforms are not covered by the Mac build instructions or Mac CI.

CLI

From the repository root:

cargo build --release --locked -p ekphrasis
./target/release/ekphrasis --help

Add target/release to PATH or use the absolute binary path. Set EKPHRASIS_ROOT to a library folder outside the checkout. Without --root or this variable, the CLI uses the current directory. The library is not the source tree.

export EKPHRASIS_ROOT="$HOME/Pictures/Ekphrasis"
ekphrasis doctor

doctor checks Codex, model availability, and write access. Missing Codex or models does not mean every local adjustment is unavailable. Models are downloaded on demand.

Mac app

From the repository root:

bash scripts/bundle-mac.sh
open target/bundle/Ekphrasis.app

The script builds for aarch64-apple-darwin, creates target/bundle/Ekphrasis.app, and applies an ad-hoc signature. This is not a universal Intel/Apple Silicon build or an Apple-notarized release. You can move the bundle to Applications. If macOS blocks your own trusted build, use the system’s Open/Open Anyway flow; do not disable Gatekeeper globally.

Choose a new empty library folder or an existing Ekphrasis library. Presets are seeded into a new library. Settings → Environment shows dependency status. The UI uses Russian for a Russian system language and English otherwise; restart after changing the system language.

Models

The application downloads missing ONNX files into <library>/models/ when needed. Inference uses ONNX Runtime on CPU. Opening the mask tab can warm models in advance. Initial downloads and startup are slower than subsequent uses.

Exact filenames and upstream sources are listed in third-party notices. Weights are not included in the repository and are not relicensed by Ekphrasis.

Troubleshooting

  • Codex not found: verify it runs from a terminal. Restart the Mac app after installing it and check Settings → Environment.
  • AI edit fails: verify Codex authentication, account access, image-generation availability, and connectivity. Local tools can be used independently.
  • Model download fails: check connectivity to GitHub and Hugging Face and write permissions for the library. Do not rename unrelated models to expected filenames.
  • Photo busy: wait for its current job to finish before changing or deleting it.
  • Unexpected library: pass an absolute --root and inspect EKPHRASIS_ROOT.
  • Recipe renderer unavailable: the current Mac bundle does not ship a CLI renderer, and renderer discovery currently accepts only the running ekphrasis executable. Use the CLI for recipe-based edits/style compilation until bundling and sibling renderer discovery are implemented. Adding the CLI to PATH alone does not fix this.

For older Photo Codex installations, settings/cache/log directories are migrated to Ekphrasis on first launch. Update scripts to use ekphrasis and EKPHRASIS_*, and register MCP again with the new binary path.