Browser login
~/.oanim/credentials.yaml (file permissions: 0600).
Your browser opens
api.oanim.dev/api/v1/auth/cli/login?port=<port> where you sign in via Clerk OAuth.After authentication, the platform generates a new API key (prefixed
anim_) and sends it back to the local server.Token-based login
For CI/CD environments or headless use:Credential resolution
When the CLI makes API calls, credentials resolve in this order:| Priority | Source | Description |
|---|---|---|
| 1 | ANIMATE_API_KEY env var | Environment variable — highest priority |
| 2 | api_key in ~/.oanim/credentials.yaml | Saved by oanim login |
| Priority | Source | Description |
|---|---|---|
| Special | ANIMATE_FAL_KEY env var | Goes direct to fal.ai, skipping the platform entirely |
Check who you’re logged in as
Log out
~/.oanim/credentials.yaml.
Configuration
The API URL defaults tohttps://api.oanim.dev. Override it for self-hosted instances:
ANIMATE_API_URLenvironment variable (highest priority)api_urlfield in~/.oanim/config.yaml
ANIMATE_API_URL env var → config.yaml → https://api.oanim.dev.