> [!CAUTION] > Attention: llm.report is no longer actively maintained. This project was unable to find a sustainable business model, and the founders have moved on to other projects. If you are interested in maintaining or further developing this project, [message me on twitter](https://twitter.com/dillionverma) llm.report – an open-source logging and analytics platform for OpenAI: Log your ChatGPT API requests, analyze costs, and improve your prompts.

llm.report

An open-source logging and analytics platform for OpenAI

Twitter License PRs welcome! git commit activity Discord Channel

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](#openai-api-analytics) - [Logs](#logs) - [User Analytics](#user-analytics) ### 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 ```bash git clone https://github.com/dillionverma/llm.report.git ``` 2. cd into the repo ```bash cd llm.report ``` 3. Install dependencies ```bash yarn ``` 4. Setup environment variables ```bash cp .env.example .env ``` - Generate `NEXTAUTH_SECRET` using `openssl rand -base64 32` and add it to `.env` 5. 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 ```bash yarn dx ``` Open [http://localhost:3000](http://localhost:3000) with your browser! ## Tech Stack - [Next.js](https://nextjs.org/) – framework - [Typescript](https://www.typescriptlang.org/) – language - [Tailwind](https://tailwindcss.com/) – CSS - [Shadcn](https://ui.shadcn.com) – App UI components - [Magic UI](https://magicuikit.com/) – Marketing UI components - [Postgres](https://www.postgresql.org/) – database - [NextAuth.js](https://next-auth.js.org/) – auth - [Stripe](https://stripe.com/) – payments - [Resend](https://resend.com/) - emails ## Contributing Here's how you can contribute: - [Open an issue](https://github.com/dillionverma/llm.report/issues) if you believe you've encountered a bug. - Make a [pull request](https://github.com/dillionverma/llm.report/pull) to add new features/make quality-of-life improvements/fix bugs. ## Star History ![Star History Chart](https://api.star-history.com/svg?repos=dillionverma/llm.report&type=Date) ## License Inspired by [Dub](https://dub.sh) and [Plausible](https://plausible.io), both are open-source under the GNU Affero General Public License Version 3 (AGPLv3) or any later version. You can [find it here](https://github.com/dillionverma/llm.report/blob/main/LICENSE). The reason for this is that we believe in the open-source ethos and want to contribute back to the community. ## Credits - [OpenAI](https://openai.com/) – for creating ChatGPT - [shadcn-ui](https://ui.shadcn.com) – for making it easy to build beautiful UIs - [tremor.so](https://tremor.so) – beautiful dashboard componenets - [mintlify](https://mintlify.com) – beautiful documentation - [screen.studio](https://screen.studio) – the best video recording tool - [vercel](https://vercel.com) – for making next.js and making it easy to build powerful apps - [Dub](https://dub.sh) – for inspiring me to open-source this project