# Connect your Claude plan

> Sign in with your Claude account so Ask Onsite answers with your Claude plan instead of your Onsite credits.

Connect your Claude plan once, and Ask Onsite answers your whole team's questions with it. You sign in to Claude, approve Onsite, and paste back the code Claude shows you.

## Before you start

- You're an **owner or admin** of your Onsite team.
- You have a **Claude Pro or Max** plan, or a Team or Enterprise seat that includes Claude Code. See [which plans work](/guides/ai-accounts#which-plans-work).
- Give yourself 10 minutes from the moment you start. That's how long the sign-in stays open.

<Note>
If your team has ChatGPT connected too, ChatGPT answers first and Claude isn't used. To have Claude answer, [disconnect ChatGPT](/guides/ai-accounts/chatgpt#disconnect-chatgpt).
</Note>

## Connect Claude

<Steps>
  <Step title="Open AI connections">
    In Onsite, go to **Settings › AI connections**, or open [onsite.so/settings/ai-connections](https://onsite.so/settings/ai-connections).

    Choose **Connect** beside **Claude**. Onsite opens three short steps under the row.

    <Frame caption="The steps Onsite shows after you choose Connect">
      <img className="block dark:hidden" src="/images/ai-accounts/claude-1-connect.png" alt="The Claude row in Settings › AI connections, open with three numbered steps and a box to paste a code" />
      <img className="hidden dark:block" src="/images/ai-accounts/claude-1-connect-dark.png" alt="The Claude row in Settings › AI connections, open with three numbered steps and a box to paste a code" />
    </Frame>
  </Step>
  <Step title="Sign in to Claude">
    Choose **Open Claude sign-in**. Claude's sign-in page opens in a new tab. Sign in with the Claude account whose plan you want to use.

    If you belong to more than one Claude organization, Claude asks which one to use. Pick the one with the plan.
  </Step>
  <Step title="Approve access">
    Choose **Authorize** on Claude's page.

    Claude's page mentions Claude Code. That's expected: Onsite signs in the same way as Claude Code.
  </Step>
  <Step title="Copy the code Claude shows you">
    After you approve, Claude shows a long code. Copy all of it with the copy button next to it.
  </Step>
  <Step title="Paste it into Onsite">
    Back in Onsite, paste the code into the box and choose **Connect Claude**. Only paste a code from a sign-in you started in Onsite yourself.

    The Claude row shows **Connected** and the date you signed in.
  </Step>
</Steps>

## Check it worked

The Claude row in **Settings › AI connections** shows **Connected** and **Signed in** with today's date.

<Frame caption="Claude connected">
  <img className="block dark:hidden" src="/images/ai-accounts/claude-2-connected.png" alt="Settings › AI connections with Claude connected and the date it was signed in" />
  <img className="hidden dark:block" src="/images/ai-accounts/claude-2-connected-dark.png" alt="Settings › AI connections with Claude connected and the date it was signed in" />
</Frame>

Now open **Ask Onsite** (top right, or **⌘J**) and ask a question about one of your sites. Claude answers. You don't need to pick a model.

Answers from Claude can take a few seconds longer to start than answers from ChatGPT, and appear all at once rather than word by word.

## Switch to another Claude account

1. In **Settings › AI connections**, choose **Connected** on the Claude row, then **Disconnect**.
2. Choose **Connect** and follow the steps again. If Claude's page signs you in to the old account, sign out of Claude in that browser first.

## Disconnect Claude

In **Settings › AI connections**, choose **Connected** on the Claude row, then **Disconnect**.

Ask Onsite goes straight back to Onsite's own models and your credits, or to ChatGPT if that's connected. Your chats, notes and settings stay as they are.

## If something goes wrong

<AccordionGroup>
  <Accordion title="Sign-in timed out">
    The sign-in stays open for 10 minutes. Choose **Retry** or **Connect** to start a new one, and paste the code soon after Claude shows it.
  </Accordion>
  <Accordion title="Code not accepted">
    The code didn't match this sign-in. Make sure you copied the whole code with Claude's copy button, and that it came from the sign-in you started in Onsite. If it still fails, choose **Connect** to start again.
  </Accordion>
  <Accordion title="My Claude account won't connect">
    A free Claude account can't be connected. On a Team or Enterprise plan, your seat needs to include Claude Code. Ask your Claude admin, or connect a personal Pro or Max account.
  </Accordion>
  <Accordion title="Ask Onsite still uses credits after I connected Claude">
    If ChatGPT is connected too, ChatGPT answers first. Disconnect ChatGPT to use Claude. Web search and page reading always use credits.
  </Accordion>
</AccordionGroup>

More fixes, including plan limits, are in [Fix a ChatGPT or Claude connection](/guides/ai-accounts/troubleshooting).

## Related

<CardGroup cols={2}>
  <Card title="Connect ChatGPT" icon="message-circle" href="/guides/ai-accounts/chatgpt">
    Use a ChatGPT plan instead, or as well.
  </Card>
  <Card title="Fix a connection" icon="wrench" href="/guides/ai-accounts/troubleshooting">
    Every message you might see, and what to do.
  </Card>
  <Card title="Use Onsite in Claude" icon="plug" href="/mcp/claude">
    Ask about your sites from inside Claude.
  </Card>
  <Card title="Billing and credits" icon="credit-card" href="/guides/billing-and-credits">
    What uses credits, and how many you get each month.
  </Card>
</CardGroup>
