# Pair Roblox Studio

> Link a Roblox Studio session to your OofChef account with a pairing code, switch between several Studios, and unpair.

Pairing links one Roblox Studio session to your OofChef account, so the agent can act in the place you have open. You need the [plugin installed](https://oofchef.com/docs/install-plugin) first.

## Pair with a code
1. Open Roblox Studio and open a place.
2. On the **Plugins** tab, click **OofChef** to open the OofChef panel.
3. Click **Connect**. The panel shows **PAIRING CODE** and eight digits (six on a plugin older than 1.1.151). You can click the code to select it, then press `Ctrl+C` (`Cmd+C` on Mac) to copy it.
4. On the website, type or paste the digits into step 3 of the setup steps, **Type the code Studio shows** (or open [oofchef.com/pair](https://oofchef.com/pair)), and click **Pair**. If you paired before, the home screen says **Studio is closed**: click **Enter a pairing code** there.
5. Back in Studio, the panel asks **CONFIRM PAIRING** with your account name (step 4 of the setup steps waits for this). Click **Confirm pairing** (plugin 1.1.151 and later). If you did not enter this Studio's code yourself, click **Cancel**: nothing is kept, and that account cannot use your Studio.

The plugin panel switches to **PAIRED** ("Paired as" your name), and the app's top bar shows *Studio: Linked* with the name of your place.

> **Note**
> A pairing code is valid for **5 minutes**. If it expires, the panel says "Code expired. Click 'Get a new code' to try again." The plugin fetches one fresh code by itself after the first expiry; after two unused codes it waits for you to click **Get a new code**.

A code from the [OofChef Bridge](https://oofchef.com/docs/bridge) pairs the Bridge, not the plugin: the setup steps say so if you type one there. The Bridge never installs the Studio plugin.

## After pairing

- **Auto-connect on start.** With this setting on in the plugin panel, Studio reconnects to your account by itself the next time it starts, so you only pair once per computer.
- **What OofChef can see.** Once linked, OofChef reads the live scene of the place that is open, follows your Studio selection, and can change instances and scripts in that place.
- **Closing Studio keeps the pairing.** When you close Studio the app shows *Studio: Closed*. Open your place again and the plugin reconnects with the same pairing (with Auto-connect off, click **Connect**). If Studio shows a pairing code instead, click **Enter a pairing code** in the app and type it there.
- **Status in the app.** The Studio button shows *Studio: Linked — your place*, *Studio: Closed* (paired, Studio not open), *Studio: Not set up* or *Studio: Setup 2 of 4* (the setup steps are not finished: click it to open them), or *Studio: Update needed* when the plugin is older than OofChef needs.

## Several Studio sessions

You can pair more than one Studio, for example two places open at once or Studio on two computers.

1. Click the **Studio** button in the top bar.
2. Under **Connected Studio sessions**, choose the one OofChef should act in.

Each browser tab works in the Studio you choose there. A run stays on the Studio it started in, and if that Studio drops mid-run, OofChef waits up to 3 minutes for it to reconnect and carries on. The Studio menu also shows whether the [OofChef Bridge](https://oofchef.com/docs/bridge) is connected, how many characters of [project notes](https://oofchef.com/docs/memory#project-notes) the place has, and a shortcut to the [IDE](https://oofchef.com/docs/ide).

> **Tip**
> If several Studios are connected and none is chosen, features that read one specific place (like project notes) ask you to link one in the Studio menu first.

## Stop what OofChef is doing in Studio

While OofChef runs something in Studio, the plugin panel shows what it is doing and a **Stop** button. It stops the running Studio action at its next safe point. To stop the whole run, use **Stop** in the app instead; see [Stop, queue and steer](https://oofchef.com/docs/stop-and-steer).

## Unpair

Click **Unpair Studio** in the plugin panel. OofChef removes that Studio's pairing from your account and can no longer act in that Studio until you pair it again with a new code. Studios on your other computers keep theirs.

## The setup checklist
Until you have finished setting up, the welcome screen shows a **Get set up** checklist: pair Roblox Studio, make your first order, have OofChef playtest what it built, and, optionally, connect the [OofChef Bridge](https://oofchef.com/docs/bridge). Each step is ticked from what OofChef's server has seen on your account, so it is the same in every browser. Hide it with its **×** button; **Check my setup** stays in the Studio menu.

## Problems?
Click the **Studio** button in the top bar and choose **Check my setup**. It checks your pairing, the connection, the plugin version and the Bridge from what OofChef's server already knows, and gives one fix for each problem. See also [Studio won't connect](https://oofchef.com/docs/troubleshooting-studio#check-my-setup).
