Skip to content

rbharvs/ui-llm

Repository files navigation

UI-LLM

A modern web UI for interacting with llm, a command-line utility for working with Large Language Models.

Overview

UI-LLM provides a clean, intuitive interface for:

  • Managing conversations with LLMs
  • Viewing message history with timestamps and token counts
  • Easy navigation between conversations

The application is built with Next.js, React, and TypeScript, providing a responsive and accessible user experience.

Features

  • Clean, minimal conversation interface
  • Conversation history
  • Token usage tracking
  • Responsive design

Getting Started

This application is designed to run locally as it connects to the SQLite database used by the llm CLI tool on your computer.

Configuration

  1. Create a .env file in the project root with the path to your llm database:
# Create .env file with your llm database path in one command
echo "DB_PATH=\"$(llm logs path)\"" > .env

Installation and Running

Install dependencies and run the local server:

# Install dependencies
pnpm install

# Run the development server
pnpm dev

Open http://localhost:3000 with your browser to see the result.

Local Usage Note

This UI is intended for local use only as it directly accesses the SQLite database on your machine. It does not provide authentication or multi-user support.

Disclaimer

Generative AI Usage: This project was developed with heavy reliance on LLM-assisted coding. Portions of the codebase were generated or significantly influenced by generative AI tools.

About

Web UI for Simon Willison's `llm` CLI tool with conversation history and token tracking

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published