CLI
Security
Handle Sume CLI secrets, media outputs, paid calls, and agent automation safely.
We designed the Sume CLI for agent use. But CLI output can still contain sensitive data or data that users own. Be careful with auth, job, and media output.
Secrets
Do not print or commit these items:
SUME_API_KEY,- local
~/.sume-com/config.json, - raw provider payloads.
For automation, use environment variables or secret managers:
export SUME_API_KEY="sume_live_..."
sume account get --jsonFor local development, the best choice is sume login. The CLI signs in with
the Sume sign-in and stores a one-hour access token and a refresh token (no API
key); sume logout revokes them. Manual keys for scripts are in the
API Keys dashboard.
Write and paid gates
You must add a confirmation flag to current write commands.
| Gate | Use for |
|---|---|
--confirm-submit | Non-paid writes such as job cancellation. |
--confirm-paid | Provider-backed Avatar 1.0 and Avatar Video 1.0 runs that can reserve or spend credits. Image/Video/Music are API-first at this time. Apply the same confirmation discipline in your HTTP client. |
Agents must confirm the intent of the user. When agents do a test, they must submit one bounded job first. Agents must recover the jobs that already exist and must not blindly retry paid commands.
Media URLs
Sume job results can include first-party media URLs. These URLs are public, but they are still user data.
When you report results:
- summarize the media counts and the file types,
- when possible, use local filenames, not full remote URLs,
- redact query strings and private identifiers,
- do not dump large raw result payloads.
Bug reports
When they help, include sanitized command names, error codes, request ids, and job ids. Do not include API keys, signed URLs, full private media URLs, raw provider payloads, emails, or workspace/user ids. The only exception is when engineering explicitly asks for them.