V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
justlikemaki
V2EX  ›  分享创造

GeminiCLI 转 API 服务, Kiro 转 API 服务,免费使用 Gemini 和 Claude 大模型

  •  
  •   justlikemaki · 2 天前 · 810 次点击

    GeminiCLI2API 项目架构升级,也更名为 AIClient-2-API

    项目简介

    一个将 Google Gemini CLIKiro 客户端 封装为本地 API 的工具,并提供 OpenAI 兼容接口。

    核心功能

    1.解决了 Gemini 官方免费 API 额度紧张的问题。通过本项目,您可以使用 Google 的账号授权,享受更高的每日请求限额。

    2.逆向了 Kiro 客户端,兼容 social 和 aws 登陆方式,可以通过 API 的形式使用 Kiro 提供的免费 Claude4大模型。

    3.提供了与 OpenAI API 完全兼容的接口,让您现有的工具链和客户端(如 LobeChat, NextChat 等)可以零成本接入 Gemini2.5 和 Claude 。

    4.通过可配置的日志功能,捕获并记录所有请求的提示词,便于审计、调试和构建私有数据集。

    5.支持 MCP 和多模态输入,释放模型全部能力。还可通过Claude Code使用 Kiro 提供的 Claude ,免费享受付费的体验。

    命令行截图

    命令行截图

    GeminiCLI 官方对接口限制的说明

    GeminiCLI

    对接 Claude Code 的使用示例

    Claude Code

    3 条回复    2025-07-31 10:59:05 +08:00
    ferock
        1
    ferock  
    PRO
       2 天前 via Android
    再加个别名修改,就可以用来 cursor 使用了
    cyio
        2
    cyio  
       1 天前
    {"error":{"message":"Access forbidden. Insufficient permissions.","code":403,"suggestions":["Ensure your Google Cloud project has the Code Assist API enabled","Check if your account has the necessary permissions","Verify the project ID is correct"],"details":{"error":{"code":403,"message":"Gemini for Google Cloud API has not been used in project 103595593328 before or it is disabled. Enable it by visiting
    justlikemaki
        3
    justlikemaki  
    OP
       1 天前
    @cyio Check if your account has the necessary permissions
    你可能需要传 project-id
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2557 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 20ms · UTC 13:34 · PVG 21:34 · LAX 06:34 · JFK 09:34
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.