quin command line
The quin CLI for the Quin Local API — store a token with DPAPI, list profiles, open and drive browsers, run workflows, follow jobs and events.
quin is a command-line client of the Local API. It is
installed with the Python SDK and is only a client: every call is
authorised by Quin with your token. Output is a human-readable table by default; add --json to any
command for machine-readable output.
Global options
quin [--base-url URL] [--timeout SECONDS] COMMAND ...
quin --version| Option | Notes |
|---|---|
--base-url | Local API URL, for example http://127.0.0.1:50380. Default: QUIN_API_URL, then the discovery file |
--timeout | HTTP timeout in seconds |
Store the token
quin auth set-token # hidden prompt
<command that prints the token> | quin auth set-token --stdin # e.g. from a password manager CLI
quin auth clear # remove the stored tokenset-token accepts only a Quin Local API token (qlk_…). On Windows it is stored for your Windows
user with DPAPI in %APPDATA%\quin-camoufox-sdk\token.bin; the plaintext is never written to disk
and never printed. Other Windows users cannot decrypt it. If QUIN_API_TOKEN is set, it takes
precedence over the stored token (the command tells you so).
Commands
| Command | What it does |
|---|---|
quin api status | API and Quin versions, signed-in account, automation bridge |
quin auth set-token [--stdin] | Store a token (DPAPI) |
quin auth clear | Remove the stored token |
quin profiles list [--q TEXT] [--group ID] [--tag TAG] [--kind local|cloud] [--page N] [--page-size N] [--all] | List profiles; --all fetches every page |
quin browser open <profile-id> [--url URL] [--no-wait] [--wait-timeout SECONDS] | Open (or attach to) a profile's browser; --no-wait returns a job id at once |
quin browser list | Open sessions |
quin browser action <session-id> <action> [--css SEL | --locator JSON] [--tab t1] [--timeout-ms N] [--param K=V ...] | Run one action |
quin browser close <session-id> [--no-sync] | Close; waits for the Quin Cloud save unless --no-sync |
quin rpa list | Workflows |
quin rpa run <workflow-id> [--profile ID ...] [--group ID] [--input K=V ...] [--concurrency N] [--wait] [--wait-timeout SECONDS] | Run a workflow; a workflow that uses the browser needs --profile or --group |
quin jobs status <job-id> | Show a job |
quin jobs cancel <job-id> | Cancel a job |
quin events [--kind KIND ...] [--last-event-id ID] | Stream events until Ctrl+C |
--param and --input values are parsed as JSON when possible (--param full_page=true,
--param limit=20), otherwise kept as text.
Examples
quin api status
quin profiles list --kind cloud --all
quin browser open AbCd1234 --url https://example.comSESSION PROFILE KIND STATE OPENED BY CONTROLLED BY
s_3f9c1d2e8a7b6c5d AbCd1234 local RUNNING apiquin browser action s_3f9c1d2e8a7b6c5d title
quin browser action s_3f9c1d2e8a7b6c5d click --locator '{"role": "button", "name": "Accept"}'
quin browser action s_3f9c1d2e8a7b6c5d text --css h1 --timeout-ms 5000
quin browser action s_3f9c1d2e8a7b6c5d screenshot --param full_page=true --param name=home.png
quin browser close s_3f9c1d2e8a7b6c5dquin rpa run wf_123 --profile AbCd1234 --profile EfGh5678 --input query=shoes --wait --json
quin jobs status task_1d2e3f4a5b6c
quin events --kind run.updated --kind task.finishedExit codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | API or action error (also rpa run --wait when the task did not end COMPLETED) |
| 2 | Usage error, invalid locator, URL or parameter |
| 3 | Local API not reachable ("Quin Local API is not running: enable it in Quin → Settings → Local API") |
| 4 | Authentication error (no token, invalid, expired or revoked) |
| 130 | Interrupted with Ctrl+C |
Errors are printed to standard error as error: <code>: <message>; with --json the error details
follow as JSON.
Scheduling scripts with Windows Task Scheduler
The CLI and SDK scripts can run from Windows Task Scheduler. This is an ordinary scheduled program, not a Quin feature, and it has the same conditions as any Local API client:
- Quin must be running and signed in, with the Local API enabled, at the scheduled time; otherwise the script exits with code 3.
- Run the task as the same Windows user who runs Quin, with Run only when user is logged on
(
schtasks /IT), so that the DPAPI-protected token and Quin's files are available. - Never put a token on the task's command line; task definitions are readable by administrators.
For RPA workflows, RPA Plus's own schedules are usually simpler; they also run only while Quin is open and signed in.