Get Started: Multiomics Workshop
The workshop runs in the cloud using GitHub Codespaces. Your R, Quarto, packages, data and AI coding agent all live there, so all you need on your laptop is a web browser, VS Code, and two free accounts.
The setup comes in three parts:
Before you arrive (about 15 minutes)
Before Tuesday morning (Monday is fine, and teaching assistants can help)
- Make your own copy of the workshop repository
- Claim your API key in Discord
- Add the key to your GitHub account
- Launch your codespace and check that R works
- Connect to your codespace from VS Code
During the workshop (we do this together)
Instructions in slide form (long form below)
Before you arrive
1. Create a GitHub account
Go to github.com/signup and create a free account. If you already have one, just make sure you can sign in.
Choose a username you’re happy for colleagues to see, and keep a note of your password. You will sign in to GitHub every day of the workshop.
2. Create a Discord account and join the server
Go to discord.com/register and create a free account. You can use the desktop app, the phone app, or the browser.
Then open the workshop Discord invite and accept it. This is where we post announcements, answer questions during the week, and give you your API key for the coding agent.
Once you’ve joined, the workshop channel is where most of the conversation happens.
3. Install VS Code
Download Visual Studio Code from code.visualstudio.com/download. Choose the version for your laptop (Windows, Mac or Linux) and install it with the default settings.
You don’t need to set anything up or install any extensions. We’ll do that together.
Before Tuesday morning
Do these steps in order. Your codespace reads the API key when it is first built, so the key has to be in GitHub before you launch the codespace.
4. Make your own copy of the workshop repository
The workshop environment lives in a template repository on GitHub. You’ll make your own copy of it.
Sign in to GitHub first. GitHub hides the “Use this template” and “Code” buttons from visitors who aren’t signed in, so the buttons below won’t appear.
Open the template
Open the workshop 2 participant repository and click the green “Use this template” button near the top right.

Create a new repository
In the dropdown, choose “Create a new repository”.

Name it
Give the repository a name (for example, multiomics-2026) and click the green “Create repository” button at the bottom of the form. Leave the owner as your username.

Don’t launch a codespace yet. Get your key first.
5. Claim your API key in Discord
The coding agent needs an OpenRouter API key, and a bot in the workshop Discord hands them out.
- Ask a teaching assistant or an instructor to give you the Participant role. The bot only gives keys to people who have it.
- In any channel, type
/claimand press Enter. The bot’s reply is visible only to you. It contains your personal API key and your daily budget. - Copy the key. You’ll paste it into GitHub in the next step.
Two other commands you may want later:
/keyshows your key again if you lose track of it/usageshows how much of today’s budget you’ve used (it resets at midnight UTC)
6. Add the key to your GitHub account
You store the key as a Codespaces secret. Your codespace reads it from there, so it never appears in your code.
Then you already have a secret called OPENROUTER_API_KEY, holding your old key. Don’t click “New secret”: GitHub won’t let you make a second secret with the same name. Instead, on your Codespaces settings page, click “Update” next to OPENROUTER_API_KEY. Replace the value with the new key from Discord, add the repository you created in step 4 under “Repository access”, and click “Save changes”. Then go on to step 7.
Open your Codespaces settings
Click this link to go straight there: your Codespaces settings page.
If you’d rather find it yourself, these are your account settings, not the repository’s. The “Settings” tab on your repository’s page is the wrong place: a secret added there doesn’t reach your codespace. Instead, click your profile picture in the top-right corner of any GitHub page, choose “Settings”, then click “Codespaces” in the left-hand menu.
Click “New secret”
Scroll to “Codespace user secrets” and click “New secret”.

Fill in and save the secret
In the form:
- Name:
OPENROUTER_API_KEY(exactly this, all capitals) - Value: paste the key the Discord bot gave you
- Repository access: click “Select repositories” and choose the repository you created in step 4
Then click “Add secret” at the bottom.

7. Launch your codespace and check that R works
On your new repository’s page, click the green “Code” button, switch to the “Codespaces” tab, and click “Create codespace on main”.

The first build takes 10 minutes or more, because GitHub is installing R, Quarto and the workshop packages. Let it finish. After this first build, opening the codespace again is quick.
When it’s ready, check that R works:
- Open a terminal (Terminal → New Terminal).
- Type
Rand press Enter. - Type
library(tidyverse)and press Enter.
If you see a list of packages and no line starting with Error, you’re set. Type q("no") to leave R.
You can close the browser tab now. Your codespace will be waiting for you, listed at github.com/codespaces.
8. Connect to your codespace from VS Code
The codespace opened in a browser tab. For the rest of the week, open it from the VS Code app you installed in step 3 instead. It is the same editor, but keyboard shortcuts and copy-paste work better in the app.
- Open VS Code on your laptop.
- Click the icon in the bottom-left corner of the window (two small arrows).
- Choose “Connect to Codespace”. If VS Code offers to install the GitHub Codespaces extension first, accept.
- The first time, VS Code asks you to sign in to GitHub. A browser page opens; approve it there and come back to VS Code. Use the same GitHub account as in step 1.
- Your codespace appears in the list. Click it.
The same menu offers “Create New Codespace”. Choose “Connect to Codespace” every time, today and every morning after. Create gives you a new, empty codespace, and your work ends up split across several of them.
When it has connected, the bottom-left corner of VS Code shows Codespaces: followed by your codespace’s name. If it doesn’t, you are looking at a plain VS Code window on your laptop, not your codespace.
If the app won’t connect after a couple of tries, use the browser instead: at github.com/codespaces, click ⋯ next to your codespace and choose “Open in” → “Open in browser”. Everything in the workshop works there too. Use Chrome, Edge or Firefox, and allow clipboard access when the browser asks, or pasting into the terminal won’t work.
During the workshop
9. Meet Pi
Open your codespace in VS Code (step 8), open a terminal (Terminal → New Terminal), type pi and press Enter. Pi is the AI coding agent you’ll use all week. Ask it questions in plain language: it can read your notebook, explain code and help you make changes.

If Pi says it can’t find an API key
This usually means the codespace was launched before the key was added. Check on your Codespaces settings page that the secret is named exactly OPENROUTER_API_KEY and that it has access to your repository. Then restart the codespace so it picks the key up:
- Go to github.com/codespaces.
- Click the ⋯ menu next to your codespace and choose “Stop codespace”.
- When it has stopped, connect to it again from VS Code (step 8).
If you’re still stuck, ask a teaching assistant.