Skip to main content
Prompt Hub is OpenLIT’s central store for managing prompts across your AI applications. Instead of hardcoding prompts in application code, you create and version them in one place and fetch them at runtime. This lets you update prompts without redeploying your application, track every change with semantic versioning, and use dynamic variables to personalise responses.

Key features

  • Prompt management — create, edit, and organise prompts in a central UI
  • Semantic versioning — every change is tagged with a major, minor, or patch version so you can roll back to any previous state
  • Dynamic variables — use {{variableName}} placeholders that are substituted at runtime with values you provide
  • Version history — view download stats and a full audit trail of changes directly in the UI

Get started

1

Browse existing prompts

Open OpenLIT and click Prompt Hub in the left navigation. The list view shows all prompts with their current version and download statistics.
2

Create a prompt

  1. Click Create new in the top-right corner.
  2. Enter a name for the prompt — this is the identifier you use to retrieve it later.
  3. Write the prompt body. Use {{variableName}} syntax for any values that should be injected at runtime. For example:
  4. Add Meta Properties (optional key-value pairs such as model: gpt4) to store extra context alongside the prompt.
  5. Choose a version increment — major, minor, or patch — to describe the scope of the change.
  6. Click Save to publish the prompt.
3

Review prompt details

After saving, open the prompt to see its full version history, meta properties, and download statistics. You can edit and re-publish at any time; each save creates a new versioned entry.
4

Retrieve the prompt in your application

1

Create an API key

Your application needs an API key to authenticate requests to OpenLIT.
  1. In OpenLIT, navigate to API Keys.
  2. Click Create API Key.
  3. Enter a name, then click Create.
  4. Copy the key and store it securely — you will not be able to view it again.
You can also set the API key via the OPENLIT_API_KEY environment variable so you do not have to pass it explicitly in every call.
2

Fetch and compile the prompt

Install the OpenLIT SDK if you have not already:
Then fetch and compile the prompt:
Output

Python SDK parameters

string
Base URL of your OpenLIT instance. Defaults to the OPENLIT_URL environment variable.
string
OpenLIT API key for authentication. Defaults to the OPENLIT_API_KEY environment variable.
string
Name of the prompt to fetch. Use either name or prompt_id.
string
Unique ID of the prompt. Use either prompt_id or name.
string
Specific version to retrieve (e.g. 3.2.1). Omit to get the latest.
boolean
When True, replaces {{variableName}} placeholders in the prompt with values from variables.
object
Key-value pairs used for prompt compilation. Required when should_compile is True.
object
Additional metadata stored in the prompt’s access history.

Vault

Centrally store LLM API keys that applications can retrieve remotely without restarts

Dashboards

Create custom visualizations with flexible widgets, queries, and real-time AI monitoring

OpenGround

Compare cost, duration, and response tokens across different LLMs to find the most efficient model