爱意满满的作品展示区。
justlikemaki

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

  •  
  •   justlikemaki · Jul 30, 2025 · 3253 views
    This topic created in 290 days ago, the information mentioned may be changed or developed.

    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 replies    2025-07-31 10:59:05 +08:00
    ferock
        1
    ferock  
    PRO
       Jul 30, 2025 via Android
    再加个别名修改,就可以用来 cursor 使用了
    cyio
        2
    cyio  
       Jul 31, 2025
    {"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
       Jul 31, 2025
    @cyio Check if your account has the necessary permissions
    你可能需要传 project-id
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3030 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 12:02 · PVG 20:02 · LAX 05:02 · JFK 08:02
    ♥ Do have faith in what you're doing.