Connect your AI assistant
Paste one sentence into Claude Code, and your website is on your computer ready to work on.
Your website now lives at Switchboard. To change it, you bring it to your own computer. Your AI assistant does that for you, with one sentence from the dashboard.
#Step by step
Copy the sentence from your dashboard. Open your website in the dashboard. The Connect your AI box, under Paste this into your AI assistant, contains a sentence like:
Set up my Switchboard website: run `npx -y @switchboard-host/cli@latest init smiths-bakery` and follow AGENTS.md.Click Copy. (Just created your website? Then the same sentence is also on the Your website is online! screen, in the Connect your AI assistant box with the Copy the sentence button.)
Open your terminal in the folder where your website should go. Your Documents folder is a good place:
cd $HOME\Documentscd ~/Documentscd ~Start Claude Code with
claudeand paste the sentence. Press Enter.Give Claude permission. Claude asks whether it may run the command. Choose Yes.
Approve the connection in your browser. Your browser opens a Switchboard page with a code, like
KDTM-WQPL. Check that the code matches the one in your terminal and click Give access. Sign in first if asked.Wait a moment. Claude creates a folder named after your website, fetches all the files and installs what's needed. That takes a few minutes.
Look at the preview. Claude starts your website on your computer and gives you an address, usually
http://localhost:5173. Open it in your browser. See previewing your site.
#What just happened?
- There's a new folder on your computer named after your website (for example
Documents/smiths-bakery). It holds all of your website's files. - Your computer is connected to your Switchboard account. You can see that connection in your account, for example as "Claude Code on Anna's laptop", and revoke it there too.
- Your AI assistant has read the
AGENTS.mdfile and now knows how to work with Switchboard.
#Next time
You only have to do this once. To carry on later, open your terminal, go to your website's folder and start Claude:
cd $HOME\Documents\smiths-bakery
claudecd ~/Documents/smiths-bakery
claudecd ~/smiths-bakery
claudeReplace smiths-bakery with your website's name. Then ask Claude to start the preview:
"Start the preview of my website."
Working on another computer? See working on another computer.