API keys provide programmatic access to the Open Animate platform — use them in CI/CD pipelines, automated workflows, or any environment where browser login isn’t practical.
Create a key
oanim api-keys create --name "ci-pipeline"
Output:
Name: ci-pipeline
Prefix: anim_a1b2c3d4
Key: anim_a1b2c3d4_e5f6g7h8i9j0k1l2m3n4o5p6
⚠ Save this key — it will not be shown again.
The full key is only shown once at creation time. Store it securely.
List your keys
Shows all your keys with name, prefix, creation date, and last-used date.
Revoke a key
oanim api-keys revoke <key-id>
Immediately invalidates the key. Any requests using it will fail.
Using API keys
Environment variable (recommended)
export ANIMATE_API_KEY=anim_a1b2c3d4_e5f6g7h8...
oanim assets gen-image --prompt "gradient" --out bg.png
CI/CD login
oanim login --token $ANIMATE_API_KEY
This saves the key to ~/.oanim/credentials.yaml so subsequent commands use it automatically.
Resolution order
When making API calls, the CLI resolves credentials in this order:
ANIMATE_API_KEY environment variable
api_key in ~/.oanim/credentials.yaml (saved by oanim login)
Set the env var in your CI secrets to avoid needing oanim login in pipelines.
API keys use the anim_ prefix followed by a short identifier and a secret:
anim_{8 chars}_{24 chars}
Only the prefix is stored on the server — the full key is hashed with SHA-256. This means if you lose it, you’ll need to create a new one.
Limits
Each account can have up to 10 API keys. Revoke unused keys to make room for new ones.