{"id":19460511,"url":"https://github.com/bjarneo/tai","last_synced_at":"2025-04-09T17:23:39.634Z","repository":{"id":237959572,"uuid":"793414088","full_name":"bjarneo/tAI","owner":"bjarneo","description":"tAI is an AI terminal assistant CLI that helps you with Linux and macOS commands.","archived":false,"fork":false,"pushed_at":"2025-01-03T08:50:37.000Z","size":29987,"stargazers_count":78,"open_issues_count":0,"forks_count":7,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T11:49:56.034Z","etag":null,"topics":["ai","ask","assistant","chatgpt","cli","gpt-4o","gpt4o","helper","terminal"],"latest_commit_sha":null,"homepage":"","language":"Python","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/bjarneo.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":"2024-04-29T07:16:15.000Z","updated_at":"2025-02-27T13:59:56.000Z","dependencies_parsed_at":"2025-01-16T08:11:07.683Z","dependency_job_id":"92e45a23-29bc-4f21-9a86-84cf95570c42","html_url":"https://github.com/bjarneo/tAI","commit_stats":{"total_commits":64,"total_committers":1,"mean_commits":64.0,"dds":0.0,"last_synced_commit":"d592bf7b40eab98d9de3cd876a587d2ad88c743a"},"previous_names":["bjarneo/lfg","bjarneo/tai"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjarneo%2FtAI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjarneo%2FtAI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjarneo%2FtAI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjarneo%2FtAI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bjarneo","download_url":"https://codeload.github.com/bjarneo/tAI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248075426,"owners_count":21043586,"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","ask","assistant","chatgpt","cli","gpt-4o","gpt4o","helper","terminal"],"created_at":"2024-11-10T17:37:24.032Z","updated_at":"2025-04-09T17:23:39.614Z","avatar_url":"https://github.com/bjarneo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003etAI, a terminal AI assistant\u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\ntAI is a CLI that helps you with Linux and macOS terminal commands. Just ask it a question, and it will use AI to suggest a command and explain what it does. If you like the suggestion, the script can automatically run the command for you in your terminal.\n\u003c/div\u003e\n\u003cbr /\u003e\n\n![Demo](example.png)\n\n## BREAKING\n\nChanging the name from `lfg` to `tai`. The package name is changed from `lfg-llama` to `terminal-ai-assistant`.\n\n## Why \u0026 What?\n\n- Github Copilot CLI syntax feels clunky to me\n- Faster than using Gemini, ChatGPT or similar in a browser\n- Simpler to find answers without checking man pages\n- NEW: Switching to the free GPT-4o model\n- NEW: Now you can run commands right from this command-line interface\n- NEW: New package name `terminal-ai-assistant`\n\nHowever, never trust the output entirely.\n\n## Installation\n\n```bash\n# install pipx\nbrew install pipx\n\n# add pipx binaries to path\npipx ensurepath\n\n# restart your terminal\n# install TAI\npipx install terminal-ai-assistant\n```\n\n## Usage\n\nThis executable is using OpenAI, that means you need and [API token](https://platform.openai.com/api-keys).\n\n[GPT-4o](https://platform.openai.com/docs/models/gpt-4o) is free to use.\n\nAdd the token to your .bashrc/.zshrc and reload your terminal.\n\n```\nexport OPENAI_API_KEY={replace_me}\n```\n\nYou can use either of these commands\n\n```bash\n$ tai \u003cquery\u003e\n```\n\nNow you can use the executable\n\n```bash\n$ tai kill port 3000\n\nfuser -k 3000/tcp\n\nExplanation:\nThe `fuser` command identifies processes using files or sockets. The `-k` option is used to kill th\nose processes. Here, `3000/tcp` specifies the TCP port number 3000. This command effectively kills\nany process currently using port 3000.\n\n\u003e Execute the command? (N/y):\n```\n\nChange the LLM\n\n```bash\n$ tai get pods from all namespaces\n\nkubectl get pods --all-namespaces\n\n\nExplanation:\nThe `kubectl get pods --all-namespaces` command lists all the pods across all namespaces in a Kuber\nnetes cluster. The `--all-namespaces` flag is used to fetch the pods from every namespace instead of the default namespace.\n\n\u003e Execute the command? (N/y):\n```\n\n### Development\n\n```bash\npip install --user pipenv\npipenv --python 3.11\npipenv install\n\npipenv run tai kill port 3000\n```\n\n### TODO\n\n- Fix the setup and pyproject file, including github workflow for releasing the package\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbjarneo%2Ftai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbjarneo%2Ftai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbjarneo%2Ftai/lists"}