whatisgithub

What is bettergpt?

safalbhandari12/bettergpt — explained in plain English

Analysis updated 2026-05-18

4TypeScriptAudience · developerComplexity · 4/5Setup · moderate

In one sentence

A ChatGPT-style chat app with branching conversations, plus a companion tool that turns your ChatGPT login into a reusable API key.

Mindmap

mindmap
  root((BetterGPT))
    What it does
      Branching chat UI
      ChatGPT to API key
      Built-in playground
    Tech stack
      TypeScript
      Next.js
      Cloudflare Workers
      Turborepo
    Use cases
      Self-hosted chat
      Reusable API key
      Private deployment
    Audience
      Developers
      Self-hosters
    Setup
      pnpm install
      pnpm dev
      Cloudflare deploy

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

What do people build with it?

USE CASE 1

Run a self-hosted ChatGPT-style interface with branching, mergeable conversations.

USE CASE 2

Convert your own ChatGPT plan into an OpenAI-compatible API key for other tools.

USE CASE 3

Self-host the full stack on your own Cloudflare and Vercel accounts for privacy.

What is it built with?

TypeScriptNext.jsCloudflare WorkersD1Turborepopnpm

How does it compare?

safalbhandari12/bettergpt0labs-in/vision-linkalfons-fhl/cursor-plan2api
Stars444
LanguageTypeScriptTypeScriptTypeScript
Setup difficultymoderatemoderatemoderate
Complexity4/53/53/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Full deployment needs a Cloudflare account for the backend plus a separate host like Vercel for the frontends.

So what is it?

BetterGPT is a chat app that looks and feels like ChatGPT but adds branching conversations, meaning you can split a chat into different paths and merge them back together, all using your own existing ChatGPT plan instead of a separate subscription. Alongside it sits a second tool called Mile-Post, which lets you sign in with your ChatGPT account and turn it into a standard API key that works anywhere an OpenAI key is expected, complete with a built-in playground to test it without writing any code. The project is organized as a monorepo, meaning several related apps live together in one codebase and share tools for building and running them. There are three parts: a web app for the branching chat interface, the Mile-Post app for generating API keys, and a backend service that stores conversation history, login sessions, and encrypted account tokens. The backend never talks to ChatGPT directly. Instead, it purely stores data, while the two frontend apps handle making the actual requests, because routing that traffic through the backend's hosting provider would get flagged as suspicious by OpenAI's bot protection. Sensitive information like login tokens and generated API keys are encrypted before being stored, and every request between the apps passes through a shared internal secret so the backend can trust which app is asking. Conversations are saved as structured data that preserves the branching and merging structure created in the chat interface. To run the project locally, you install dependencies with pnpm and start all three apps at once with a single command, and the repository already includes matching development secrets so the pieces can talk to each other right away. Deploying to production involves setting up a Cloudflare Worker with its own database and key-value storage, then hosting the two frontend apps separately, with instructions provided for a full self-hosted setup if you would rather run your own instance than use a hosted one.

Copy-paste prompts

Prompt 1
Help me set up BetterGPT locally with pnpm and get all three apps talking to each other.
Prompt 2
Explain how BetterGPT keeps my ChatGPT login tokens encrypted and secure.
Prompt 3
Walk me through deploying the BetterGPT backend to Cloudflare Workers with D1 and KV.
Prompt 4
Show me how Mile-Post turns a ChatGPT login into an OpenAI-compatible API key.

Frequently asked questions

What is bettergpt?

A ChatGPT-style chat app with branching conversations, plus a companion tool that turns your ChatGPT login into a reusable API key.

What language is bettergpt written in?

Mainly TypeScript. The stack also includes TypeScript, Next.js, Cloudflare Workers.

How hard is bettergpt to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is bettergpt for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.