V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
cyoking
V2EX  ›  程序员

gemini-cli 可以使用了

  •  
  •   cyoking · 18 天前 · 5659 次点击
    43 条回复    2025-07-02 13:32:59 +08:00
    xiaopanzi
        1
    xiaopanzi  
       18 天前
    Nice
    cvbnt
        2
    cvbnt  
       18 天前 via Android
    能支持 windows 就已经遥遥领先 claude code 了
    cj323
        3
    cj323  
       18 天前
    试了一下,好爽!



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

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

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

    Enter - Send message
    Shift+Enter - New line


    这个 Shift+Enter 换行你们谁试了可以?
    zhuwd
        27
    zhuwd  
       17 天前
    @cyoking 帮大忙了,非常感谢
    wineast
        28
    wineast  
       17 天前
    ✕ [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
        29
    lululau  
       17 天前
    试了一下终端需要发送 0x0a ,直接按 ctrl-j 就可以,或着把 shift+enter 绑定到 send hex code 0x0a
    wineast
        30
    wineast  
       17 天前
    在 google aistudio 新建了一个 token 试了下,第一次问就 显示直接资源耗尽了?是不是有什么地方要后台申请一下?
    cutchop
        31
    cutchop  
       17 天前
    与 cursor 相比有优势吗?
    cyoking
        32
    cyoking  
    OP
       17 天前
    @lululau 好像是 option + 回车换行
    lululau
        33
    lululau  
       17 天前
    @cyoking #32 试了一下 option+enter 确实可以 👍
    blackmirror
        34
    blackmirror  
       17 天前
    用起来真爽 关键不花钱
    wyntalgeer
        35
    wyntalgeer  
       17 天前
    @cutchop 有的!兄弟有的!啊上头了
    JusticeLanding
        36
    JusticeLanding  
       17 天前
    @ihainan 还能自己调教 Gemini CLI 吗?怎么搞
    Maxesisn
        37
    Maxesisn  
       17 天前
    尝试了一下,慢速回复会被强制切到 2.5 Flash ,虽然试用的时候没看到明显的效果下降,但就是感觉很不爽😓感觉还不如 claude code 上下文耗尽后再 compact
    jigi330
        38
    jigi330  
       17 天前
    一会就切回 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
        39
    Kelan  
       16 天前
    @wineast 得用方式 1 的 auth 登陆才有送的免费额度,用 key 的话是实打实花钱的,你的 key 可能没有 pro 的权限就直接报错了
    coolcoffee
        40
    coolcoffee  
       16 天前
    @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
        41
    wanei  
       16 天前
    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
        42
    molezznet  
       15 天前
    有点意思, 远程使用的话,要自己 auth 文件传输过去
    @wineast
    @Kelan
    Markyeung
        43
    Markyeung  
       11 天前
    @fulln 命令行让终端走代理; export https_proxy="http://127.0.0.1:9090"
    export http_proxy="http://127.0.0.1:9090";或者开全局模式,tun 模式;推荐用命令行配置好重新启动就行了
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   6026 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 02:15 · PVG 10:15 · LAX 19:15 · JFK 22:15
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.