Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

vercel-api-proxy

This project is a Vercel reverse proxy. It is a completely free, all-purpose proxy that can handle all HTTP, HTTPS, and WebSocket interfaces on the internet, including OpenAI, Midjourney, GitHub, Google, Telegram, and more.

Both API interfaces and web pages can be proxied and used in restricted network environments.

Deploy

Vercel


How to Use

1. Deployment

There are two methods for deployment:

  1. Click the Deploy button above for a one-click deployment.
  2. Clone/fork this repository, log in to Vercel, and create a new project from it.

2. Configure a Custom Domain (Optional but Recommended)

For users in highly restricted regions where the default vercel.app domain is blocked, bind your own custom domain name to the Vercel deployment:

  1. Go to your Vercel project dashboard under Settings -> Domains.
  2. Add your custom domain and follow the instructions to point its CNAME record to the Vercel DNS servers.

3. Usage & Routing Rules

Format your requests by appending the protocol and destination URL to your proxy's origin:

  • https://yourdomain.com/https/destination-url -> Maps to https://destination-url
  • https://yourdomain.com/http/destination-url -> Maps to http://destination-url
  • https://yourdomain.com/wss/destination-url -> Maps to wss://destination-url

Examples:

  • OpenAI API Base URL: Use https://yourdomain.com/https/api.openai.com/v1 in your code (e.g. openai.api_base).
  • GitHub Release Downloads: Accelerate downloads by prepending the proxy domain: https://yourdomain.com/https/github.com/owner/repo/releases/download/...
  • Google Search: Access search results via https://yourdomain.com/https/www.google.com/search?q=query

Telegram MTProto Proxies

If you are trying to connect your native Telegram client app, you can use these pre-configured MTProto proxies:

  • MTProto Proxy 1 (Port 20020)
  • MTProto Proxy 2 (Port 20021)
  • MTProto Proxy 3 (Port 20022)

About

an universal proxy using vercel

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages