CLI reference
Every deskwink command with its options and exit codes. Run deskwink help to see the same list on your computer.
Install with npm install -g @deskwink/cli. Options in square brackets are optional; <angle brackets> are values you fill in. This page follows the command list of
the version in beta; deskwink help is always the final word for the version you have.
Start, stop and check
deskwink launch [--json] [--no-browser] [--foreground] [--passphrase] The main command. Pairs this computer the first time, starts DeskWink in the background, and waits until it is connected. The very first time on a computer it turns everything on and asks no questions: your AI can read and change files anywhere outside protected places; files, commands and the browser are on (desktop control and reading the clipboard too on Windows); the approval level lets everything through (3, no end date); the DeskWink website may change these settings; and DeskWink starts when you sign in. At the end it lists what is on and ends with where to limit it: your DeskWink settings (the Computers page), or deskwink remote-settings off and deskwink autostart disable. Each launch also sets up the link for the DeskWink browser extension when Chrome or Edge is installed, so the extension connects by itself. Pairing the same computer again after deskwink logout, or after you removed it on the DeskWink website, is a fresh start: launch turns everything on in the same way (starting at sign-in stays off if you ran deskwink autostart disable), keeps a copy of the earlier settings next to them and prints where. A computer that is still paired keeps its access, abilities and approval level; the first launch of 0.4.0 turns website settings on once (it prints a line when run in a terminal, and DeskWink emails you) and turns starting at sign-in on unless you turned it off with deskwink autostart disable. Run inside a command DeskWink itself started, launch turns nothing on. Safe to run again: if DeskWink is already running it only prints the status. --no-browser does not open the pairing link for you. On a computer with no display, or over SSH, it never tries to open a browser and prints the link and code to use on another device. --foreground keeps DeskWink in this terminal (same as deskwink run). --passphrase (Linux) asks for a passphrase that protects this computer’s key; you then need it at every start. The environment variable DESKWINK_KEY_PASSPHRASE does the same without a prompt.
deskwink status [--json] [--wait connected --timeout 600] Shows the state, account (email partly hidden), computer name, folders, abilities and version. --wait connected blocks until the computer is connected or the timeout in seconds runs out (default 600).
deskwink stop The local kill switch. DeskWink refuses new work at once, cancels work in progress, disconnects, and exits.
deskwink restart Stops DeskWink, then launches it again.
deskwink autostart enable|disable|status deskwink launch turns this on, also on a computer set up with an older DeskWink. enable makes DeskWink start each time you sign in to this computer: a hidden launcher in your Startup folder on Windows, a LaunchAgent in ~/Library/LaunchAgents on macOS, a systemd user service on Linux. disable removes it at any time and is remembered, so a later deskwink launch never turns it back on; only enable does, which needs an interactive terminal and asks you first. deskwink logout removes it too. If the computer is no longer paired, DeskWink started at sign-in stops at once without asking for a pairing code. On Linux, starting before you sign in needs loginctl enable-linger, which is your own choice.
deskwink run Runs DeskWink in this terminal with logs on screen, for debugging. Ctrl+C stops it.
Folders
Folders are added, widened or made writable on this computer, or on the DeskWink website where you allowed that. The console can always remove them at once; where the website may not change settings, it asks for a new one, which you then confirm here with deskwink settings confirm.
deskwink folders list Lists the folders your AI can reach, and whether each is read-only or allows proposed changes.
deskwink folders add <path> [--write] [--name <n>] [--allow-broad] Shares a folder. Read-only unless you add --write. --name sets the display name. --allow-broad is needed for your home folder and only works in an interactive terminal; whole drives and system folders cannot be added.
deskwink folders remove <name|path> Stops sharing a folder.
How much your AI can reach
A new computer starts with the whole computer readable and changeable. One set up with an older DeskWink gets the same once, on its first launch of DeskWink 0.6.0 or later, and keeps whatever you set afterwards. To keep your AI to a few folders, run deskwink access read folders and share them with deskwink folders add (on the website: Shared folders only). You change it here, or on the DeskWink website where you allowed that (otherwise the website asks and you confirm here). The console can always take access back at once. The file tools can’t open protected places (system folders, SSH keys, cloud credentials, browser profiles, password vaults) in any mode. Commands run as you and can reach whatever your account can; turn Commands off or ask for approval to limit that.
deskwink access Shows how much of this computer your AI can read and where it can propose changes.
deskwink access read folders|computer computer lets your AI list, read and search every fixed drive, not only the shared folders. Needs an interactive terminal and the phrase it shows. folders takes it back and does not need a terminal.
deskwink access write off|folders|computer off allows no changes at all, folders only the folders shared with --write, computer anywhere on the computer (the default for a new computer; turning it on yourself needs reading the whole computer too, an interactive terminal and its own phrase). Each change is still staged and backed up first.
Abilities and approvals
deskwink capabilities list Shows which abilities are switched on for this computer.
deskwink capabilities enable files|shell|browser|desktop|clipboard_read Turns an ability back on: files, shell (running commands), browser, desktop and clipboard_read (Windows only; clipboard_read needs desktop first). A new computer has them all on (desktop and clipboard_read on Windows only). You can also turn them on in your DeskWink settings on the website where website settings are on. Only works in an interactive terminal, and asks you to type this computer’s name. It is refused when run from a program DeskWink started. Running commands is included in every plan.
deskwink capabilities disable <capability> Turns an ability off. Does not need an interactive terminal. Turning off shell ends all running commands.
deskwink approvals list [--json] Lists commands your AI has asked to run on this computer and that are waiting for you.
deskwink approvals approve <id> Shows the full command and folder, then asks you to confirm. Only works in an interactive terminal. The id starts with apr_ or exe_.
deskwink approvals reject <id> Rejects a waiting command. Does not need an interactive terminal.
deskwink approvals level [0|1|2|3] [--for 1h] A new computer starts at 3, with no end date. Level 0 makes every change and command wait for you, level 1 applies small file changes without asking (new files and edits of up to 20 lines in files under 64 KiB), level 2 every file change, level 3 everything the abilities that are on allow, commands and desktop control included. Changes are still staged, backed up and logged at every level. In your browser, the extension still asks you before a new site and before sensitive steps such as signing in, and payment steps are refused. Turning a level up needs an interactive terminal (level 3 also a typed phrase); --for limits it (30m, 1h, 8h, 2d), after which it goes back to 0. Turning it down needs nothing. The console can always turn it down, and turn it up too on a computer where you allowed website settings.
Settings from the DeskWink website
On a computer where website settings are on (the default), changes you make on the DeskWink website take effect at once, and you can approve commands and desktop control there too; every change that gives your AI more needs a recent sign-in and is emailed to you. On a computer where you turned them off, the website can only ask, and nothing changes until you confirm it on that computer. Either way nothing is queued while the computer is offline, and taking access away always works.
deskwink remote-settings on|off|status Whether the DeskWink website may change this computer’s settings (folders, the whole computer, abilities, the approval level) and approve commands and desktop control for it. On by default for a new computer; the first launch of 0.4.0 also turns it on once for a computer set up earlier, and says so. off takes effect at once, needs nothing, and is remembered, so a later deskwink launch never turns it back on. on needs an interactive terminal, asks you first, and is refused from a program DeskWink started.
deskwink settings [list] [--json] Lists the requests from the console that are waiting for you, with the direct command that does the same.
deskwink settings confirm [<id>] Shows exactly what will change, then asks the same questions as the direct command (the phrase for the whole computer or full auto, this computer’s name for an ability). Only works in an interactive terminal and is refused from a program DeskWink started. Without an id it takes the only request waiting.
deskwink settings reject [<id>] Drops a request. Nothing changes. Does not need an interactive terminal.
Browser and desktop
deskwink browser setup [--remove] [--browser chrome|edge|all] Lets the optional DeskWink browser extension talk to DeskWink on this computer. deskwink launch does this by itself when Chrome or Edge is installed, so you normally never type it. It registers a small helper in your own user profile (on Windows, your user registry); nothing starts at boot and no port is opened. Removing the extension from your browser needs nothing else: the helper does nothing without it, and deskwink logout removes it. --remove removes it now, and launch then leaves it alone until you run deskwink browser setup again. See Browser extension.
deskwink desktop deny list Shows the applications you have told desktop control to stay away from, and the ones that are always off limits (password managers, system security screens).
deskwink desktop deny add <app> Adds a program to your list. Adding needs no interactive terminal, because it only narrows what your AI can touch.
deskwink desktop deny remove <app> Takes a program off your list. Only works in an interactive terminal, and is refused when run from a program DeskWink started.
Undo and logs
deskwink restore <execution-id> [--force] Puts back the original of a file DeskWink changed, from the local backup (kept for 7 days). If the file was changed again since, it stops unless you add --force.
deskwink logs [--lines 50] [--follow] Shows the local log. -f is short for --follow. The log holds metadata only, never file contents or command text.
deskwink doctor [--json] [--report] Checks your setup and explains what is wrong, including where the device key is kept (on Linux: the desktop keyring, a key file only your user can read, or a passphrase-protected file). --report writes a diagnostic bundle with personal details removed that you can send to support.
Account and computers
deskwink logout Removes this computer from your DeskWink account, deletes its key from this computer, and stops DeskWink. Pairing it again later with deskwink launch is a fresh start, with everything on.
deskwink devices Prints the link to manage your computers in the console. Renaming and removing other computers is done there.
deskwink version Prints the version. --version and -v do the same.
deskwink help Prints the command list. --help and -h do the same.
Machine-readable output
launch, status and doctor accept --json and print one JSON document, which coding agents and scripts can read. launch and
status use the same shape. state is one of stopped, awaiting_pairing, connecting, connected, suspended,
revoked or error.
{
"schema": "deskwink.status.v1",
"state": "awaiting_pairing",
"version": "0.2.0",
"device": null,
"account": null,
"pairing": {
"verification_uri_complete": "https://app.deskwink.com/device?code=DW-7KQ4-M2XP",
"user_code": "DW-7KQ4-M2XP",
"expires_at": "…"
},
"folders": [],
"capabilities": ["files"],
"mcp_url": "https://mcp.deskwink.com/mcp",
"next_step": "Open the pairing link and confirm this computer.",
"error": null
} Exit codes
| Code | Meaning |
|---|---|
0 | Success. This includes launch returning while it still waits for you to pair. |
1 | Error. Run deskwink doctor for details. |
2 | Wrong command or option. |
4 | status --wait ran out of time. |
Where DeskWink keeps its files
| System | Folder |
|---|---|
| Windows | %LOCALAPPDATA%\DeskWink |
| macOS | ~/Library/Application Support/DeskWink |
It holds the settings, the list of shared folders, logs (kept 14 days, metadata only) and backups of files DeskWink changed (kept 7 days). DeskWink never lets your AI read or change this folder.
A command for updating (deskwink update) is planned but not part of the beta. To update, run
npm install -g @deskwink/cli@latest and then deskwink restart.
Something unclear or out of date? Write to [email protected].