A CLI with a local browser control panel that turns ChatGPT into an OpenAI-compatible API.
Sign in with your account, get http://127.0.0.1:8787/v1. Tokens come out of the
subscription, not an API-key bill.
Auth2API is one CLI binary with an embedded local control panel. It also runs headlessly on servers and in scripts.
brew install CatVinci-Studio/tap/auth2apiOr tap CatVinci Studio first:
brew tap CatVinci-Studio/tap
brew install auth2apiThe formula will be added to CatVinci-Studio/homebrew-tap after the first CLI-only release is published.
Download the archive for your platform from Releases:
| Platform | Archive |
|---|---|
| macOS Apple Silicon | auth2api-macos-arm64.tar.gz |
| macOS Intel | auth2api-macos-x64.tar.gz |
| Windows x64 | auth2api-windows-x64.zip |
| Linux x64 | auth2api-linux-x64.tar.gz |
Extract auth2api (auth2api.exe on Windows) into a directory in PATH. A
.sha256 checksum is attached beside every archive.
cargo install --git https://github.com/CatVinci-Studio/Auth2API auth2api-cliRun it with no arguments to open the local control panel. Sign-in, server controls, API keys, settings, and usage all live in the browser:
auth2api # http://127.0.0.1:8790
auth2api web --no-open # print the URL without opening a browserThe headless commands remain available for servers and scripts:
auth2api login
auth2api keys new zed
auth2api serve # http://127.0.0.1:8787/v1Then point anything OpenAI-compatible at it:
export OPENAI_BASE_URL=http://127.0.0.1:8787/v1
export OPENAI_API_KEY=sk-a2a-...MIT.