Storage Quickstart
Store, version, and retrieve any kind of data.
Quickstart
Litebase Storage is a simple, reliable way to store and track data over time.
Think of it like a memory log for your app. Every piece of data you write is saved. You can update it, track its history, or go back in time — all without losing anything. Any system — agent, dashboard, or backend — can store and retrieve data with a simple API. There’s no database to manage, no setup required, and no SDK needed. Just curl, fetch, or your favorite HTTP client.
1. Save your first prompt and response
Let’s log a model interaction from Luke’s mission assistant.
Your data is now stored and versioned under ai/luke/prompt_001.
2. Retrieve the latest version
You can read the current value of any key:
3. Save an updated response (new version)
Every write to the same key creates a new version automatically.
No need to manage versions manually — Litebase handles it.
4. View version history
You can view previous responses and track how they’ve changed:
Useful for debugging model behavior or auditing output history.
5. Watch for live updates
Want to react when the model generates a new response? Subscribe to live changes:
You’ll get a real-time stream of versioned updates.
6. Delete when needed
Remove a key and all of its versions:
Use this for cleanup or data lifecycle management.
Next steps
- Explore the API reference
- Track embeddings, ratings, or human feedback using structured keys
- Use versioning for audit logs or model evaluation
- Try the
lite storageCLI to script batch writes or snapshots