whatisgithub

What is token-converter?

physics-dimension/token-converter — explained in plain English

Analysis updated 2026-05-18

41HTMLAudience · developerComplexity · 1/5Setup · easy

In one sentence

A single-page, offline browser tool that converts AI API credential files between Codex, CPA, and Sub2API formats.

Mindmap

mindmap
  root((Token Converter))
    What it does
      Converts AI API token formats
      Codex CPA Sub2API
      Runs fully offline
    Tech stack
      HTML
      JavaScript
    Use cases
      Reformat proxy credentials
      Offline credential conversion
    Audience
      Developers using AI proxies

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

Convert a Codex auth.json credential file into the format expected by a Sub2API proxy setup.

USE CASE 2

Reformat ChatGPT-Proxy-Api credentials for use with a different self-hosted AI proxy tool.

USE CASE 3

Convert token files entirely offline without uploading any credentials to a server.

What is it built with?

HTMLJavaScript

How does it compare?

physics-dimension/token-convertermeridithdacey45285316443/idm-6.42-patch-lifetime-ver-26lagunaswift/rockyvoice
Stars414140
LanguageHTMLHTMLHTML
Setup difficultyeasymoderatemoderate
Complexity1/51/52/5
Audiencedevelopergeneralvibe coder

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

How do you get it running?

Difficulty · easy Time to first run · 5min

No install needed, open the hosted GitHub Pages link or the single index.html file locally.

No license file is mentioned in the README, so usage rights beyond using the hosted page are unclear.

So what is it?

Token Converter is a small web tool that converts authentication token configurations between three formats used by tools that proxy or interact with AI language model APIs. The three formats are Codex auth.json, which is the configuration used by the Codex command-line interface, CPA (short for ChatGPT-Proxy-Api), and Sub2API (also called ChatGPT-to-API). Each of these is a different way to store or pass API credentials, and this tool lets you move a credential file from one of these formats into another without writing any code yourself. The tool is entirely browser-based and works without an internet connection. You can either open it directly from the GitHub Pages URL the author provides, or download the single index.html file and open it locally. There is no server involved and no data is sent anywhere, since all processing happens inside your browser. To use it, you drag and drop a JSON file or folder onto the page, or paste JSON text directly. The tool automatically detects which of the three formats the input is in, then converts it to whichever target format you select. The entire interaction is a single HTML page with no dependencies on external libraries fetched at runtime. The README is written in Chinese and is intentionally brief, so detailed documentation about each format's internal structure is not included in the repository. This tool is most relevant to people who work with self-hosted or third-party proxy setups for AI APIs and need to reformat their credential files to match a different tool's expected input.

Copy-paste prompts

Prompt 1
Explain the differences between the Codex auth.json, CPA, and Sub2API token formats this tool converts.
Prompt 2
Walk me through using this tool's drag-and-drop conversion for my AI proxy credential file.
Prompt 3
Is it safe to use this offline HTML tool to convert API credential files, and why does it not need a server?

Frequently asked questions

What is token-converter?

A single-page, offline browser tool that converts AI API credential files between Codex, CPA, and Sub2API formats.

What language is token-converter written in?

Mainly HTML. The stack also includes HTML, JavaScript.

What license does token-converter use?

No license file is mentioned in the README, so usage rights beyond using the hosted page are unclear.

How hard is token-converter to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is token-converter for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.