• 请不要在回答技术问题时复制粘贴 AI 生成的内容
cyoking
V2EX  ›  程序员

gemini-cli 可以使用了

  •  
  •   cyoking · Jun 25, 2025 · 10215 views
    This topic created in 495 days ago, the information mentioned may be changed or developed.
    43 replies  •  2025-07-02 13:32:59 +08:00
    xiaopanzi
    xiaopanzi
    Jun 26, 2025
    1
    Nice
    cvbnt
    cvbnt
    Jun 26, 2025 via Android
    2
    能支持 windows 就已经遥遥领先 claude code 了
    cj323
    cj323
    Jun 26, 2025
    3
    试了一下,好爽!



    一直希望能有个好用的终端 agent ,gemini 这个体验完全够了。

    正好一直不适应其他 ai 编辑器,这下可以回归 terminal 和我的老伙计 vim 了!
    kevin100702
    kevin100702
    Jun 26, 2025
    4
    登录不了是什么原因
    marine2c
    marine2c
    Jun 26, 2025
    5
    登录不了
    a33291
    a33291
    Jun 26, 2025
    6
    也是无法登录,全局代理都不行
    a33291
    a33291
    Jun 26, 2025
    7
    @a33291 好了
    别用系统代理或者 tun 模式,直接开 proxifier 就好了,已成功
    ihainan
    ihainan
    Jun 26, 2025
    8
    已经在自己的开发服务器上畅玩一整晚了,问题不少但是开源,让 Cursor 修了一下然后继续让 Gemini CLI 自己修自己。

    早上在地铁上畅快 Vibe Coding ,CLI 是个好文明。
    kevin100702
    kevin100702
    Jun 26, 2025
    9
    以对话就退出了回到命令行状态是什么情况
    kevin100702
    kevin100702
    Jun 26, 2025
    10
    @kevin100702 开启 turn 模式搞定了
    aarong
    aarong
    Jun 26, 2025
    11
    @kevin100702 #10 已经用上了 👍
    HowardChan
    HowardChan
    Jun 26, 2025
    12
    实测不如 warp ,交互太差
    a33291
    a33291
    Jun 26, 2025
    13
    @a33291 #7 不太好用,必须全局代理,而且交互一般
    monmon
    monmon
    Jun 26, 2025
    14
    感谢大自然的馈赠
    v2dev
    v2dev
    Jun 26, 2025
    15
    经常会意外退出,其他小问题也比较多,再观望观望
    pakholeung372
    pakholeung372
    Jun 26, 2025
    16
    使用 clash 好像要开增强模式才能登录,不知道是什么原因
    ixixi
    ixixi
    Jun 26, 2025
    17
    无法登录 ,懒得折腾了。养肥再看
    ryan961
    ryan961
    Jun 26, 2025
    18
    有点 6 的,逆向 Claude CLI 然后完全开源😂
    https://mp.weixin.qq.com/s/azFo7zp2Cj3uRQ5dSxKnPA
    zgh123
    zgh123
    Jun 26, 2025
    19
    User location is not supported for the API use.
    cyoking
    cyoking
    OP
    Jun 26, 2025❤️2
    20
    cyoking
    cyoking
    OP
    Jun 26, 2025
    21
    @pakholeung372 因为内部的一个统计请求没有走代理导致崩溃了
    fulln
    fulln
    Jun 26, 2025
    22
    1. 挂代理无法登陆(应该是代理了 localhost 的所有请求
    2. 无法使用 pro 也没法去切换对应 ai model
    maxwellz
    maxwellz
    Jun 26, 2025
    23
    和 cluade code 功能差不多?
    cyoking
    cyoking
    OP
    Jun 26, 2025
    24
    @maxwellz 看他们的 prompt 都是一样的,估计是逆向的 claude code ,功能都是差不多的。
    cyoking
    cyoking
    OP
    Jun 26, 2025
    25
    @fulln 在 terminal 中去 export proxy
    lululau
    lululau
    Jun 26, 2025
    26
    Keyboard Shortcuts:

    Enter - Send message
    Shift+Enter - New line


    这个 Shift+Enter 换行你们谁试了可以?
    v2dev
    v2dev
    Jun 26, 2025
    27
    @cyoking 帮大忙了,非常感谢
    wineast
    wineast
    Jun 26, 2025
    28
    ✕ [API Error: {"error":{"message":"{\n \"error\": {\n \"code\": 429,\n \"message\": \"Resource has been exhausted (e.g. check quota).\",\n \"status\": \"RESOURCE_EXHAUSTED\"\n
    }\n}\n","code":429,"status":"Too Many Requests"}}]
    Please wait and try again later. To increase your limits, request a quota increase through AI Studio, or switch to another /auth method
    lululau
    lululau
    Jun 26, 2025
    29
    试了一下终端需要发送 0x0a ,直接按 ctrl-j 就可以,或着把 shift+enter 绑定到 send hex code 0x0a
    wineast
    wineast
    Jun 26, 2025
    30
    在 google aistudio 新建了一个 token 试了下,第一次问就 显示直接资源耗尽了?是不是有什么地方要后台申请一下?
    cutchop
    cutchop
    Jun 26, 2025
    31
    与 cursor 相比有优势吗?
    cyoking
    cyoking
    OP
    Jun 26, 2025
    32
    @lululau 好像是 option + 回车换行
    lululau
    lululau
    Jun 26, 2025
    33
    @cyoking #32 试了一下 option+enter 确实可以 👍
    blackmirror
    blackmirror
    Jun 26, 2025
    34
    用起来真爽 关键不花钱
    wyntalgeer
    wyntalgeer
    Jun 26, 2025
    35
    @cutchop 有的!兄弟有的!啊上头了
    JusticeLanding
    JusticeLanding
    Jun 26, 2025
    36
    @ihainan 还能自己调教 Gemini CLI 吗?怎么搞
    Maxesisn
    Maxesisn
    Jun 26, 2025
    37
    尝试了一下,慢速回复会被强制切到 2.5 Flash ,虽然试用的时候没看到明显的效果下降,但就是感觉很不爽😓感觉还不如 claude code 上下文耗尽后再 compact
    sudowang
    sudowang
    Jun 26, 2025
    38
    一会就切回 flash 模式了,flash 很蠢的
    Slow response times detected. Automatically switching from gemini-2.5-pro to gemini-2.5-flash for faster responses for the remainder of this session.
    Kelan
    Kelan
    Jun 27, 2025
    39
    @wineast 得用方式 1 的 auth 登陆才有送的免费额度,用 key 的话是实打实花钱的,你的 key 可能没有 pro 的权限就直接报错了
    coolcoffee
    coolcoffee
    Jun 27, 2025
    40
    @cvbnt 先别急着得意,Claude Code 只支持 Unix 系列应该就是会高频使用工具,我刚刚问了下它会用的工具有 “rg, find, cat, head, tail, mkdir, rm, mv, cp, cd, pwd, git, npm, python, node, curl, wget, chmod, touch, echo, sed, awk, sort, uniq,
    wc, diff, patch, tar, zip, unzip, ps, kill, top, df, du, date, whoami, which, env, export, source, bash, sh, make, gcc, pip, yarn,
    docker, kubectl” ,

    这个不是说 Windows 下面没有同等命令,而是之前训练预料决定了 Unix 命令会比 Windows 更多。Windows 上面的似是而非的 curl 、wget 之类的命令也很容易干扰 AI 的
    wanei
    wanei
    Jun 27, 2025
    41
    1. 在终端中打开 PowerShell 设置临时代理

    ```PowerShell
    $env:HTTP_PROXY="http://127.0.0.1:33210"
    $env:HTTPS_PROXY="http://127.0.0.1:33210"
    ```

    2. 在终端中测试代理

    ```PowerShell
    curl -v google.com
    ```

    3. 登录 Google Cloud 控制台,创建项目,启用服务,设置 ID

    ```PowerShell
    $env:GOOGLE_CLOUD_PROJECT="xxx"
    ```

    4. 先切换到使用的代码仓,发起启动命令

    ```PowerShell
    npx https://github.com/google-gemini/gemini-cli
    ```

    win11 powershell 不咋好用,终端闪烁不停
    molezznet
    molezznet
    Jun 28, 2025
    42
    有点意思, 远程使用的话,要自己 auth 文件传输过去
    @wineast
    @Kelan
    Markyeung
    Markyeung
    Jul 2, 2025
    43
    @fulln 命令行让终端走代理; export https_proxy="http://127.0.0.1:9090"
    export http_proxy="http://127.0.0.1:9090";或者开全局模式,tun 模式;推荐用命令行配置好重新启动就行了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5060 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 82ms · UTC 06:49 · PVG 14:49 · LAX 22:49 · JFK 01:49
    ♥ Do have faith in what you're doing.