Skip to content

About

Standalone Go transcription proxy using Codex ChatGPT authentication

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

19 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Codex Transcribe πŸŽ™οΈ

A free speech-to-text API powered by your ChatGPT account. Free ChatGPT accounts work too. Self-hosted, drop-in compatible with the OpenAI Whisper API. No API credits, no per-minute billing.

Go Version License: MIT Docker Ready OpenAI Compatible Cost

Speaking a prompt into OpenCode: the audio is transcribed by codex-transcribe in about a second and pasted into the prompt box

Real run: a synthetic voice is played into a virtual mic, Voxtype sends it to codex-transcribe, and the transcript is pasted into OpenCode, which has no built-in voice input. The status bar is added in post. How this demo was made.


πŸ’Έ Why Codex Transcribe?

Transcription APIs bill by the minute. Codex Transcribe routes audio through the transcription feature already included with a ChatGPT account, so you get a Whisper-compatible API without paying for API usage.

  • βœ… Works with free ChatGPT accounts. No Plus, Pro, or OpenAI API billing required. Sign in with any ChatGPT account.
  • πŸ”Œ Drop-in replacement. Point any OpenAI SDK or Whisper client at http://<your-server>/v1 and keep your existing code.
  • πŸ” Multi-account failover. Connect several accounts; if one fails, requests move to the next automatically.
OpenAI Whisper API Codex Transcribe
Price Billed per audio minute $0, uses your ChatGPT account
Account needed OpenAI API account with billing Any ChatGPT account, including free
API shape POST /v1/audio/transcriptions Same endpoint, same response
Hosting OpenAI cloud Self-hosted (laptop, homelab, or VPS)
from openai import OpenAI

client = OpenAI(base_url="http://127.0.0.1:8378/v1", api_key="sk-dictate-YOUR_KEY")
with open("recording.wav", "rb") as f:
    print(client.audio.transcriptions.create(model="whisper-1", file=f).text)

✨ Key Features

  • πŸ’° Free transcription API: Uses your ChatGPT account session instead of paid API credits. Free accounts are supported.
  • ⚑ Drop-in OpenAI Whisper API: Fully compatible with POST /v1/audio/transcriptions. Any client built for OpenAI Whisper works out of the box.
  • πŸ–₯️ Web Dashboard: Connect ChatGPT accounts, check health and latency, issue API keys, and copy ready-made cURL / Python / Node snippets.
  • πŸŽ™οΈ Built-in Playground: Record from your mic and transcribe right in the browser.
  • πŸ” Multi-account Failover: Standby accounts take over automatically when the active one fails.
  • 🐧 System-wide Voice Typing: Pre-configured Voxtype integration for global Linux push-to-talk speech-to-text.
  • πŸ”’ Privacy & Security: Local loopback by default, credentials in your OS's native secure store, password-protected dashboard, and no server-side audio retention.
  • 🐳 One-Command Deployment: Run anywhere with Docker Compose or a standalone Go binary.

πŸ–₯️ Web Management Dashboard

Open http://127.0.0.1:8378/accounts to connect ChatGPT accounts (free or paid), create API keys, grab copy-paste code snippets, and test with your microphone:

Codex Transcribe web dashboard

πŸ–₯️ Platform Support

Windows macOS Linux
Architectures x64, ARM64 Intel, Apple Silicon x64, ARM64
Credentials stored in Your Windows profile, encrypted with DPAPI macOS Keychain Desktop keyring (Secret Service)
Release download .zip .tar.gz .tar.gz

Windows builds are available from v0.2.0. Docker works everywhere Docker does. Headless servers without a keyring can set CODEX_DICTATE_CREDENTIAL_STORE=file.


πŸš€ Quick Start

Option 1: Background service (recommended)

Download the release for your OS, verify its checksum, and install it as a background service. It starts right away and again every time you log in, with no terminal window to keep open. No administrator rights are needed.

Windows (PowerShell):

$version = "v0.3.0"
$arch = if ($env:PROCESSOR_ARCHITECTURE -eq "ARM64") { "arm64" } else { "amd64" }
$zip = "codex-transcribe_${version}_windows_${arch}.zip"
$base = "https://github.com/DaDecky/codex-transcribe/releases/download/$version"

Invoke-WebRequest "$base/$zip" -OutFile $zip
Invoke-WebRequest "$base/$zip.sha256" -OutFile "$zip.sha256"
if ((Get-FileHash $zip -Algorithm SHA256).Hash -ne (Get-Content "$zip.sha256").Split(" ")[0]) { throw "Checksum mismatch" }

