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
- Click Create new in the top-right corner.
- Enter a name for the prompt — this is the identifier you use to retrieve it later.
- Write the prompt body. Use
{{variableName}}syntax for any values that should be injected at runtime. For example: - Add Meta Properties (optional key-value pairs such as
model: gpt4) to store extra context alongside the prompt. - Choose a version increment — major, minor, or patch — to describe the scope of the change.
- 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.
- In OpenLIT, navigate to API Keys.
- Click Create API Key.
- Enter a name, then click Create.
- Copy the key and store it securely — you will not be able to view it again.
2
Fetch and compile the prompt
- Python
- TypeScript
- REST API
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
