# Setup

> Deepgram workshops › UC Berkeley AI workshop 2026 › Setup
> Web version: https://workshops.deepgram.com/events/uc-berkeley-2026/setup
> About 8 min.

This setup is five steps and should take under five minutes if your machine is in good shape.

### Sign up at console.deepgram.com {#sign-up}

**Goal:** Get the starter repo cloned, your Deepgram API key in `.env`, and the dependencies installed.

Go to [dpgr.am/ucb-ai-signup](https://dpgr.am/ucb-ai-signup) and sign up with Google, GitHub, or email, whichever is fastest. If you already have an account, log in.

| Sign up |
| --- |
| [![Sign up QR code](/qrs/ucb-ai-signup.png)](https://dpgr.am/ucb-ai-signup) |

### Claim your free credit {#free-credit}

Brand-new Deepgram accounts get **$200 in credit**, applied automatically. The workshop costs well under a dollar in usage, so you'll have plenty left to keep building after we wrap.

### Pick a flow and clone the starter repo {#pick-a-flow}

Clone the branch for the language you're more comfortable with. The workshop ships two scaffolds, one in Python and one in JavaScript, on separate branches of the same repo.

| Workshop repo |
| --- |
| [![Workshop repo QR code](/qrs/ucb-ai-repo.png)](https://dpgr.am/ucb-ai-repo) |

@tab python Python
```bash
git clone -b python https://github.com/deepgram-devs/uc-berkeley-ai-workshop-2026.git
cd uc-berkeley-ai-workshop-2026
```

The Python branch is intentionally small: one `main.py` file, a `pyproject.toml`, an `.env.example`, and a short README.

**You should see:** those four files in the folder. If `main.py` is missing, you cloned the wrong branch, because each branch ships only its own language's files.

@tab javascript JavaScript
```bash
git clone -b javascript https://github.com/deepgram-devs/uc-berkeley-ai-workshop-2026.git
cd uc-berkeley-ai-workshop-2026
```

The JavaScript branch is intentionally small: one `main.js` file, a `package.json`, an `.env.example`, and a short README.

**You should see:** those four files in the folder. If `main.js` is missing, you cloned the wrong branch, because each branch ships only its own language's files.
:::

### Drop your API key in `.env` {#drop-api-key}

Copy the example env file and open it in your editor:

```bash
cp .env.example .env
```

Then create a key in the Deepgram console. Go to **API Keys → Create a New API Key**, name it anything you like, copy the value, and paste it into `.env`:

```bash
DEEPGRAM_API_KEY=your_key_here
```

> **Important:** don't commit the real `.env` file. The repo's `.gitignore` already excludes it.

**You should see:** `.env` with `DEEPGRAM_API_KEY` set to your key. If `.env` doesn't exist, run the `cp` command again from the repo folder.

### Install dependencies {#install}

@tab python Python
Install [uv](https://docs.astral.sh/uv/), which manages Python projects. It's faster than pip and handles virtual environments for you.

On macOS or Linux:

```bash
curl -LsSf https://astral.sh/uv/install.sh | sh
```

On Windows (PowerShell):

```powershell
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
```

Then install the workshop's dependencies:

```bash
uv install
```

If your system Python is older than 3.13, `uv` fetches the right version for you automatically.

@tab javascript JavaScript
Install [pnpm](https://pnpm.io/), which the JavaScript flow uses. The workshop targets Node 22.

If you don't already have pnpm:

```bash
npm install -g pnpm
```

Then install the workshop's dependencies:

```bash
pnpm install
```

The JS audio packages (`mic` and `speaker`) call system audio tools. Install the one for your system:

- **Linux:** `sudo apt install -y sox alsa-utils` (provides `sox` and `arecord`)
- **macOS:** `brew install sox`
- **Windows:** `choco install sox.portable`
:::

**You should see:** the install finish without errors. If a JavaScript audio package fails, check that the system audio tool for your platform is installed.

### WSL users: bridge PulseAudio to ALSA {#wsl}

If you're on Windows Subsystem for Linux (WSL), install an audio bridge. WSL routes audio through PulseAudio, but the audio libraries only see ALSA.

```bash
sudo apt install -y libasound2-plugins
cat > ~/.asoundrc <<EOF
pcm.!default { type pulse }
ctl.!default { type pulse }
EOF
```

If you're on native Windows, macOS, or desktop Linux, skip this step.
