A web interface for browsing and searching LLM prompt/response history stored in SQLite.
- Browse historical LLM prompts and responses
- Search across both prompts and responses
- View markdown-formatted content with syntax highlighting
- Collapsible sections for long content (collapsed by default)
- Responsive design with Tailwind CSS
- Copy response markdown to clipboard with one click
- Delete entries with confirmation dialog and CSRF protection
-
Install LLM with SQLite logging enabled:
pip install llm
-
Configure LLM to log to SQLite (see LLM Logging Documentation):
llm logs path "/path/to/llm.db"
-
Clone this repository:
git clone https://github.com/yourusername/llm-browser.git cd llm-browser
-
Install dependencies:
composer install
-
Create a
.env
file with your SQLite database path:DATABASE_PATH="/path/to/llm.db"
-
Start the PHP built-in server:
php -S localhost:8000
-
Open your browser to
http://localhost:8000
- The main page shows the most recent prompts and responses
- Use the search bar to find specific content
- Long content is collapsed by default showing a preview
- Click "Expand" to show full content
- Click "Collapse" to return to preview view
- Click "Copy to clipboard" to copy the response markdown for easy reuse
- PHP
- SQLite
- Tailwind CSS
- CommonMark (for markdown rendering)
MIT License
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.