Install with your AI agent
Already use a coding agent such as Claude Code or Codex? Give it one sentence and it installs and starts DeskWink for you. You confirm the pairing yourself.
Give your agent this sentence
Install DeskWink on this computer by following https://deskwink.com/install.md. When it prints a pairing link, show it to me and wait for me to confirm. Paste it into a coding agent that can run commands on this computer, for example Claude Code, Codex, Antigravity or Cursor. The agent reads https://deskwink.com/install.md, checks Node.js, installs the DeskWink CLI and starts it.
What you do
- Approve any request from your agent to install Node.js, if it is missing.
- When the agent shows you a pairing link and code, open the link in your browser, sign in, and confirm the code. Only you can do this step.
- Add DeskWink to your AI app: see Connect your AI.
What your agent does, and what it must not do
It will
- check that you are on Windows 10 or 11, macOS 13 or later, or Linux;
- check for Node.js 22 or newer, and ask you before installing it;
- run
npm install -g @deskwink/cli; - run
deskwink launch --jsonand show you the pairing link and code; - wait until the computer shows as connected, tell you what is on (everything, with nothing waiting for approval) and how to limit it in your DeskWink settings.
It must not
- ask for, type or store your DeskWink or Google password;
- share a folder you did not name;
- add your home folder or a whole drive;
- change what your AI may do, on the computer or in your DeskWink settings, confirm a settings request for you, or add its own start-up service;
- choose or store a passphrase for your DeskWink key;
- use any other installer, or pipe a script from the internet into a shell.
These rules are not left to the agent. The commands that widen access refuse to run without a person at an interactive terminal, and pairing needs you to be signed in in a browser. A first
deskwink launch run by an agent sets the same defaults as anyone else’s, with no questions: everything on (the whole computer, commands, your browser and, on Windows, desktop control),
nothing waiting for approval, start at sign-in, and the DeskWink website allowed to change these settings. Limit any of it afterwards in your DeskWink settings, or on the computer with
deskwink remote-settings off and deskwink autostart disable.
The exact instructions your agent reads
The file is plain Markdown at /install.md. You can read it before you hand it to an agent.
Show /install.md
# Install DeskWink (instructions for coding agents)
DeskWink lets the AI app the user already uses (for example ChatGPT or Claude, added as a custom connector) work with this computer. You are a coding agent helping the user install it. Follow these steps in order.
## What the first launch turns on (tell the user before step 4)
Everything is on by default: the whole computer, commands, the user's browser and (on Windows) desktop control, with nothing waiting for approval. The user can limit any of it in their DeskWink settings. The first `deskwink launch` on a new computer asks no questions, whether you run it or the user does. It turns on:
- reading and changing files anywhere on this computer. The file tools can't open protected places (SSH keys, credential files and cloud keys, password stores, browser profiles, DeskWink's own files, system folders). Commands run as the user and can reach whatever the user's account can; turning Commands off or asking for approval limits that;
- running commands, the user's browser (through the DeskWink extension) and, on Windows, desktop control and reading the clipboard;
- the approval level that lets everything through, with no end date: changes and commands do not wait for the user. Every change is still staged, backed up and shown in Activity;
- the DeskWink website, signed in as the user, can change this computer's settings and approve requests for it (each change made there is emailed to the user). The user turns this off with `deskwink remote-settings off`;
- DeskWink starts when the user signs in to this computer. The user turns it off with `deskwink autostart disable`;
- if Chrome or Edge is installed, the link for the DeskWink browser extension is set up, so the extension from the Chrome Web Store connects by itself once the user installs it.
What stays in place at every setting: payment and transfer steps in the browser are refused; the extension asks the user before the AI uses a new site and before sensitive steps such as signing in, deleting or sending; desktop control pauses when the user moves the mouse and never touches password managers or Windows security screens; `deskwink stop` stops everything at once.
## Rules (read these first)
- Never ask for, type, or store the user's DeskWink or Google password. Pairing this computer is done by the user, in their own browser. You cannot do it for them.
- Do not change what the AI may do, wider or narrower: do not run `deskwink access ...`, `deskwink folders ...`, `deskwink approvals level ...`, `deskwink capabilities ...`, `deskwink remote-settings ...` or `deskwink autostart ...`, and do not change the user's settings on the DeskWink website for them. What the AI may do is the user's choice. If they want to limit something, tell them where (step 6) and let them do it themselves. The commands that widen access refuse to run outside the user's own terminal anyway, by design. Do not add a service, `systemd` unit or `loginctl enable-linger` of your own. Do not run `deskwink settings confirm`: a request from the DeskWink console is for the user to confirm in their own terminal.
- Never choose, set or store a key passphrase (`DESKWINK_KEY_PASSPHRASE`, `--passphrase`) for the user. That is their decision, made at their own keyboard.
- Install only the npm package `@deskwink/cli`. Do not use install scripts from any other source and never run `curl | bash`.
- If something fails, run `deskwink doctor --json`, tell the user the message, and stop. Do not work around an error by changing system settings.
- Do not enter a referral or invite code for the user, look one up, or share a DeskWink link anywhere on their behalf. If the user gave you a code, step 7 says what to tell them.
## 1. Check this computer
DeskWink supports Windows 10 and 11, macOS 13 or later, and Linux (x64 or arm64, desktop or server). On any other system, tell the user it is not supported yet and stop.
## 2. Check Node.js
Run `node --version`. DeskWink needs Node.js 22 or newer.
Many users have never heard of Node.js. If it is missing or older, say in one sentence that it is the free runtime DeskWink is built on and that the user does not have to do anything with it afterwards, and ask for permission before installing it. Then use one of:
- Windows: `winget install OpenJS.NodeJS.LTS`. If `winget` is not found, download the LTS Windows installer (`.msi`) from https://nodejs.org and run it; Windows asks the user to confirm, so tell them to expect that prompt.
- macOS: `brew install node`. If `brew` is not found, download the LTS macOS installer (`.pkg`) from https://nodejs.org and open it; the user clicks through it.
- Linux: the user's package manager, for example `sudo apt install nodejs npm` (check the version afterwards), or the installer from https://nodejs.org
- Any system: the installer from https://nodejs.org
Download Node.js only from https://nodejs.org. If `node` is not found right after installing, open a new terminal and check again; the old terminal does not see a new install.
## 3. Install the CLI
```
npm install -g @deskwink/cli
```
- Windows PowerShell may say "running scripts is disabled". Use `npm.cmd` and `deskwink.cmd` instead. Do not change the execution policy.
- macOS and Linux may fail with `EACCES`. Do not use `sudo`. Set a user-level npm prefix with `npm config set prefix ~/.npm-global`, and add `~/.npm-global/bin` to the PATH.
## 4. Start DeskWink
```
deskwink launch --json
```
Read `state` in the JSON output:
- `awaiting_pairing`: show the user `pairing.verification_uri_complete` and `pairing.user_code` exactly as printed. Ask them to sign in and confirm this computer in their browser, and wait for them to say they did. On a Linux server or over SSH there is no browser on this computer: tell the user to open the link on their own phone or laptop.
- `connected`: go to step 6.
- anything else: run `deskwink doctor --json`, then tell the user `error.message` and what the doctor suggests.
## 5. Wait for the connection
```
deskwink status --wait connected --timeout 600 --json
```
Exit code `0` means the computer is connected. Exit code `4` means it timed out: ask the user whether they still want to continue, and if so run `deskwink launch --json` again to get a new pairing link.
## 6. Finish
Tell the user:
- what is on, from the summary the launch printed (on stderr with `--json`): the whole computer readable and changeable (protected places excepted), commands, their browser through the DeskWink extension, and on Windows desktop control and reading the clipboard; that nothing waits for their approval, so their AI can change files and run commands straight away; that the DeskWink website can change these settings and approve requests (`deskwink remote-settings off` stops that); that DeskWink starts when they sign in (`deskwink autostart disable` stops that); and whether the browser extension link was set up;
- how to limit it: in their computer's settings at https://app.deskwink.com/devices (the Computers page), or in their own terminal with `deskwink access read folders` (only folders they share), `deskwink approvals level 0` (every change and command waits for them), `deskwink capabilities disable shell` (or `browser`, `desktop`), `deskwink remote-settings off` and `deskwink autostart disable`. DeskWink remembers `remote-settings off` and `autostart disable`, so a later launch does not turn them back on. They choose; do not choose for them or run these yourself;
- that for the browser they install the DeskWink extension from the Chrome Web Store (https://deskwink.com/docs/browser-extension); it connects by itself;
- that to use DeskWink in their AI app they add https://mcp.deskwink.com/mcp as a custom connector (OAuth, no key), with steps for each app at https://deskwink.com/docs/connect. Adding the connector and signing in to DeskWink is something the user does in their own AI app and browser; do not try to do it for them;
- that `deskwink stop` stops DeskWink on this computer immediately.
Then offer to walk the user through the last two steps, because installing is not the same as using it. Ask which AI app they use (ChatGPT, Claude, Gemini, Grok, Muse or another). Open that app's page at https://deskwink.com/docs/connect and read the user the steps for it one at a time, with the address https://mcp.deskwink.com/mcp to paste, and wait for them to say each is done. They do the clicking and the sign-in on DeskWink's consent page themselves. When it is connected, tell them how to call DeskWink in a new chat (in ChatGPT and Gemini type @ and choose DeskWink; in Claude click + then Connectors and switch it on; elsewhere start the message with "Use DeskWink") and offer a first request to try, for example "Use DeskWink to list the files in my Downloads folder". If the AI answers without touching the computer, they say "Use DeskWink" and ask again.
If this computer was already set up with an older DeskWink, the launch (DeskWink 0.6.0 or later) turned everything on once, as for a new install: the whole computer, every feature this system has and approval level 3 (it prints a line saying so), the website settings and start at sign-in, unless the user had turned those off with `deskwink remote-settings off` or `deskwink autostart disable`. Shared folders stay listed, and what the user sets afterwards is never turned back on. Tell the user what the launch printed and how to limit it (`deskwink access read folders`, `deskwink approvals level 0`).
## 7. Referral or invite code (only if the user gave you one)
Skip this step unless the user's request included a DeskWink referral link or code (a link like `https://app.deskwink.com/?ref=CODE`, or an 8-character code) or a personal invite code (12 characters, written `XXXX-XXXX-XXXX`, or a link with `?invite=`). Do not ask for one and do not look one up.
If they gave you one, tell the user, once the computer is connected:
- a referral code: open `https://app.deskwink.com/?ref=CODE` in the browser where they are signed in to DeskWink, within 24 hours of creating their account. The code is used by itself; if a "Have a referral code?" box still shows it, they click Apply. Each account can use one referral code, and both they and the friend get 5,000 bonus AI actions;
- an invite code: open `https://app.deskwink.com/?invite=CODE` and click Redeem.
Give them the link with their code in it, and leave the rest to them: do not sign in, apply or redeem the code yourself. The rules are at https://deskwink.com/referrals.md.
Prefer to do it yourself?
It is two commands: npm install -g @deskwink/cli and deskwink launch.