{"id":16109745,"url":"https://github.com/knid/ais","last_synced_at":"2025-03-18T09:30:52.420Z","repository":{"id":185811296,"uuid":"619841025","full_name":"knid/ais","owner":"knid","description":"natural lang to shell commands","archived":false,"fork":false,"pushed_at":"2024-04-18T10:50:33.000Z","size":5907,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T08:33:49.067Z","etag":null,"topics":["ai","chatgpt","chatgpt3","cli","linux","openai","python","shell"],"latest_commit_sha":null,"homepage":"","language":"Python","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/knid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"github":"knid"}},"created_at":"2023-03-27T14:23:55.000Z","updated_at":"2023-07-25T00:50:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"da805a11-398a-4f6c-8624-a6fcae2914ba","html_url":"https://github.com/knid/ais","commit_stats":null,"previous_names":["knid/ais"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knid%2Fais","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knid%2Fais/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knid%2Fais/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knid%2Fais/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knid","download_url":"https://codeload.github.com/knid/ais/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243911100,"owners_count":20367627,"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":["ai","chatgpt","chatgpt3","cli","linux","openai","python","shell"],"created_at":"2024-10-09T19:34:22.934Z","updated_at":"2025-03-18T09:30:51.223Z","avatar_url":"https://github.com/knid.png","language":"Python","funding_links":["https://github.com/sponsors/knid","https://www.buymeacoffee.com/knid"],"categories":[],"sub_categories":[],"readme":"\n\u003ch2 align=\"center\"\u003e\n\u003cimg height=\"150\" src=\"https://raw.githubusercontent.com/knid/ais/master/docs/icon.png\" /\u003e\n    \u003cbr\u003e\n\u003cbr\u003e\n- AIS -\n\u003c/h2\u003e\n\n\n\u003cdiv align=\"center\"\u003e\n\u003c!---\n\u003ca href=\"https://www.buymeacoffee.com/knid\"\u003e\u003cimg src=\"https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png\"/\u003e\u003c/a\u003e\n--\u003e\n\u003c/div\u003e\n\n\nAis (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.\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://github.com/knid/ais/blob/master/docs/ais.gif?raw=true\" /\u003e\n\u003c/div\u003e\n\u003c!--- \u003ca href=\"https://asciinema.org/a/574737\" target=\"_blank\"\u003e\u003cimg src=\"https://asciinema.org/a/574737.svg\" /\u003e\u003c/a\u003e --\u003e\n\n\n## Getting started\n\n### Installation instructions\n(require python3.6+)\n\n\n```bash\npip install ais-cli\n```\n\n\n### Setup\nSetup open ai access key in interactive mode\n```bash\nais set ACCESS_KEY \u003cKEY\u003e\n```\n\n## Running queries\n\n### Translate to command\nYou can just write the what do you want. It will translate a bash command\n\n```bash\nais • open rtsp://113.76.151.33/1 with ffplay without sound\n──────────────  Command  ───────────────────\n\nffplay -an rtsp://113.76.151.33/1\n\n? Select action (Use arrow keys)\n ◌ ✅ Run this command\n   ❔ Explain this command\n   ❌ Cancel\n```\n\n### Explain commands\nIf you select \"Explain this command\" action ChatCPT will explain this command for you.\n\n```bash\n? Select action (Use arrow keys)\n ◌ ✅ Run this command\n   ❔ Explain this command\n   ❌ Cancel\n```\n\u003c!-- ```bash --\u003e\n\u003c!-- ais • make 2x faster video.mp4 --\u003e\n\u003c!-- ──────────────────  Command  ─────────────────── --\u003e\n\u003c!----\u003e\n\u003c!-- ffmpeg -i video.mp4 -filter:v \"setpts=0.5*PTS\" -an output.mp4 --\u003e\n\u003c!----\u003e\n\u003c!-- ? Select action ❔ Explain this command --\u003e\n\u003c!----\u003e\n\u003c!-- ──────────────────  Explain  ──────────────────── --\u003e\n\u003c!----\u003e\n\u003c!-- This is a command for using ffmpeg to manipulate a video file  --\u003e\n\u003c!-- called \"video.mp4\". The \"-filter:v\" option is used to apply a video filter, --\u003e\n\u003c!-- in this case \"setpts=0.5*PTS\", which will change the playback speed of the video. --\u003e\n\u003c!-- The resulting video will have no audio, as indicated  --\u003e\n\u003c!-- by the \"-an\" option. The output file will be called \"output.mp4\". --\u003e\n\u003c!-- ``` --\u003e\n\n### Regular questions\nRun `ais ask` for asking normal questions.\n\n```bash\nais • ais ask Who is Ataturk?\n───────────  Result  ─────────────\n\nAtaturk is the founder of modern Turkey and its first president.\n```\n\n### Run system command in interactive mode\nUse the `!` character as the first character\n```bash\nais • !whoami\n\nknid\n```\n\n### Run without interactive mode\n\n#### Create bash command\n```bash\n$ 'ais -c \"create port scanner with bash\"\n```\n#### Ask regular questions\n```bash\n$ ais -c \"ais ask Suggest me a horror movie\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknid%2Fais","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknid%2Fais","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknid%2Fais/lists"}