CharChat
My own chat app for AI models, local or online. Characters with easy-to-edit system prompts, a live token and cost counter, and pay-per-video generation instead of a monthly subscription.
- AI
- Web
- Homelab

Problem
Three small annoyances added up. I didn't like Ollama's chat window for talking to my local models. Changing a local model's system prompt, the instructions that shape how it behaves, was more fiddly than it should be. And sometimes I want a video or two from Grok, but paying a monthly subscription for maybe three videos a week made no sense.
What I built
A chat app that runs on my own computer, in the browser. It needs nothing installed besides Python. I planned it and built it with Claude Code. The best parts: - Characters you write yourself. Each character is just two short texts: who they are and how they behave. You edit them inside the app, and the change applies to your very next message. Every save keeps the previous version, so one click undoes a bad edit. - Local and online models in one place. A switch at the top flips between Ollama models on my own PC, free and private, and hundreds of online models through OpenRouter. - A live token counter. A side panel shows how many tokens each chat has used (input, cached, output and reasoning), what it cost, and how fast the model is answering. A bar shows how full the model's memory is, and it warns me before a local model starts forgetting the start of the conversation. - Video and image generation through the API. There are separate Image and Video tabs, so I can make a Grok video and pay only for that one video. The price is shown before I confirm. - Pictures in chat. I can paste or drag a picture into a message for models that can see images. - Optional web search, so an online model can look things up or open a link I paste in. The API key stays on my computer and is never sent to the web page. Every chat is saved in a small local database. It also works from my phone over my home network.
Tech used
- Python
- JavaScript
- SQLite
- Ollama
- OpenRouter API
- Grok
- Claude Code
Result
I now use one app for both my local and online models, and I can rewrite a character's behaviour in seconds and see the effect on the next message. Videos cost only what I actually make, with no subscription, and I always know what each chat has cost. The code is public on GitHub, so anyone can download it and run it.