{"id":19988645,"url":"https://github.com/codeacme17/terminal-chatgpt","last_synced_at":"2025-05-04T08:32:00.451Z","repository":{"id":111321101,"uuid":"608074084","full_name":"codeacme17/terminal-chatGPT","owner":"codeacme17","description":"Chat with chatGPT on your terminal","archived":false,"fork":false,"pushed_at":"2023-09-04T07:41:03.000Z","size":150,"stargazers_count":19,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-22T11:44:38.875Z","etag":null,"topics":["chatgpt","cli","openai","terminal"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codeacme17.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-03-01T09:10:16.000Z","updated_at":"2025-01-16T01:31:14.000Z","dependencies_parsed_at":"2023-07-24T14:18:03.404Z","dependency_job_id":"aa37072b-21ac-4cc6-89da-2acf008fd6fd","html_url":"https://github.com/codeacme17/terminal-chatGPT","commit_stats":null,"previous_names":["codeacme17/1llg-terminal-gpt"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeacme17%2Fterminal-chatGPT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeacme17%2Fterminal-chatGPT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeacme17%2Fterminal-chatGPT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeacme17%2Fterminal-chatGPT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeacme17","download_url":"https://codeload.github.com/codeacme17/terminal-chatGPT/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252308211,"owners_count":21727142,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatgpt","cli","openai","terminal"],"created_at":"2024-11-13T04:43:42.029Z","updated_at":"2025-05-04T08:31:56.377Z","avatar_url":"https://github.com/codeacme17.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cbr /\u003e\n\u003cbr /\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg width=\"200\" alt=\"logo\" src=\"https://github.com/codeacme17/repo-assets/blob/main/terminal-gpt/logo.png?raw=true\"/\u003e \n\u003c/p\u003e\n\u003cbr /\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003csamp\u003e\n    A command-line interface (CLI) tool that uses OpenAI's GPT-3.5-turbo API to generate text based on user prompts.\n  \u003c/samp\u003e\n\u003c/p\u003e\n\n\u003cbr /\u003e\n\n\n## Use Case\n\n\u003cp align=\"center\"\u003e\n  \u003cimg width=\"540\" src = \"https://github.com/codeacme17/repo-assets/blob/main/terminal-gpt/usecase.gif?raw=true\"\u003e\u003c/img\u003e\n\u003c/p\u003e\n\n\n## Start\n\n\n### Install\n\n```bash\n$ npm install 1llg-terminal-gpt -g\n```\n\n### Config\n\n```bash\n1gpt config --key [your_api_key]\n```\n\n\u003e I can guarantee that your keys are not stored anywhere other than your computer. After performing the above operations, a file named `user_configs.json` will be created on the root directory of the project in your computer to store and read your api-key\n\nYou need to configure your access rights to access the OpenAI API. Please replace **[your_api_key]** to your actual OpenAI key. You can get your API keys from [OpenAI-Keys](https://platform.openai.com/account/api-keys).\n\n\n## Usage\n\n### 🤖 Chat\n\n```bash\n1gpt chat\n```\n\nUse the above command to enter the chat mode to communicate with chatGPT.\n\n\u003e This command will provide a quick chat mode, and your current chat conversation will not be remembered by chatGPT. If you want to continue chatting next time after leaving the terminal, I suggest you use `Pattern` mode.\n\n#### chat commands\n\nAfter entering the chat, you can perform different operations by entering the following commands\n\n- `/` :  to exit current chatting process\n\n- `/clear`:  to exit current chatting process and clean terminal screen\n\n- some still under development...\n\n\n### 📔 Pattern\n\n\u003e Pattern is a module that can record your chat history with chatGPT, and you can continue the last chat when you open the terminal next time. You can create multiple patterns to correspond to different chatGPT systems, just like the sidebar on the chatGPT website\n\n```bash\n1gpt pattern\n```\n\n#### options\n- `-u, --use [pattern-name]`: used to open an existing pattern. `1gpt pattern` has the same effect\n- `-c, --create [pattern-name]`: create a new pattern\n- `-r, --remove [pattern-name]`: delete a existing pattern\n- `-l, --list`: show the existing pattern list\n\n\u003e Highly recommended that you read this document [Pattern-user-guide](https://github.com/codeacme17/repo-assets/blob/main/terminal-gpt/pattern-use-cases.md).\n\n\n\n### 🕒 History\n\n```bash\n1gpt history [options]\n```\n\nHistory will record every conversation you have with chatGPT.\n\n#### options\n\n- `-r, --read`: print the content of the history file in the current terminal\n- `-c, --clear`: clear all history\n\n\n\n\u003eYou can view or manage the history file by yourself, which is located in the chat-history.txt file in the root directory of the project\n\n\n\n## Contributing\nContributions to the project are welcome! If you find a bug or have an idea for a new feature, please submit an issue or pull request.\n\n\n\n## License\n[MIT](https://github.com/codeacme17/1llg-terminal-GPT/blob/main/LICENSE) License © 2023-Present [leyoonafr](https://github.com/codeacme17)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeacme17%2Fterminal-chatgpt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeacme17%2Fterminal-chatgpt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeacme17%2Fterminal-chatgpt/lists"}