liteoauthllm

module
v0.0.0-...-7063737 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2026 License: MIT

README

liteoauthllm

CI Go Report Card

A lightweight local AI gateway proxy that uses ChatGPT or Claude subscription OAuth to proxy requests to OpenAI and Anthropic APIs.

Quick Start

go install github.com/lu-zhengda/liteoauthllm/cmd/liteoauthllm@latest

liteoauthllm login openai        # Opens browser for OAuth
liteoauthllm login anthropic     # Paste token from `claude setup-token`
liteoauthllm                     # Start proxy on :8639

export OPENAI_BASE_URL=http://127.0.0.1:8639/v1
export ANTHROPIC_BASE_URL=http://127.0.0.1:8639

See examples/ for Pydantic AI, LangChain, Vercel AI SDK, and more.

How It Works

Routes requests by path, injects auth headers, streams responses back unmodified.

Path Provider Notes
/v1/responses OpenAI Codex models only (e.g. gpt-5.3-codex)
/v1/messages Anthropic All subscription models
/v1/models Auto-detect anthropic-version header → Anthropic, otherwise OpenAI

This project is not affiliated with OpenAI or Anthropic. For personal, local use only. You are solely responsible for compliance with provider terms of service. Provided "as is" with no warranty.

License

MIT

Directories

Path Synopsis
cmd
liteoauthllm command
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL