MCPcopy Index your code
hub / github.com/egoist/openai-proxy

github.com/egoist/openai-proxy @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
5 symbols 8 edges 5 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

OpenAI proxy on Cloudflare Worker and Vercel Edge.

If you are close to Hong Kong, it's better to deploy on Vercel. Since Cloudflare will use Hong Kong which is not a supported region for OpenAI API.

To deploy on Vercel:

  • Fork this repo
  • Add your repo on Vercel

To deploy on Cloudflare:

pnpm i
pnpm run deploy

Extension points exported contracts — how you extend this code

Env (Interface)
(no doc)
src/index.ts

Core symbols most depended-on inside this repo

pickHeaders
called by 2
src/handle-request.ts
fetch
called by 1
src/index.ts
handleRequest
called by 1
src/handle-request.ts
rewrites
called by 0
next.config.mjs

Shape

Function 4
Interface 1

Languages

TypeScript100%

Modules by API surface

src/index.ts2 symbols
src/handle-request.ts2 symbols
next.config.mjs1 symbols

For agents

$ claude mcp add openai-proxy \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact