Skip to content

danielmichaels/gpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gpt

My terminal GPT client This CLI leverages other LLM based applications and packages them into a workable application for me.

demo.gif

Install

Standalone

go install github.com/danielmichaels/gpt/cmd/gpt@latest

Composed

package z

import (
	Z "github.com/rwxrob/bonzai/z"
	"github.com/danielmichaels/gpt"
)

var Cmd = &Z.Cmd{
	Name:     `gpt`,
	Commands: []*Z.Cmd{help.Cmd, gpt.Cmd},
}

Requirements

The following binaries must exist in the $PATH:

To use the default gpt command you'll need a OpenAI paid account and key. Set the following environment variable for mods to work. Unfortunately, this is how mods wants the key.

  • $OPENAI_API_KEY

Tab Completion

To activate bash completion just use the complete -C option from your .bashrc or command line. There is no messy sourcing required. All the completion is done by the program itself.

complete -C gpt gpt

If you don't have bash or tab completion check use the shortcut commands instead.

Embedded Documentation

All documentation (like manual pages) has been embedded into the source code of the application. See the source or run the program with help to access it.

Other Examples

About

A simple GPT CLI wrapper around existing tools

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages