DocsPrompt ManagementGet Started

Get Started with Prompt Management

This guide walks you through creating and using a prompt with Langfuse. If you’re looking to understand what prompt management is and why it matters, check out the Prompt Management Overview first. For details on how prompts are structured in Langfuse and how it works in the background, see Core Concepts.

Get API keys

  1. Create Langfuse account or self-host Langfuse.
  2. Create new API credentials in the project settings.

Create a prompt

Use the agent mode of your editor to create prompts in Langfuse.

  1. Install the Langfuse Skill:
# Cursor plugin
/add-plugin langfuse
 
# skills CLI
npx skills add langfuse/skills --skill "langfuse"
 
# Manual: clone and symlink
git clone https://github.com/langfuse/skills.git /path/to/langfuse-skills
ln -s /path/to/langfuse-skills/skills/langfuse ~/.skills/langfuse
  1. Ask the agent to create your prompt:
Create a prompt in Langfuse called "movie-critic" that takes a movie name and critic level as variables.

Use the prompt in your code

Use the agent mode of your editor to write the code to fetch Langfuse prompts in your application.

  1. Install the Langfuse Skill:
# Cursor plugin
/add-plugin langfuse
 
# skills CLI
npx skills add langfuse/skills --skill "langfuse"
 
# Manual: clone and symlink
git clone https://github.com/langfuse/skills.git /path/to/langfuse-skills
ln -s /path/to/langfuse-skills/skills/langfuse ~/.skills/langfuse
  1. Ask the agent to integrate prompt fetching:
Fetch the "movie-critic" prompt, production version, from Langfuse and use it in my application.

Not seeing what you expected?

Next steps

Now that you’ve used your first prompt, there are a couple of things we recommend you do next to make the most of Langfuse Prompt Management:

Looking for something specific? Take a look under Features for guides on specific topics.

Was this page helpful?