Skip to content
项目

关于

GPT-powered bash commands.

人工智能与机器学习

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

gpt-do

Turn natural-language requests into reviewed shell commands using a current OpenAI model and the Responses API.

Instead of furiously grepping through man pages, simply use do (or ddo if on bash/zsh) when you do not remember the command you need.

Check out the blog post here.

Demo

Click to play:

asciicast

Installation

We recommend using pipx:

$ pipx install gpt-do
$ which do
~/.local/bin/do

Usage

n.b. If you're on bash or zsh, do is a reserved keyword, so you'll have to use the alias ddo.

Set OPENAI_API_KEY before running the command. The default model is gpt-5-mini; pass any supported Responses API model with --model.

$ export OPENAI_API_KEY=xxx
$ ddo --model gpt-5-mini amend the message of my last commit to "It works!"
This command will amend the message of the last commit to 'It works!'.
git commit --amend -m 'It works!'
Execute this command? [Y/n]: y
[main 3e6a2f6] It works!!
 Date: Thu Dec 22 01:15:40 2022 -0800
 5 files changed, 1088 insertions(+)
 create mode 100644 .gitignore
 create mode 100644 .gitmodules
 create mode 100644 README.md
 create mode 100644 poetry.lock
 create mode 100644 pyproject.toml

探索相关项目

加载中…