GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - aman06016/LLM-auth-proxy: llm-auth-proxy is a local OpenAI-compatible proxy that lets projects use standard /v1/responses and /v1/chat/completions endpoints while authenticating upstream with either Codex OAuth or a normal API key. It is designed to smooth over compatibility differences so existing tools can work with Codex-backed models without major changes.

BranchesTags
Open more actions menu

Latest commit

 

History

9 Commits
9 Commits

Folders and files

NameName
Last commit message
Last commit date
config
config
 
 
src
src
 
 
test
test
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
SETUP-CODEX-OAUTH.md
SETUP-CODEX-OAUTH.md
 
 
package.json
package.json
 
 

Repository files navigation

LLM-auth-proxy

LLM-auth-proxy is a local OpenAI-compatible proxy that lets existing tools and projects keep using standard OpenAI-style endpoints while authenticating upstream with either Codex OAuth or a normal API key.

Supported auth modes:

  • codex-oauth
  • api-key

Why

Some projects only support an OpenAI-style base_url plus API key. This proxy lets those projects talk to a local service while the service decides how to authenticate upstream.

v1 features

  • GET /health
  • GET /v1/models
  • POST /v1/responses
  • POST /v1/chat/completions
  • Codex OAuth auth-file loading and refresh
  • API-key backend support
  • Loopback bind by default

Supported API surface

The local proxy currently supports:

  • GET /health health summary for configured backends
  • GET /v1/models lightweight model list for OpenAI-compatible clients that probe available models
  • POST /v1/responses primary local Responses API surface
  • POST /v1/chat/completions compatibility route for projects that still send chat-completions style bodies

Compatibility behavior:

  • extra unsupported fields are ignored when possible
  • temperature is dropped for gpt-5* requests
  • messages, input, and prompt are normalized into a Codex-compatible request body

Not supported in v1:

  • streaming responses
  • embeddings
  • images
  • audio
  • realtime APIs

Quick start

For a Codex OAuth-specific machine setup guide, read:

  • ./SETUP-CODEX-OAUTH.md
  1. Copy the example config:
cp config/llm-auth-proxy.example.json config/llm-auth-proxy.json
  1. Start the server:
npm start
  1. Point a client at it:
export OPENAI_BASE_URL=http://127.0.0.1:4318/v1
export OPENAI_API_KEY=dummy

Config

The server reads config from:

  • LLM_AUTH_PROXY_CONFIG
  • or ./config/llm-auth-proxy.json

Environment overrides:

  • LLM_AUTH_PROXY_HOST
  • LLM_AUTH_PROXY_PORT
  • LLM_AUTH_PROXY_DEFAULT_BACKEND

Notes

  • For chat/completions, the proxy maps the request into a Responses-style payload and converts the response back into a chat-completions shape.
  • Codex OAuth requests are sent to the ChatGPT Codex backend path (/backend-api/codex/responses) with the same Codex-specific headers OpenClaw uses.

About

llm-auth-proxy is a local OpenAI-compatible proxy that lets projects use standard /v1/responses and /v1/chat/completions endpoints while authenticating upstream with either Codex OAuth or a normal API key. It is designed to smooth over compatibility differences so existing tools can work with Codex-backed models without major changes.

Resources

Readme
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.