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 annie_auth.oauth_credentials and annie_auth.oauth_sessions, while the bot owns annie_mei.user_settings and annie_mei.guild_settings. The bot reads annie_auth.oauth_credentials for /whoami and member status overlays, and /unregister deletes matching rows from both auth-owned tables.
Where these values are used
- Bot service references come from
annie-mei/src/main.rs and annie-mei/src/utils/oauth/mod.rs
- Auth service references come from
auth/src/main.rs and auth/src/routes/healthz.rs
Related pages