{"id":13456167,"url":"https://github.com/easychen/aiapi","last_synced_at":"2025-03-24T09:31:34.612Z","repository":{"id":187372151,"uuid":"676381383","full_name":"easychen/aiapi","owner":"easychen","description":"A Claude-driven, OpenAI specification-compliant API, free","archived":true,"fork":false,"pushed_at":"2023-08-20T07:27:48.000Z","size":2585,"stargazers_count":137,"open_issues_count":4,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-28T23:33:53.173Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"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/easychen.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}},"created_at":"2023-08-09T04:33:28.000Z","updated_at":"2024-10-09T02:38:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"463b6a79-6959-465d-877a-9b2fa3d47804","html_url":"https://github.com/easychen/aiapi","commit_stats":null,"previous_names":["easychen/aiapi"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easychen%2Faiapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easychen%2Faiapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easychen%2Faiapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easychen%2Faiapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/easychen","download_url":"https://codeload.github.com/easychen/aiapi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245243313,"owners_count":20583605,"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","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":"2024-07-31T08:01:17.161Z","updated_at":"2025-03-24T09:31:33.666Z","avatar_url":"https://github.com/easychen.png","language":null,"funding_links":[],"categories":["Others"],"sub_categories":[],"readme":"# AiAPI\n\n\u003e 这是软件的下载和支持页面\n\nAiAPI是个跨平台客户端，它可以将 Claude 网站转化为 OpenAI 兼容的 API，这样你就可以在所有兼容 OpenAI 的软件里边使用 Claude 的 100k 上下文能力。更棒的是，这是免费的。感谢Claude。\n\n# 特色功能\n\n1. 跨平台，Mac/Windows均可使用\n1. 基于 Claude2，提供100k上下文\n1. 兼容 OpenAI API，直接重用 OpenAI 的现有工具\n1. 支持 CookieCloud 浏览器插件，可以自动定时刷新和同步Cookie\n\n# 下载\n\n请移步[仓库的 Release](https://github.com/easychen/aiapi/releases) \n\n# 界面和功能\n\n![](images/20230810113755.png)\n\n![](images/20230810113811.png)\n\n![](images/20230810113831.png)\n\n# 视频教程\n\n![](images/20230812032136.png)\n\n[请移步B站](https://www.bilibili.com/video/BV1Ku4y1q75F?t=946.6)\n\n# 使用说明\n\n1. \u003chttps://claude.ai\u003e 注册账号并登入\n1. 进入 \u003chttps://claude.ai/chats\u003e 页面，F12打开DevTools → Applications → Cookies → 复制sessionKey\n![](images/20230811122810.png)\n1. 将 sessionKey 填入到 Settings 面板中，并保存\n![](images/20230811123049.png)\n1. 将原来填写OpenAI API Endpoint 的地方改为 http://127.0.0.1:3456 即可（如果原来后边有/v1/...，那么把这部分也加上）\n1. API Key可以随意填写，但部分客户端可能对格式有校验，因此你也可以使用这个 `sk-1234567890ULScvLPEHbT3B3bkFJ34mOSRJSVf9fMWP8UXyw`\n1. ~~本接口目前只支持 stream 模式，因此请打开`流式输出`选项~~ 已在 1.0.2 版本支持\n\n# 兼容性说明\n\n1. 目前仅兼容 `/v1/chat/completions` 接口、`messages` 参数。模型直接使用 `claude-2`。\n1. 支持连续对话，`messages` 参数会自动拼接。\n\n# 使用AiAPI的项目\n\n1. [book-by-ai](https://github.com/easychen/book-by-ai)：使用AI生成高质量的电子书\n\n# 软件使用免责声明\n\n1. 本软件仅供用户自行安装和使用，开发者不提供任何形式的技术支持。\n2. 用户在使用本软件时，应自行承担一切风险和责任，包括但不限于使用不当、数据丢失、系统崩溃等。\n3. 开发者不对本软件的适用性、准确性、可靠性、完整性和及时性做出任何明示或暗示的保证。\n4. 用户在使用本软件时，应自行了解并遵守相关法律法规和网站的用户协议，如因用户违反相关规定而导致的任何法律纠纷或损失，开发者概不负责。\n5. 本软件可能会受到目标网站的反爬虫机制的限制，用户在使用本软件时应自行承担因此可能导致的账号封禁、IP封禁等风险。\n6. 开发者不对用户使用本软件可能导致的任何直接、间接、特殊、附带或衍生的损失或损害承担责任，包括但不限于利润损失、数据损失、业务中断等。\n7. 用户在使用本软件时，应自行承担因使用本软件而产生的所有责任，包括但不限于对第三方的侵权、违法行为等。\n8. 开发者保留随时修改、暂停或终止本软件的权利，而无需提前通知用户，并对此不承担任何责任。\n9. 用户在使用本软件时，即表示同意遵守本免责条款的所有规定，如不同意本免责条款的任何内容，请立即停止使用本软件。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasychen%2Faiapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feasychen%2Faiapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasychen%2Faiapi/lists"}