{"id":34751972,"url":"https://github.com/faithererer/build2api","last_synced_at":"2026-05-16T16:38:28.543Z","repository":{"id":324875264,"uuid":"1098790289","full_name":"faithererer/build2api","owner":"faithererer","description":null,"archived":false,"fork":false,"pushed_at":"2025-11-18T12:59:05.000Z","size":369,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-26T17:11:53.875Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/faithererer.png","metadata":{"files":{"readme":"readme.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-18T06:30:55.000Z","updated_at":"2025-12-16T04:32:25.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/faithererer/build2api","commit_stats":null,"previous_names":["faithererer/build2api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/faithererer/build2api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faithererer%2Fbuild2api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faithererer%2Fbuild2api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faithererer%2Fbuild2api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faithererer%2Fbuild2api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/faithererer","download_url":"https://codeload.github.com/faithererer/build2api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faithererer%2Fbuild2api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33109814,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-12-25T05:23:37.064Z","updated_at":"2026-05-16T16:38:28.512Z","avatar_url":"https://github.com/faithererer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker版 aistudio-build-proxy\n集成 无头浏览器 + Websocket代理\n\n问题: ~~当前cookie导出方式导出的cookie可能时效较短.~~ 指纹浏览器导出cookie很稳\n\n## 使用方法:\n1. 导出Cookie到项目`camoufox-py/cookies/`文件夹下\n\n    #### 更稳定的方法：\n   用指纹浏览器开个新窗口登录 google, 然后到指纹浏览器`编辑窗口`，把 cookie 复制出来用，然后删除浏览器窗口就行，这个 cookie 超稳！！！\n\n    \u003cdetails\u003e\n       \u003csummary\u003e旧方法（不再推荐）：cookie很容易因为主账户的个人使用活动导致导出的cookie失效。\u003c/summary\u003e\n    (1) 安装导出Cookie的插件, 这里推荐 [Global Cookie Manager浏览器插件](https://chromewebstore.google.com/detail/global-cookie-manager/bgffajlinmbdcileomeilpihjdgjiphb)\n    \n    (2) 使用插件导出浏览器内所有涉及`google`的Cookie\n    \n    导出Cookie示例图:\n    ![Global Cookie Manager](/img/Global_Cookie_Manager.png)\n    ![Global Cookie Manager2](/img/Global_Cookie_Manager2.png)\n    \n    (3) 粘贴到项目 `camoufox-py/cookies/[自己命名].json` 中\n    \u003c/details\u003e\n2. 修改浏览器配置`camoufox-py/config.yaml`\n\n    (1) 在`camoufox-py`下, 将示例配置文件`config.yaml.example`, 重命名为 `config.yaml`, 然后修改`config.yaml`\n\n    (2) 实例 1 的`cookie_file` 填入自己创建 cookie文件名\n\n    (3) (可选项) `url` 默认为项目提供的AIStudio Build 链接(会连接本地5345的ws服务), 可修改为自己的\n\n    (4) (可选项) proxy配置指定浏览器使用的代理服务器\n\n3. 修改`docker-compose.yml`\n    \n    (1) 自己设置一个 `AUTH_API_KEY` , 最后自己调 gemini 时要使用该 apikey 调用, 不支持无 key\n4. 在项目根目录, 通过`docker-compose.yml`启动Docker容器\n\n    (1) 运行命令启动容器\n    ```bash\n    docker compose up -d\n    ```\n\n5. 等待一段时间后, 通过 http://127.0.0.1:5345 和 自己设置的`AUTH_API_KEY`使用.\n    \n    注1: 由于只是反代Gemini, 因此[接口文档](https://ai.google.dev/api)和Gemini API: `https://generativelanguage.googleapis.com`端点 完全相同, 使用只需将该url替换为`http://127.0.0.1:5345`即可, 支持原生Google Search、代码执行等工具。\n\n    注2: Cherry Studio等工具使用时, 务必记得选择提供商为 `Gemini`。\n\n## 日志查看\n1. docker日志\n```bash\ndocker logs [容器名]\n```\n2. 单独查看camoufox-py日志\n\n    camoufox-py/logs/app.log\n\n    且每次运行, logs下会有一张截图\n\n## 容器资源占用:\n![Containers Stats](/img/Containers_Stats.png)\n本图为仅使用一个cookie的占用\n\n## 运行效果示例:\n快速模型首字吐出很快,表明该代理网络较好,本程序到google链路通畅\n\n![running example](/img/running_example.gif)\n\n如果使用推理模型慢,那就是 aistudio 的问题, 和本项目没关系\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaithererer%2Fbuild2api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffaithererer%2Fbuild2api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaithererer%2Fbuild2api/lists"}