Skip to content

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

  1. 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.)

  2. Open your terminal in the folder where your website should go. Your Documents folder is a good place:

    PowerShell
    cd $HOME\Documents
  3. Start Claude Code with claude and paste the sentence. Press Enter.

  4. Give Claude permission. Claude asks whether it may run the command. Choose Yes.

  5. 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.

  6. 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.

  7. 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.md file 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:

PowerShell
cd $HOME\Documents\smiths-bakery
claude

Replace 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.

Was this helpful?

Guide

Search the guide

Type a word or a question. Tip: press Ctrl K to open this anywhere.