Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/atinylittleshell/aicmd
A CLI program that allows you to run shell commands using nautral language.
https://github.com/atinylittleshell/aicmd
ai chatgpt chatgpt-api cli gpt terminal
Last synced: 2 months ago
JSON representation
A CLI program that allows you to run shell commands using nautral language.
- Host: GitHub
- URL: https://github.com/atinylittleshell/aicmd
- Owner: atinylittleshell
- License: mit
- Created: 2023-03-20T00:02:23.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-09T05:38:08.000Z (7 months ago)
- Last Synced: 2024-09-29T04:22:32.394Z (3 months ago)
- Topics: ai, chatgpt, chatgpt-api, cli, gpt, terminal
- Language: TypeScript
- Homepage:
- Size: 1.26 MB
- Stars: 81
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AICMD
[![build](https://github.com/atinylittleshell/aicmd/actions/workflows/build.yml/badge.svg)](https://github.com/atinylittleshell/aicmd/actions/workflows/build.yml)
A CLI program that allows you to write shell commands using nautral language.
- Always asks for confirmation before executing.
- Supports all major OS and shells.
- Powered by Ollama and your local LLM.![screenshot](./doc/screenshot.png)
## Prerequisites
AICMD is based on Node.js. [Install Node.js](https://nodejs.org/en) before proceeding. Minimum required version is Node.js 16.
[Ollama](https://ollama.com) is required for hosting local LLM.
## Usage
Run it directly using npx:
```bash
npx aicmd create a javascript code file that prints hello world, and run it
```Alternatively, install aicmd globally:
```bash
npm i -g aicmd
```And then run it more easily each time:
```bash
aicmd create a javascript code file that prints hello world, and run it
```Output:
```bash
echo console.log("Hello World!") > hello.js && node hello.js
Execute the command above? [y/N]
```## Disclaimers
- You are responsible for the consequence of executing the commands. Same as most AI-based tools, please be aware that
AI can make mistakes and in this case it can give you commands that don't do what you expect. Please make sure you
understand and have confidence in the commands being suggested before executing them.## Support me
[Buy me a coffee](https://www.buymeacoffee.com/onelittleshell)