# Take it with you

> Deepgram workshops › Build a voice agent › Mission 00: First words › Section 4 of 4
> Web version: https://workshops.deepgram.com/voice-agent/getting-started/take-it-with-you
> About 20 min (estimate). Check it: `make check 00` (offline, no key).

## Rebuild your agent outside the workshop

**Goal:** Rebuild your agent outside the workshop, and keep your key safe when you ship it.

**You need:** a browser for the Playground, or a terminal and Python, TypeScript, or Java for the project.

**Do:** Pick one place to rebuild this agent:

- [Voice Agent Playground](https://playground.deepgram.com/voice-agent?utm_source=workshops&utm_medium=agent&utm_campaign=workshop-voice-agent&utm_content=md-first-words): the same settings panel, bigger.
- The attendee project, which has this mission as three TODOs: [Python](https://github.com/deepgram-devs/voice-agent-workshop/blob/main/python/missions/00-first-words/start.py) or [TypeScript](https://github.com/deepgram-devs/voice-agent-workshop/blob/main/typescript/missions/00-first-words/start.ts).
- New to this? Try the [todo voice agent starter](https://github.com/deepgram-devs/todo-voice-agent-workshop).

Building on LiveKit, Pipecat, Vapi, Twilio, or Telnyx? [PARTNERS.md](https://github.com/deepgram-devs/voice-agent-workshop/blob/main/PARTNERS.md) in the code project shows what carries over.

Keep your Deepgram API key on your server, never in a web page or app. The code below is the Settings message and the smallest program that sends it.

_On the web page, this step shows the code panel with the matching code._

**You should see:** the agent's reply to your typed line in the transcript. If nothing appears, check that `DEEPGRAM_API_KEY` is set, then run it again.

**Keep your key safe**

The program in the code panel runs from a terminal. Type a line and it answers in the transcript.

The [attendee project](https://github.com/deepgram-devs/voice-agent-workshop) has one folder per mission in Python, TypeScript, and Java, with an offline check that tells you when the TODOs are done. The [todo voice agent guide](https://workshops.deepgram.com/todo-voice-agent) walks through the simpler starter step by step.

Python can use your microphone; TypeScript and Java take typed input. After setup, every check runs offline.

On your own machine, the key stays with you. In anything you ship, such as a web page or a phone app, keep the key out of the code people download.

Put a small server of yours in between, the way this workshop does. The browser talks to your server, and your server holds the key and talks to Deepgram. Or have your server ask Deepgram for a short-lived token (`POST /v1/auth/grant`, 30 seconds by default) and hand that to the app.

**In production**

- **Watch:** the `Error` and `Warning` events, and how often a session closes before the agent's first reply.
- **Aim for:** `SettingsApplied` before any audio goes out, and a KeepAlive every 5 seconds or so whenever no audio is flowing.
- **Read:** the [Voice Agent docs](https://developers.deepgram.com/docs/voice-agent) for every Settings field.

**What you changed:** the Voice layer, with a little Thinking. One Settings message set who your agent is and how it sounds.
