Welcome to SmartyPants, a user-friendly CLI tool for interacting with AI services, featuring a powerful command and plugin system!
no requirements specified
Homebrew
brew install smartypants-cli
NPM
npm install -g smartypants-cli
PIP
pip install smartpants-cli
smartypants <plugin_name> <plugin_command> [arguments] [options]
Adds support for OpenAI interaction
Usage: smartypants openai <command> [arguments] [options]
chat
| An interactive session with OpenAI
Usage: smartypants openai chat
None
None
draw
| Draw an image based on description
Usage: smartypants openai draw <arguments> [options]
image_description
(string) : Description of what to draw
browser
(boolean) : Opens image in a new browser tab
size
(integer) (Default: 256) : Size of the image in pixels
Allowed Values: 256, 512, 1024
models
| List available models
Usage: smartypants openai models
None
None
List available models in OpenAI
smartypants openai models
prompts
| Preconfigured prompt to use with chats
Usage: smartypants openai prompts
None
None
send
| Send one or more messages to OpenAI
Usage: smartypants openai send [options]
None
attach
(String) : File to include as message
Format: filepath
live
(Boolean) : Stream the response as it is received
message
(String) : Message to send
model
(String) (Default: gpt-3.5-turbo) : Language model to use
Allowed Values: gpt-3.5-turbo, gpt-4, gpt-3.5-turbo-0613, gpt-3.5-turbo-16k, gpt-4-0613
raw
(Boolean) : Don't format the response
Send one or more messages to OpenAI
smartypants openai send --message 'Hello OpenAI' --model 'gpt-3.5-turbo'
Adds support for managing plugins
Usage: smartypants plugins <command> [arguments] [options]
disable
| Disables a plugin
Usage: smartypants plugins disable <arguments>
plugin
(Required) : Name of plugin
None
Disable a plugin
smartypants plugins disable openai
enable
| Enables a plugin
Usage: smartypants plugins enable <arguments>
plugin
(Required) : Name of plugin
None
Enable a plugin
smartypants plugins enable openai
install
| Installs a plugin
Usage: smartypants plugins install <arguments>
plugin
(Required) : Name of plugin
None
Install a plugin
smartypants plugins install openai
list
| Lists all installed plugins
Usage: smartypants plugins list
None
None
List all installed plugins
smartypants plugins list
uninstall
| Uninstalls a plugin
Usage: smartypants plugins uninstall <arguments>
plugin
(Required) : Name of plugin
None
Uninstall a plugin
smartypants plugins uninstall openai
update
| Updates a plugin
Usage: smartypants plugins update <arguments>
plugin
: Name of plugin
None
Update a plugin
smartypants plugins update openai
status
| Shows state of a specific plugin
Usage: smartypants plugins status <arguments>
plugin
(Required) : Name of plugin
None
Show status of a plugin
smartypants plugins status openai
Format | Definition | Examples |
---|---|---|
filepath |
A valid Mac, Linux, or Windows filepath | ./some/directory/ , /home/user/file.txt |