# Install Key with one command

https://superintelligentkey.com/install/

Run npx @superintelligentfamily/key-install in your site folder to add Sign in with Key: it shows each change first and puts your secret straight into your host.

## What the command does

- You run npx @superintelligentfamily/key-install in your site's folder. It works out what kind of site it is: a site-kit site, a static site on Cloudflare Pages, or a Cloudflare Worker. For anything else it shows you the steps by hand and changes nothing.

- It opens Key's sign-in in your browser. You sign in with the code Key emails you, and on the next page you tick "Create and revoke your sites' keys", which Key leaves unticked on purpose. If you run it again within 30 days, you won't be asked again.

- Before each change, it shows you exactly what it will do, and nothing happens until you say yes: making your site's app, adding its return address, and making its secret key.

- Your secret key goes straight from Key into your host's secret settings. It's never shown on screen, never saved in a file, and never kept by the installer. If saving it fails, the installer revokes that key at once.

- It notes your app's id in your site's own settings, so running it again changes only what's missing.

## On a static site

A static site on Cloudflare Pages needs a little more than one secret: a sign-in function, a second secret it makes on your computer, and a small database for sessions. The installer shows you each one before it adds it. Secrets reach your site at its next deployment, so deploy once when it's done.

## Set up your site today

[Open the dashboard](<https://dash.superintelligentkey.com/>)
