Installation
Prerequisites
Section titled “Prerequisites”Install Nix if you don’t have it:
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- installBinary Cache (recommended)
Section titled “Binary Cache (recommended)”Adding the GHOST binary cache avoids a ~15 minute compile from source. (This step won’t be needed once GHOST lands in nixpkgs.)
If you installed Nix with the
Determinate Systems installer
(recommended), add to /etc/nix/nix.custom.conf:
echo 'extra-substituters = https://ghost-ai.cachix.org' | sudo tee -a /etc/nix/nix.custom.confecho 'extra-trusted-public-keys = ghost-ai.cachix.org-1:c0BYnkFKE8rYzkusZD5+l5D5Vcl8WRQMXV1zVWjxCBI=' | sudo tee -a /etc/nix/nix.custom.confsudo systemctl restart nix-daemonecho 'extra-substituters = https://ghost-ai.cachix.org' | sudo tee -a /etc/nix/nix.custom.confecho 'extra-trusted-public-keys = ghost-ai.cachix.org-1:c0BYnkFKE8rYzkusZD5+l5D5Vcl8WRQMXV1zVWjxCBI=' | sudo tee -a /etc/nix/nix.custom.confsudo pkill nix-daemonStandard Nix (non-Determinate)
If you installed Nix via the official installer, use /etc/nix/nix.conf instead
of nix.custom.conf.
NixOS
Add the cache to your system configuration:
nix.settings = { extra-substituters = [ "https://ghost-ai.cachix.org" ]; extra-trusted-public-keys = [ "ghost-ai.cachix.org-1:c0BYnkFKE8rYzkusZD5+l5D5Vcl8WRQMXV1zVWjxCBI=" ];};Install and Run
Section titled “Install and Run”-
Install GHOST
Terminal window nix profile add github:mrtolkien/GHOST/latest -
Run the onboarding wizard
Terminal window ghost initThe wizard configures your LLM provider, Discord bot, and all services. See Onboarding for details.
-
Verify your setup
Terminal window ghost statusConfirms your config is valid, the daemon is running, and all services are reachable.
Install Channels
Section titled “Install Channels”| Command | What you get |
|---|---|
nix profile add github:mrtolkien/GHOST/latest | Latest release (recommended) |
nix profile add github:mrtolkien/GHOST/main | Bleeding edge (latest commit) |
nix profile add github:mrtolkien/GHOST/v0.5.0 | Pinned version |
Updating
Section titled “Updating”ghost updateFrom Source
Section titled “From Source”For development or manual setups, clone and build with Nix:
git clone https://github.com/mrtolkien/ghost.gitcd ghostnix build./result/bin/ghost versionOr install directly into your profile from a local checkout:
nix profile install .