Categorygithub.com/danielmichaels/gpt
repository
0.0.0-20240515005517-ce809c0fa6e7
Repository: https://github.com/danielmichaels/gpt.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

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