[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-10251":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":40,"readmeContent":41,"aiSummary":42,"trendingCount":15,"starSnapshotCount":15,"syncStatus":43,"lastSyncTime":44,"discoverSource":45},10251,"ChatGPT","PawanOsman\u002FChatGPT","PawanOsman","OpenAI API Free Reverse Proxy","https:\u002F\u002Fdiscord.pawan.krd",null,"TypeScript",5888,1005,45,0,1,5,15,6,71.01,"GNU Affero General Public License v3.0",false,"main",true,[26,27,28,29,30,31,32,33,34,35,36,37,38,39],"ai","api","bard","bing","chat","chatbot","chatgpt","chatgpt-api","free","gpt-3","gpt-4","openai","openai-api","reverse-proxy","2026-06-12 04:00:49","# This project is a bit outdated and isn’t working right now. We’ll update it, but we’re tied up with another project at the moment. In the meantime, you’re welcome to use [our hosted models for free](#accessing-our-hosted-api).\n\n\n## ChatGPT `gpt-3.5-turbo` API for Free (as a Reverse Proxy)\n\nWelcome to the ChatGPT API Free Reverse Proxy, offering free self-hosted API access to ChatGPT (`gpt-3.5-turbo`) with OpenAI's familiar structure, so no code changes are needed.\n\n## Quick Links\n\n- [Join our Discord Community](https:\u002F\u002Fdiscord.pawan.krd) for support and questions.\n\t- ⚡Note: Your Discord account must be at least 7 days old to be able join our Discord community.\n\n## Table of Contents\n\n- [Features](#features)\n- Option 1: [Installing\u002FSelf-Hosting Guide](#installingself-hosting-guide) (Without using any API key)\n  - Method 1: [Using Docker](#using-docker) or [Run it with a Chat Web UI using docker-compose](.\u002Fdocker-compose)\n  - Method 2: [Your PC\u002FServer](#your-pcserver) (manually)\n  - Method 3: [Termux on Android Phones](#termux-on-android-phones)\n- Option 2: [Accessing Our Hosted API](#accessing-our-hosted-api) (Free)\n- [Usage Examples](#usage-examples)\n- [License](#license)\n\n## Features\n\n- **Streaming Response**: The API supports streaming response, so you can get the response as soon as it's available.\n- **API Endpoint Compatibility**: Full alignment with official OpenAI API endpoints, ensuring hassle-free integration with existing OpenAI libraries.\n- **Complimentary Access**: No charges for API usage, making advanced AI accessible to everyone even **without an API key**.\n\n## Installing\u002FSelf-Hosting Guide\n\n### Using Docker\n1. Ensure Docker is installed by referring to the [Docker Installation Docs](https:\u002F\u002Fdocs.docker.com\u002Fengine\u002Finstall\u002F).\n2. Run the following command:\n   ```bash\n   docker run -dp 3040:3040 pawanosman\u002Fchatgpt:latest\n   ```\n3. Done! You can now connect to your local server's API at:\n   ```\n   http:\u002F\u002Flocalhost:3040\u002Fv1\u002Fchat\u002Fcompletions\n   ```\n   Note that the base URL is `http:\u002F\u002Flocalhost:3040\u002Fv1`.\n\n### Install with chat web interfaces\n✅ You can run third-party chat web interfaces, such as BetterChatGPT and LobeChat, with this API using Docker Compose. [Click here for the installation guide](.\u002Fdocker-compose).\n\n### Your PC\u002FServer\n\nTo install and run the ChatGPT API Reverse Proxy on your PC\u002FServer by following these steps:\n\nNote: This option is not available to all countries yet. if you are from a country that is not supported, you can use a **U.S. VPN** or use **our hosted API**.\n\n1. Ensure NodeJs (v19+) is installed: [Download NodeJs](https:\u002F\u002Fnodejs.org\u002Fen\u002Fdownload)\n2. Clone this repository:\n   ```bash\n   git clone https:\u002F\u002Fgithub.com\u002FPawanOsman\u002FChatGPT.git\n   ```\n3. Open `start.bat` (Windows) or `start.sh` (Linux with `bash start.sh` command) to install dependencies and launch the server.\n4. Done, you can connect to your local server's API at:\n   ```\n   http:\u002F\u002Flocalhost:3040\u002Fv1\u002Fchat\u002Fcompletions\n   ```\n   Note that the base url will be `http:\u002F\u002Flocalhost:3040\u002Fv1`\n\nTo include installation instructions for Termux on Android devices, you can add the following section right after the instructions for Linux in the **Installing\u002FSelf-Hosting Guide**:\n\n### Termux on Android Phones\n\nTo install and run the ChatGPT API Reverse Proxy on Android using Termux, follow these steps:\n\n1. Install [Termux](https:\u002F\u002Fplay.google.com\u002Fstore\u002Fapps\u002Fdetails?id=com.termux) from the Play Store.\n2. Update Termux packages:\n   ```bash\n   apt update\n   ```\n3. Upgrade Termux packages:\n   ```bash\n   apt upgrade\n   ```\n4. Install git, Node.js, and npm:\n   ```bash\n   apt install -y git nodejs\n   ```\n5. Clone the repository:\n   ```bash\n   git clone https:\u002F\u002Fgithub.com\u002FPawanOsman\u002FChatGPT.git\n   ```\n6. Navigate to the cloned directory:\n   ```bash\n   cd ChatGPT\n   ```\n7. Start the server with:\n\n   ```bash\n   bash start.sh\n   ```\n\n8. Your local server will now be running and accessible at:\n\n   ```\n   http:\u002F\u002Flocalhost:3040\u002Fv1\u002Fchat\u002Fcompletions\n   ```\n\n   Note that the base url will be `http:\u002F\u002Flocalhost:3040\u002Fv1`\n\n   You can now use this address to connect to your self-hosted ChatGPT API Reverse Proxy from Android applications\u002Fwebsites that support reverse proxy configurations, on the same device.\n\n## Accessing Our Hosted API\n\nUtilize our pre-hosted ChatGPT-like API for free by:\n\n1. Joining our [Discord server](https:\u002F\u002Fdiscord.pawan.krd).\n2. Obtaining an API key from the `#Bot` channel with the `\u002Fkey` command.\n3. Incorporating the API key into your requests to:\n   ```\n   https:\u002F\u002Fapi.pawan.krd\u002Fv1\u002Fchat\u002Fcompletions\n   ```\n\n## Usage Examples\n\nLeverage the same integration code as OpenAI's official libraries by simply adjusting the API key and base URL in your requests. For self-hosted setups, ensure to switch the base URL to your local server's address as mentioned above.\n\n### Example Usage with OpenAI Libraries\n\n#### Python Example\n\n```python\nimport openai\n\nopenai.api_key = 'anything'\nopenai.base_url = \"http:\u002F\u002Flocalhost:3040\u002Fv1\u002F\"\n\ncompletion = openai.chat.completions.create(\n    model=\"gpt-3.5-turbo\",\n    messages=[\n        {\"role\": \"user\", \"content\": \"How do I list all files in a directory using Python?\"},\n    ],\n)\n\nprint(completion.choices[0].message.content)\n```\n\n#### Node.js Example\n\n```js\nimport OpenAI from 'openai';\n\nconst openai = new OpenAI({\n\tapiKey: \"anything\",\n\tbaseURL: \"http:\u002F\u002Flocalhost:3040\u002Fv1\",\n});\n\nconst chatCompletion = await openai.chat.completions.create({\n  messages: [{ role: 'user', content: 'Say this is a test' }],\n  model: 'gpt-3.5-turbo',\n});\n\nconsole.log(chatCompletion.choices[0].message.content);\n```\n\n## License\n\nThis project is under the AGPL-3.0 License. Refer to the [LICENSE](LICENSE) file for detailed information.\n","该项目提供了一个免费的OpenAI API反向代理服务，允许用户无需API密钥即可访问ChatGPT (`gpt-3.5-turbo`)。其核心功能包括支持流式响应和与官方OpenAI API端点完全兼容，确保了与现有库的无缝集成。技术上，项目采用TypeScript编写，并可通过Docker、本地PC\u002F服务器或Termux（Android手机）进行部署。适合需要低成本接入高级AI能力的应用场景，如个人开发者测试、小型企业内部使用等。尽管当前版本存在一些问题，但项目方提供了托管模型供免费试用。",2,"2026-06-11 03:27:27","top_topic"]