{"id":28526865,"url":"https://github.com/tw93/next1","last_synced_at":"2025-08-12T23:01:59.166Z","repository":{"id":288099010,"uuid":"966818759","full_name":"tw93/next1","owner":"tw93","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-16T07:17:42.000Z","size":2668,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-05T22:40:26.449Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tw93.png","metadata":{"files":{"readme":"README-CN.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-15T13:56:23.000Z","updated_at":"2025-04-16T07:17:45.000Z","dependencies_parsed_at":"2025-04-15T15:46:37.174Z","dependency_job_id":null,"html_url":"https://github.com/tw93/next1","commit_stats":null,"previous_names":["tw93/next1"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tw93/next1","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tw93%2Fnext1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tw93%2Fnext1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tw93%2Fnext1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tw93%2Fnext1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tw93","download_url":"https://codeload.github.com/tw93/next1/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tw93%2Fnext1/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270149337,"owners_count":24535727,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-09T12:10:52.859Z","updated_at":"2025-08-12T23:01:59.147Z","avatar_url":"https://github.com/tw93.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"一键式部署 ChatGPT 私有代理，由 Next.js 驱动\n\n简体中文 | [English](./README.md)\n\n## 简介\n\n此项目基于 Next.js，使用 Rewriter 完成代理功能，核心代码只有 [2 行](https://github.com/imyuanx/chatgpt-proxy/blob/main/next.config.js#L7-L8)，结合 Zeabur 或 Vercel 可以很简单的托管你的私有代理服务\n\n### [示例](https://chatgpt-proxy-preview.zeabur.app)\n\n开始之前，最好先查看[如何使用](#如何使用)章节判断此项目是否适用于你\n\n## 在 Zeabur 上部署更新\n\n推荐使用 Zeabur，具体操作如下\n\n1. Fork 这个仓库为你自己的仓库\n\n\u003cimg width=\"600\" src=\"public/frok.png\" alt=\"fork\" /\u003e\n\n2. 在 [Zeabur](https://zeabur.com) 部署你的仓库\n\n3. 在 [Zeabur](https://zeabur.com) 控制台新增一个服务\n\n\u003cimg width=\"600\" src=\"public/zeabur-console.png\" alt=\"步骤 1\" /\u003e\n\n4. 选择从源码部署\n\n\u003cimg width=\"600\" src=\"public/zeabur-console-1.png\" alt=\"步骤 2\" /\u003e\n\n5. 选择你 fork 的仓库\n\n\u003cimg width=\"600\" src=\"public/zeabur-console-2.png\" alt=\"步骤 3\" /\u003e\n\n6. 选择 main 分支，开始部署\n\n\u003cimg width=\"600\" src=\"public/zeabur-console-3.png\" alt=\"步骤 4\" /\u003e\n\n7. 部署成功后，在 setting 选项卡下生成域名\n\n\u003cimg width=\"600\" src=\"public/zeabur-console-4.png\" alt=\"步骤 5\" /\u003e\n\n8. 最后得到你的服务\n\n\u003cimg width=\"600\" src=\"public/zeabur-console-5.png\" alt=\"步骤 6\" /\u003e\n\n## 在 Vercel 上部署\n\n\u003e ❗️⚠️❗️**警告：根据 Vercel 使用条款，此项目或许违反了 [Never Fair Use - Proxies and VPNs](https://vercel.com/docs/concepts/limits/fair-use-policy#never-fair-use) 条目，强烈不推荐使用 Vercel 托管此项目！**\n\u003e\n\u003e ❗️⚠️❗️**警告：如果因为部署此项目到 Vercel 导致您的账号被处罚，请自行承担后果**\n\n如果使用 Vercel 部署服务，必须[自定义域名](https://vercel.com/docs/concepts/get-started/assign-domain)，因为自定义域名不受 GFW 影响，具体操作如下\n\n\u003ca href=\"https://vercel.com/import/project?template=https://github.com/imyuanx/chatgpt-proxy\" target=\"_blank\" rel=\"noopener noreferrer\"\u003e\u003cimg src=\"https://vercel.com/button\" alt=\"部署到 Vercel\"\u003e\u003c/a\u003e\n\n1. 点击上方一键部署按钮\n\n\u003cimg width=\"600\" src=\"public/vercel.png\" alt=\"One-click deploy\" /\u003e\n\n2. 部署后会自动为你 fork 此仓库，在输入框中输入自定义的仓库名称\n\n\u003cimg width=\"600\" src=\"public/vercel-deploy.png\" alt=\"Deploy\" /\u003e\n\n3. 部署成功后，得到你的服务\n\n\u003cimg width=\"600\" src=\"public/vercel-success.png\" alt=\"Alt text\" /\u003e\n\n4. 你必须为你的服务添加一个自定义域名，否则你将不能在国内访问你的服务\n\n\u003cimg width=\"600\" src=\"public/vercel-domain.png\" alt=\"Domain\" /\u003e\n\n## 如何使用\n\n无论你使用 Zeabur 还是 Vercel，部署完成后你都会得到以下这个代理服务\n\n\u003cimg width=\"600\" src=\"public/proxy.png\" alt=\"Proxy service\" /\u003e\n\n其中红框中的地址会完全转发到`https://api.openai.com`，并且此地址在国内可访问\n\n你可以在支持自定义 `API` 的应用中使用你的代理服务，实现在国内调用 `openai` 接口的目的\n\n例如[openai-translator](https://github.com/yetone/openai-translator)：\n\n\u003cimg width=\"600\" src=\"public/openai-translator.png\" alt=\"Alt text\" /\u003e\n\n[回到顶部](#简介)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftw93%2Fnext1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftw93%2Fnext1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftw93%2Fnext1/lists"}