explaingit

ztjhz/betterchatgpt

8,408TypeScriptAudience · generalComplexity · 2/5Setup · easy

TLDR

A feature-rich browser and desktop interface for OpenAI's API that adds folder organization, cost tracking, conversation export, and proxy support, you bring your own API key.

Mindmap

mindmap
  root((BetterChatGPT))
    What it does
      ChatGPT alternative UI
      Bring your own API key
      Conversation organizer
    Features
      Color-coded folders
      Token cost tracking
      Export markdown JSON
      Prompt library
    Deployment
      Hosted at bettergpt.chat
      Vercel one-click
      Docker
      Local Node.js
    Audience
      Privacy-conscious users
      Power users
      Blocked regions
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Run a private ChatGPT interface using your own API key with no ads, organized into folders, and without usage caps from the official site.

USE CASE 2

Export your AI conversations to markdown or JSON for documentation, archiving, or sharing.

USE CASE 3

Access the OpenAI API from countries where ChatGPT is blocked by routing requests through a custom proxy endpoint.

USE CASE 4

Track token usage and cost in real time so you always know what each conversation is costing you.

Tech stack

TypeScriptReactNode.jsDockerVercel

Getting it running

Difficulty · easy Time to first run · 5min

Requires a paid OpenAI API key to use.

In plain English

Better ChatGPT is an alternative front-end for OpenAI's ChatGPT API. Instead of using the official ChatGPT website, you bring your own OpenAI API key and use this interface to have conversations with the AI. It works in a browser at bettergpt.chat, and desktop apps are available for Windows, macOS, and Linux. The interface adds features that the official ChatGPT site does not include. You can organize conversations into color-coded folders, filter through them, see token counts and cost estimates, edit or reorder any message in a conversation, generate chat titles automatically, and download conversations in markdown, image, or JSON format. There is also a prompt library for saving reusable instructions, and a sync option for Google Drive. For people who are blocked from accessing ChatGPT in certain countries, the tool can be set up to route requests through a proxy endpoint. It also supports Azure OpenAI as an API source and lets you adjust model settings like temperature and presence penalty. The app is available in multiple languages. You can use the hosted version at bettergpt.chat, or run your own copy. Deployment options include a one-click setup on Vercel, hosting on GitHub Pages by forking the repository, running it locally with Node.js, or running it inside Docker. Detailed setup instructions for each method are in the README. The project is open source and was built by an independent developer. It stores conversation data locally in your browser, and the desktop version stores data on your device without any size limit.

Copy-paste prompts

Prompt 1
I'm self-hosting BetterChatGPT (ztjhz/betterchatgpt). Write me a Docker Compose file that runs the app on port 3000 with my OpenAI API key passed as an environment variable.
Prompt 2
Walk me through deploying BetterChatGPT to Vercel with a one-click setup and tell me which environment variables I need to set.
Prompt 3
Help me write a reusable system-prompt template for BetterChatGPT's prompt library that formats all AI responses as a structured JSON object.
Prompt 4
I'm using BetterChatGPT with Azure OpenAI instead of the standard API. What endpoint format and API key do I need to enter in the settings?
Open on GitHub → Explain another repo

← ztjhz on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.