Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/polpielladev/chatty-cli
A Swift command line application to ask ChatGPT anything directly from the terminal
https://github.com/polpielladev/chatty-cli
ai chatgpt cli swift terminal
Last synced: 18 days ago
JSON representation
A Swift command line application to ask ChatGPT anything directly from the terminal
- Host: GitHub
- URL: https://github.com/polpielladev/chatty-cli
- Owner: polpielladev
- License: mit
- Created: 2023-03-26T19:43:26.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-23T09:14:31.000Z (about 2 months ago)
- Last Synced: 2024-10-15T19:21:28.612Z (about 1 month ago)
- Topics: ai, chatgpt, cli, swift, terminal
- Language: Swift
- Homepage:
- Size: 18.6 KB
- Stars: 20
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 🗣️ Chatty: Your ChatGPT companion in the terminal
Ask ChatGPT anything directly from your terminal!
https://user-images.githubusercontent.com/24246926/227801499-c3729d95-086c-4d7a-ada4-7ae53eacda29.mp4
## Installation
There are currently three ways of installing the app: `homebrew`, `mint` and `directly from Github`.
### Homebrew
```bash
brew install polpielladev/homebrew-tap/chatty-cli
```### Mint
```bash
mint install polpielladev/chatty-cli@main
```### Manually
Every time a new version is available, a new Github release is created. You can download the latest version of the executable directly from the [releases page](https://github.com/polpielladev/chatty-cli/releases).
## Usage
Chatty communicates with the [OpenAI API]() to make use of the ChatGPT model. Note you must have an API key with available tokens (either free or pay-as-you-go). You can check your available tokens [here](https://platform.openai.com/account/usage). The first time you use the chatty, you will need to give it an API token using the `auth` command:
```bash
chatty auth
```https://user-images.githubusercontent.com/24246926/227801076-e96d8e69-36ac-43bd-aefd-9cba554105a2.mp4
🔐 This token will be safely stored in the OSX Keychain and will only be read when needed. Chatty will only know the value of the token for during its execution.
If chatty has already been given a token, you can start a conversation by running chat command:
```bash
# Call chatty and use the default command (which is chat)
chatty# Call chatty explicitly with the chat command
chatty chat
```