{"repo":"mattvr/ShellGPT","free":true,"listed":false,"github":"https://github.com/mattvr/ShellGPT","clone":"git clone https://github.com/mattvr/ShellGPT.git","description":"Upgrade your terminal with LLMs. Ask questions, automate commands, pipe I/O, etc. Made with Deno.","language":"TypeScript","stars":231,"topics":["chatgpt","deno","gpt-4","cli","terminal","gpt-3"],"license":"MIT","category":"cli-tools","readme_excerpt":"ShellGPT [[ Discord ]](https://orgsoft.org/discord) A command-line tool that allows you to interact with GPT-4 directly from your terminal, including long form conversations via chat https://github.com/mattvr/ShellGPT/assets/4052466/4a72a1b2-2d60-44ff-b491-8057146d71ae Basic Usage To use ShellGPT, simply run the command with your input message: You can also run shell commands with -x : And pipe input and output, transforming files and commands (pass - to accept stdin): Chat with gpt from the terminal Installation 1. Install the Deno runtime. 2. Run the following command to install ShellGPT: 3. Ensure $HOME/.deno/bin is in your PATH. You can now use gpt [my request] - or whatever you named the script during installation That's it! Note: If you add that export line to your .bashrc or .zshrc (or equivalent), remember restarting your shell to get the updated PATH Configuration You must set the OPENAI API KEY environment variable in your current shell, using a key obtained from https://platform.openai.com/account/api-keys: You can also set OPENAI CHAT URL if you'd like to target a different OpenAI-compatible API endpoint (e.g. Local Llama, Anthropic, etc.). To configure the specific ChatGPT model, system prompt used, and more, you can type gpt --config Commands and Arguments Global Commands These commands are used for general ShellGPT-wide operations. Argument Alias Description --------- ----- ------------------------------------- --help Show help --config --cfg Configure the mode","default_branch":null,"files":null,"tree":[],"storefront":"/r/mattvr","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mattvr/ShellGPT/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}