{"id":16496359,"url":"https://github.com/antelcat/chatshell","last_synced_at":"2025-05-03T14:32:37.578Z","repository":{"id":148760623,"uuid":"620774730","full_name":"Antelcat/ChatShell","owner":"Antelcat","description":"ChatShell is a cross-platform, command-line tool based on ChatGPT, supporting multiple shells and customizable configurations.","archived":false,"fork":false,"pushed_at":"2023-03-29T17:07:30.000Z","size":5382,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T17:04:34.416Z","etag":null,"topics":["bash","chatgpt","chatgpt-api","cli","cross-platform","csharp","developer-tools","dotnet","gpt","linux","macos","openai","productivity","shell","windows"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Antelcat.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-29T10:52:43.000Z","updated_at":"2024-03-26T05:16:10.000Z","dependencies_parsed_at":"2023-05-28T21:30:18.400Z","dependency_job_id":null,"html_url":"https://github.com/Antelcat/ChatShell","commit_stats":null,"previous_names":["antelcat/chatshell"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Antelcat%2FChatShell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Antelcat%2FChatShell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Antelcat%2FChatShell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Antelcat%2FChatShell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Antelcat","download_url":"https://codeload.github.com/Antelcat/ChatShell/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252203404,"owners_count":21710959,"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":["bash","chatgpt","chatgpt-api","cli","cross-platform","csharp","developer-tools","dotnet","gpt","linux","macos","openai","productivity","shell","windows"],"created_at":"2024-10-11T14:34:42.315Z","updated_at":"2025-05-03T14:32:36.716Z","avatar_url":"https://github.com/Antelcat.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ✨ ChatShell\n\u003cdiv align=\"center\"\u003e\n    \u003cp\u003eChatShell is a cross-platform command-line tool. Based on ChatGPT, it can generate corresponding commands by directly inputting the desired function.\u003c/p\u003e\n    \u003cp\u003eSupporting cmd, PowerShell, bash, conda, and more, ChatShell is ready to use out of the box without the need for runtime installation.\u003c/p\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"https://github.com/DearVa/ChatShell/blob/master/img/Demo.gif?raw=true\" width=\"800\" alt=\"Demo\"/\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"https://github.com/DearVa/ChatShell/blob/master/img/MultipleShell.gif?raw=true\" width=\"800\" alt=\"MultipleShell\"/\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n    \u003ca href=\"https://github.com/DearVa/ChatShell/blob/master/Readme_zh_CN.md\"\u003e\u003cstrong\u003e🇨🇳中文版\u003c/strong\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n# ♻️ Installation \u0026 Usage\nChatShell has been released as a single executable file, which you can download for your current operating system [here](https://github.com/DearVa/ChatShell/releases).\n\nAfter downloading the file, you need a configuration file in order to run the program. The configuration file is named AppConfigure.json and should be placed in the same folder as the executable file. Below is a template configuration file for Windows.\n\nThis configuration file includes calls to both cmd and PowerShell shells, and the `ApiKey` value can be obtained from the [OpenAI website](https://platform.openai.com/account/api-keys).\n\n```json\n{\n    \"ProcessConfigures\": [\n        {\n            \"Name\": \"cmd\",\n            \"CommandLine\": \"cmd\",\n            \"Description\": \"cmd\",\n            \"OperationSystem\": \"Windows 11\",\n            \"AiName\": \"gpt3.5\"\n        },\n        {\n            \"Name\": \"ps\",\n            \"CommandLine\": \"powershell\",\n            \"Description\": \"powershell\",\n            \"OperationSystem\": \"Windows 11\",\n            \"AiName\": \"gpt3.5\"\n        }\n    ],\n    \"AiConfigures\": [\n        {\n            \"Type\": \"ChatGptAi\",\n            \"Name\": \"gpt3.5\",\n            \"Options\": {\n                \"ApiKey\": \"YOUR_API_KEY\"\n            },\n            \"ModelId\": \"gpt-3.5-turbo\",\n            \"MaxTokens\": 1024,\n            \"Language\": \"English\"\n        }\n    ]\n}\n```\n\nAfter downloading and placing the configuration file and executable in the same folder, execute `ChatShell cmd` in the command line. You will see the output of the cmd shell, but by doing so ChatShell has taken control of the input. You can now directly input a command description and ChatShell will automatically generate the corresponding command for you.\n\n```cmd\nMicrosoft Windows [Version 10.0.22621.1413]\n(c) Microsoft Corporation. All rights reserved.\n\nG:\\Source\\C#\\ChatShell\\src\u003eConvert MultipleShell.mp4 to MultipleShell.gif using ffmpeg while preserving the original resolution and using 30 frames per second\nAI is thinking...\nffmpeg -i MultipleShell.mp4 -vf fps=30,scale=iw:-1 MultipleShell.gif\nExecute command? [y(es) / e(xplain) / n(o)]:\n```\n\nIf you are sure the command is correct, you can simply enter `y` to run it. If you have any questions, you can enter `e` to have ChatShell explain the command for you.\n\n```cmd\nMicrosoft Windows [Version 10.0.22621.1413]\n(c) Microsoft Corporation. All rights reserved.\n\nG:\\Source\\C#\\ChatShell\\src\u003eConvert MultipleShell.mp4 to MultipleShell.gif using ffmpeg while preserving the original resolution and using 30 frames per second\nAI is thinking...\nffmpeg -i MultipleShell.mp4 -vf fps=30,scale=iw:-1 MultipleShell.gif\nExecute command? [y(es) / e(xplain) / n(o)]: e\nAI is thinking...\nThis command uses the FFmpeg tool to convert the video file \"MultipleShell.mp4\" into an animated GIF file. The \"-i\" parameter specifies the input file, and the \"-vf\" parameter specifies the operations to be performed during the video conversion process. Two filters are used here: \"fps=30\" adjusts the video frame rate to 30 frames per second, and \"scale=iw:-1\" outputs the video in its original aspect ratio. Finally, \"MultipleShell.gif\" specifies the output GIF file name.\n\nThis command is used to convert a video file into a more convenient and shareable animated GIF file, suitable for use on web pages, social media platforms, and other media. By adjusting the frame rate and scaling ratio, you can further optimize the size and clarity of the GIF file.\nExecute command? [y(es) / n(o)]:\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantelcat%2Fchatshell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantelcat%2Fchatshell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantelcat%2Fchatshell/lists"}