Expand-Archive $zip -DestinationPath codex-transcribe
.\codex-transcribe\codex-transcribe.exe service install

macOS / Linux:

version=v0.3.0
platform=$(uname -s | tr '[:upper:]' '[:lower:]')
arch=$(uname -m | sed 's/x86_64/amd64/; s/aarch64/arm64/')
archive="codex-transcribe_${version}_${platform}_${arch}.tar.gz"
base="https://github.com/DaDecky/codex-transcribe/releases/download/${version}"

curl -fLO "${base}/${archive}"
curl -fLO "${base}/${archive}.sha256"
(sha256sum -c "${archive}.sha256" 2>/dev/null || shasum -a 256 -c "${archive}.sha256") \
  && tar -xzf "${archive}" && ./codex-transcribe service install

Then open http://127.0.0.1:8378/accounts, set your dashboard password, connect your ChatGPT account (a free one is fine), and create an API key. That's it: you now have a free Whisper-compatible endpoint.

Windows macOS Linux
Runs from %LocalAppData%\Programs\codex-transcribe ~/Library/Application Support/codex-transcribe/bin ~/.local/share/codex-transcribe/bin
Starts at login via HKCU\…\Run entry LaunchAgent systemd user unit
Logs %LocalAppData%\codex-transcribe\logs ~/Library/Logs/codex-transcribe.log journalctl --user -u codex-transcribe

Manage it with codex-transcribe service status | stop | start | uninstall. Uninstalling keeps your accounts, API keys and dashboard password. To upgrade, download the new release and run service install again.

The binaries are not code-signed yet: Windows SmartScreen may ask you to confirm, and on macOS you may need to allow the app in System Settings β†’ Privacy & Security.

Option 2: Docker Compose

Best for servers and homelabs:

git clone https://github.com/DaDecky/codex-transcribe.git
cd codex-transcribe
docker compose up -d --build

Then open http://127.0.0.1:8378/accounts as above. See the Docker guide for remote hosts.

Option 3: Run in a terminal or build from source

To try it without installing anything, run the downloaded binary directly (codex-transcribe.exe or ./codex-transcribe); it stops when you close the terminal. To build it yourself (Go 1.27.1+):

git clone https://github.com/DaDecky/codex-transcribe.git
cd codex-transcribe
go build -o codex-transcribe .
./codex-transcribe

πŸ’» API Usage & Terminal Example

Codex Transcribe Terminal Demo

Send any audio file to the proxy just like you would with the official OpenAI API:

curl http://127.0.0.1:8378/v1/audio/transcriptions \
  -H "Authorization: Bearer sk-dictate-YOUR_KEY" \
  -F "[email protected];type=audio/wav" \
  -F "model=whisper-1"

Response (application/json):

{
  "text": "And so, my fellow Americans, ask not what your country can do for you; ask what you can do for your country."
}

Pass -F "response_format=text" for plain text output.


πŸŽ™οΈ Desktop Voice Typing with Voxtype

Turn codex-transcribe into a system-wide push-to-talk voice typing tool on Linux:

# Automated installer for Linux (systemd user service)
python3 scripts/install-voxtype.py install

Hold your hotkey (e.g. Super + D), speak, and your words are typed directly into the active window. See docs/voxtype.md for custom bindings, audio devices, and service controls.

For Oh My Pi users, native recording is managed automatically via omp-dictation.


βš™οΈ Configuration & Flags

Flag / Environment Variable Default Description
-listen 127.0.0.1:8378 Host and port to bind
CODEX_DICTATE_CREDENTIAL_STORE keyring Credential backend: keyring (the OS-native store, see Platform support) or file (headless/Docker)
CODEX_DICTATE_PUBLIC_URL (none) Public HTTPS origin when running behind reverse proxy
CODEX_TRANSCRIBE_API_KEY (none) Optional static consumer Bearer key
-auth-file ~/.codex/auth.json Explicit path for legacy Codex auth file
-timeout 90s Upstream transcription timeout
-max-upload-mib 25 Maximum multipart request size (1–1024 MiB)

πŸ“š Documentation


⚠️ Disclaimer

This is an unofficial integration calling ChatGPT's internal /backend-api/transcribe endpoint via Codex authentication. It is not affiliated with or endorsed by OpenAI. Use your own account in compliance with OpenAI terms. "Free" means no API billing from this project; usage limits and availability depend on what ChatGPT allows for your account and may change at any time.


πŸ“„ License

MIT Β© DaDecky. Acknowledgments to sicko7947 for inspiration and initial browser headers.

About

Standalone Go transcription proxy using Codex ChatGPT authentication

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages