V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
cmos
V2EX  ›  程序员

苦于 CLI 没有 LLM 可用,所以自己写轮子

  •  
  •   cmos · Aug 19, 2025 · 2792 views
    This topic created in 250 days ago, the information mentioned may be changed or developed.

    gemini-cli天下第一,但是我一看到JS就拒绝。如果我不拒绝的话,我的一些,就是比如说我的容貌、我的身材,还有我的社交的礼仪,还有美好的品德,美好的性格,甚至是灵魂都会被毁了*。

    我太想在 terminal 里面随时问 LLM 一些问题了,所以直接用 Golang 写了一个简易的 CLI 工具,简易到了我只使用阿里的 qwen-plus 模型,并且只支持问答。

    • HTTPS 数据传输,非 OpenAI API SDK
    • 单次模式或者连续问答模式
    • markdown 支持
    • 仅支持 qwen-plus 模型

    qwencli


    引用:

    周兰君: 如果我不嫁富二代的话,2014 。

    16 replies    2025-08-20 23:29:02 +08:00
    dimlau
        1
    dimlau  
       Aug 19, 2025
    TimePPT
        2
    TimePPT  
    PRO
       Aug 19, 2025
    之前用过一段时间 Github Copilot CLI
    https://docs.github.com/en/copilot/how-tos/use-copilot-for-common-tasks/use-copilot-in-the-cli
    后来感觉不如直接搜三方再贴 😂
    cmos
        3
    cmos  
    OP
       Aug 19, 2025
    @dimlau 1#
    可能是我表述的不好,原始的目标是 shell_gpt 这种工具
    phrack
        4
    phrack  
       Aug 19, 2025
    有啊,它就叫 llm ,上网上少了吧: https://github.com/simonw/llm
    awenxjtu
        5
    awenxjtu  
       Aug 19, 2025 via Android   ❤️ 1
    有啊,GitHub 搜 aichat, 多模型,提示词管理,自然语言命令行,会话管理,rag ,提供 api 和 playground 伺服模式可以网页访问这些全都有了。好用👍
    awenxjtu
        6
    awenxjtu  
       Aug 19, 2025 via Android
    补充:rust 写的,非脚本系
    lululau
        7
    lululau  
       Aug 19, 2025
    也太丑了,都 golang 了好歹你也用 bubbletea 划拉个出来啊
    scriptB0y
        8
    scriptB0y  
       Aug 19, 2025
    在终端(等宽字体)输入中文太难受了。
    imldy
        9
    imldy  
       Aug 19, 2025
    2 年前 LLM 刚在非 AI 相关程序员群体中流行的时候,就有这种工具了
    billzhuang
        10
    billzhuang  
       Aug 19, 2025
    openai cli, 又叫 codex cli ,rust 写的
    github copilot cli 实在拉胯
    spark
        11
    spark  
       Aug 20, 2025   ❤️ 1
    你可能会写点代码,但你更应该多学学语文。
    1235467
        13
    1235467  
       Aug 20, 2025   ❤️ 1
    cmos
        14
    cmos  
    OP
       Aug 20, 2025
    @1235467 13#
    @awenxjtu 5#

    感谢,找到了想要的。
    gsw945
        15
    gsw945  
       Aug 20, 2025 via iPhone
    PowerShell 出了个 AIShell: https://github.com/PowerShell/AIShell
    kneo
        16
    kneo  
       Aug 20, 2025   ❤️ 1
    你只是想造一个轮子而已。不用骗自己“苦于”“没有”。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4495 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 73ms · UTC 04:08 · PVG 12:08 · LAX 21:08 · JFK 00:08
    ♥ Do have faith in what you're doing.