Get it
The CLI comes with a widar workspace: widar’s sales team provides it. Every command is also a plain HTTP call to https://api.widar.com, shown as curl on each page, so a script needs nothing installed.
Your key
The CLI reads the key from WIDAR_API_KEY, else from your system’s keychain after widar auth login. A key is never a flag, so it stays out of your shell history. widar auth status shows which key is used, its workspace and its mode.
widar auth login
widar auth statusMark and check from a terminal
widar markings create output.png --system-id sys_4kT9qWm2RbXe --output marked.png
widar verifications create marked.png --wait 10 | jq '.findings[] | {kind, outcome}'
widar check shared-photo.jpg --verify-page lumen-imageCommands
Every action and read is a command, named on its page beside its API call and MCP tool. widar <resource> --help lists a resource’s commands; widar <resource> <verb> --help shows a command’s arguments, flags and docs link.
Output and errors
- The output is the API’s JSON exactly as sent, so a script or an agent reads the API’s own answer.
- A refusal prints the API’s error with its
code,messageandrequest_id, and exits with1. - A file answer (a marked file, a signed result, an evidence pack) is saved under its own name;
--output <path>chooses where,--output -writes to stdout. - Calls are retried after a
429, any5xxor a lost connection, waiting as asked, with the same idempotency key, so a write never runs twice. widar events tailfollows the workspace’s events, one JSON line each.widar api <METHOD> <path>calls any route with your key.