Skip to main content

Overview

Self-hosted Annie Mei has two env surfaces:
  • the main annie-mei bot service
  • the companion auth service for AniList OAuth
Use this page as the source of truth when you build .env files for both services.

Shared values

These values should stay aligned across the bot and auth service.

Bot service

Required

Optional

Auth service

Required

Optional

Example local configuration

Bot .env

Auth .env

The bot and auth service must point at the same PostgreSQL database. The auth service owns the OAuth tables, while the bot owns annie_mei.user_settings and annie_mei.guild_settings. The bot reads oauth_credentials from the shared database for /whoami, /unregister, and member status overlays.

Where these values are used

  • Bot service references come from annie-mei/src/main.rs and annie-mei/src/utils/oauth.rs
  • Auth service references come from auth/src/main.rs and auth/src/routes/healthz.rs