项目简介
一款功能强大的开源终端 AI 助手:gptme。
安装了它,你可以在终端上执行本地代码、读写文件、搜索和浏览网页以及进行视觉识别等操作。
支持目前主流 LLM 提供商,如 OpenAI、Anthropic 和 OpenRouter,也可以使用 llama.cpp 在本地提供服务。
🌟 特点
🛠 用例
🛠 Developer perks
🚀 开始使用
使用 pipx 安装:
现在,要开始,请运行:
这里有一些示例:
gptme 'write an impressive and colorful particle effect using three.js to particles.html'
gptme 'render mandelbrot set to mandelbrot.png'
gptme 'suggest improvements to my vimrc'
gptme 'convert to h265 and adjust the volume' video.mp4
git diff | gptme 'complete the TODOs in this diff'
make test | gptme 'fix the failing tests'
🛠 使用方法
$ gptme
Usage: gptme [OPTIONS] [PROMPTS]...
gptme is a chat-CLI for LLMs, empowering them with tools to run shell
commands, execute code, read and manipulate files, and more.
If PROMPTS are provided, a new conversation will be started with it. PROMPTS
can be chained with the '-' separator.
The interface provides user commands that can be used to interact with the
system.
Available commands:
/undo Undo the last action
/log Show the conversation log
/tools Show available tools
/edit Edit the conversation in your editor
/rename Rename the conversation
/fork Create a copy of the conversation with a new name
/summarize Summarize the conversation
/replay Re-execute codeblocks in the conversation, wont store output in log
/impersonate Impersonate the assistant
/tokens Show the number of tokens used
/export Export conversation as standalone HTML
/help Show this help message
/exit Exit the program
Options:
-n,
name.