00 Setup
Workshop source
Workshop material is maintained in the public langfuse/langfuse-workshop repository. Use the repository for the runnable app, checkpoint branches, and local setup.
Goal
Have the workshop app running locally with both OpenAI and Langfuse credentials in place. From here you can skim 01-base-app, then start building in 02-tracing.
Starting point
Clone the workshop repository, enter it, then check out the setup checkpoint for this chapter:
git clone https://github.com/langfuse/langfuse-workshop.git
cd langfuse-workshop
git checkout checkpoint/00-setupThis checkpoint intentionally contains the same untraced base app as checkpoint/01-base-app. Use it to confirm that your API keys, dependencies, and local ports work before switching to the build chapters. The Langfuse keys are configured now, but traces start only after you add instrumentation in 02-tracing.
Step 1 โ Get the API keys
- OpenAI โ platform.openai.com โ API Keys โ create one. Copy the
sk-...value. - Langfuse โ sign up at langfuse.com on the EU region, create a project, and copy the public + secret keys from Settings โ API Keys.
Step 2 โ Configure .env
cp .env.example .envFill in:
OPENAI_API_KEY=sk-...
LANGFUSE_PUBLIC_KEY=pk-lf-...
LANGFUSE_SECRET_KEY=sk-lf-...
LANGFUSE_BASE_URL=https://cloud.langfuse.comLeave the rest of the defaults as they are.
The workshop app always loads this repository's .env file for the server and helper scripts. If you have LANGFUSE_*, OPENAI_*, or DATASET_NAME values exported in your shell from another project, they will not override this file. To change the workshop configuration, edit .env.
Keep these values in your local .env only. Do not paste real API keys into shared workshop notes, transcripts, screenshots, or chat messages.
Step 3 โ Install and run
npm install
npm run devOpen http://127.0.0.1:3333.
Step 4 โ Confirm what you see
You should see the Dad IT Support Agent chat:
- the Specs mascot up top
- a greeting from Specs
- suggestion chips below the greeting
- the iPhone panel on the right ("Dad" + iPhone 15 details)
![]()
How to verify you are done
npm run devis running and listening onhttp://127.0.0.1:3333(client) andhttp://127.0.0.1:8787(server).- The browser shows the Specs greeting, not an error.
- Sending one of the suggestion chips returns a real iPhone answer from the model.
End state
Your environment is ready. To build the workshop step-by-step, skim 01-base-app if you want the app tour, then check out checkpoint/02-tracing for the first code changes.