/llm.report

๐Ÿ“Š llm.report is an open-source logging and analytics platform for OpenAI: Log your ChatGPT API requests, analyze costs, and improve your prompts.

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0

llm.report โ€“ an open-source logging and analytics platform for OpenAI: Log your ChatGPT API requests, analyze costs, and improve your prompts.

An open-source logging and analytics platform for OpenAI

Introduction ยท Self Hosted Installation ยท Cloud Installation ยท Tech Stack ยท Contributing


Introduction

llm.report is an open-source logging and analytics platform for OpenAI: Log your ChatGPT API requests, analyze costs, and improve your prompts.

Here are some of the features that llm.report provides out-of-the-box:

OpenAI API Analytics

No-code solution to analyze your OpenAI API costs and token usage.

llm.report โ€“ an open-source logging and analytics platform for OpenAI: Log your ChatGPT API requests, analyze costs, and improve your prompts.

Logs

Log your OpenAI API requests / responses and analyze them to improve your prompts.

llm.report โ€“ an open-source logging and analytics platform for OpenAI: Log your ChatGPT API requests, analyze costs, and improve your prompts.

User Analytics

Calculate the cost per user for your AI app.

llm.report โ€“ an open-source logging and analytics platform for OpenAI: Log your ChatGPT API requests, analyze costs, and improve your prompts.

Self-Hosted Installation

  1. Clone the repo
git clone https://github.com/dillionverma/llm.report.git
  1. cd into the repo
cd llm.report
  1. Install dependencies
yarn
  1. Setup environment variables
cp .env.example .env
  • Generate NEXTAUTH_SECRET using openssl rand -base64 32 and add it to .env
  1. Quickstart
  • Requires Docker and Docker Compose to be installed.
  • Will start a local Postgres instance with a few test users - the credentials will be logged in the console
yarn dx

Open http://localhost:3000 with your browser!

Tech Stack

Contributing

Here's how you can contribute:

  • Open an issue if you believe you've encountered a bug.
  • Make a pull request to add new features/make quality-of-life improvements/fix bugs.

Star History

Star History Chart

License

Inspired by Dub and Plausible, both are open-source under the GNU Affero General Public License Version 3 (AGPLv3) or any later version. You can find it here. The reason for this is that we believe in the open-source ethos and want to contribute back to the community.

Credits

  • OpenAI โ€“ for creating ChatGPT
  • shadcn-ui โ€“ for making it easy to build beautiful UIs
  • tremor.so โ€“ beautiful dashboard componenets
  • mintlify โ€“ beautiful documentation
  • screen.studio โ€“ the best video recording tool
  • vercel โ€“ for making next.js and making it easy to build powerful apps
  • Dub โ€“ for inspiring me to open-source this project