Administrator Registration
FinClaw creates users through identity-service's POST /auth/register; administrator privileges are controlled by ADMIN_EMAILS in .env.
Registration Script
bash
# Positional arguments
./scripts/register-admin.sh admin@example.com <password>
# Environment variable form
ADMIN_EMAIL=admin@example.com ADMIN_PASSWORD=xxx ./scripts/register-admin.sh
# Specify the gateway address (defaults to http://localhost:26100 or reads from .env)
./scripts/register-admin.sh --url https://your-domain.comHow It Takes Effect
- Make sure the target email has been added to
ADMIN_EMAILSin.env(comma-separated). - After changing
ADMIN_EMAILS, restart the services for it to take effect.
