Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/knid/ais
natural lang to shell commands
https://github.com/knid/ais
ai chatgpt chatgpt3 cli linux openai python shell
Last synced: 3 months ago
JSON representation
natural lang to shell commands
- Host: GitHub
- URL: https://github.com/knid/ais
- Owner: knid
- License: mit
- Created: 2023-03-27T14:23:55.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-18T10:50:33.000Z (9 months ago)
- Last Synced: 2024-10-10T19:34:13.007Z (3 months ago)
- Topics: ai, chatgpt, chatgpt3, cli, linux, openai, python, shell
- Language: Python
- Homepage:
- Size: 5.63 MB
- Stars: 10
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
- AIS -Ais (ai shell) is interactive command line ai tool powered by ChatGPT (GPT-3.5). Ais can translate your query into a bash command and explain it to you if you want. In this way, you can get rid of hours of searching for small tasks and increase your learning spectrum.
## Getting started
### Installation instructions
(require python3.6+)```bash
pip install ais-cli
```### Setup
Setup open ai access key in interactive mode
```bash
ais set ACCESS_KEY
```## Running queries
### Translate to command
You can just write the what do you want. It will translate a bash command```bash
ais • open rtsp://113.76.151.33/1 with ffplay without sound
────────────── Command ───────────────────ffplay -an rtsp://113.76.151.33/1
? Select action (Use arrow keys)
◌ ✅ Run this command
❔ Explain this command
❌ Cancel
```### Explain commands
If you select "Explain this command" action ChatCPT will explain this command for you.```bash
? Select action (Use arrow keys)
◌ ✅ Run this command
❔ Explain this command
❌ Cancel
```### Regular questions
Run `ais ask` for asking normal questions.```bash
ais • ais ask Who is Ataturk?
─────────── Result ─────────────Ataturk is the founder of modern Turkey and its first president.
```### Run system command in interactive mode
Use the `!` character as the first character
```bash
ais • !whoamiknid
```### Run without interactive mode
#### Create bash command
```bash
$ 'ais -c "create port scanner with bash"
```
#### Ask regular questions
```bash
$ ais -c "ais ask Suggest me a horror movie"
```