Skip to content
中文

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.com

How It Takes Effect

  1. Make sure the target email has been added to ADMIN_EMAILS in .env (comma-separated).
  2. After changing ADMIN_EMAILS, restart the services for it to take effect.

Digital Ecosystem Infrastructure.