[TokenMeter] My Own ChatGPT
This post was migrated from Tistory. You can find the original here.
Introducing TokenMeter
(This does not run an LLM locally.)
TokenMeter is a tool built to cut down on the burden of subscription costs and to keep my data from being used for training, by using the OpenAI API locally so I can have natural conversations and keep a history without going through the ChatGPT web service.
So to use TokenMeter, you need an OpenAI API key with credits loaded on it.
All settings and conversation history are stored locally.
https://github.com/cornpip/TokenMeter
Still getting continuous feature updates.
Major updates
Docker deployment
If you have an environment where Docker is running and docker compose is available, you can get TokenMeter up and running easily.
How to run it
- Download or copy the docker-composse.yml file from GitHub.
- Run the
docker compose upcommand from the folder where the yml file is located.
Once the command runs, it pulls the client and server images published on Docker Hub and starts the service.
Service address: http://localhost/token_meter/viewer/main
1
2
3
4
5
6
7
8
...
nginx:
environment:
<<: *common-environment
image: cornpip77/token-meter-nginx
ports:
- {specify port}:80
...
The default hosting port for the service is 80.
To change the port, edit the number on the left side of the nginx port setting in the yml file, then run docker compose up.
https://hub.docker.com/u/cornpip77
The client image bundles the built files along with the Nginx configuration, and the server image is built with an environment that can run Express and SQLite3.
Each Dockerfile can be found in the ./client and ./server folders respectively.
New features
- Added support for LaTeX syntax, so mathematical expressions render properly.
- You can now rename chat rooms (right-click → Rename).
For how to use the service, see the previous post or the GitHub README.
2025.02.21 - [Side Project/TokenMeter] - TokenMeter: Building a Personal (Local) ChatGPT
[TokenMeter: Building a Personal (Local) ChatGPT
Previous post 2024.10.09 - [Side Project/TokenMetered] - Side Project) Building a Personal (Local) ChatGPT Side Project) Building a Personal (Local) ChatGPT Motivation I mainly use ChatGPT. (I don’t use Claude much
cornpip.tistory.com](https://cornpip.tistory.com/129)