How do I take Rarity off my server?

Run the uninstall command on the server as root. It stops and removes Rarity's service and every agent container it ran, and asks before it deletes your agents' conversations. Docker stays installed.

Removing a server in the dashboard leaves the machine as it is. The uninstall command is what takes Rarity off it. It needs no token and talks to nothing but the server's own systemd and Docker.

Run it

  1. Sign in to the server over SSH.
  2. Run the command, as root or through sudo. It's also shown when you remove the server.
  3. Answer whether to delete your agents' data when it asks.

The command is curl --proto '=https' --tlsv1.2 -fsSL 'https://api.rarity.cc/daemon/v1/uninstall.sh' | sudo bash.

What it removes

  • The rarity-daemon service, which it stops and disables, and its systemd unit.
  • The service itself, /usr/local/bin/rarity-daemon, and the previous version kept beside it.
  • Every container Rarity's service ran, and their volumes.
  • Everything under /var/lib/rarity, including the service's token, each agent's settings and the copies of your API key and bot tokens.

What it asks about

Your agents' data, their conversations, is deleted only if you say yes when it asks. To decide in advance, add --delete-data or --keep-data after bash, as in sudo bash -s -- --keep-data. When it can't ask, because it isn't run from a terminal, it keeps the data.

What stays

Docker and the images it downloaded stay installed. Remove them yourself if you no longer need them. Running the command again on a clean server finds nothing left and finishes without an error.

Your Anthropic API key and bot tokens are still valid after this. If you no longer use them, delete the key at Anthropic and reset the bots' tokens.