{"id":25830422,"url":"https://github.com/jazzshu/kubectllama","last_synced_at":"2026-06-16T14:31:47.107Z","repository":{"id":279186205,"uuid":"935074796","full_name":"jazzshu/kubectllama","owner":"jazzshu","description":"go-cli tool to suggest kubectl commands","archived":false,"fork":false,"pushed_at":"2025-04-06T11:24:20.000Z","size":36,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T11:29:04.017Z","etag":null,"topics":["cli","golang","kubernetes"],"latest_commit_sha":null,"homepage":"https://jazzshu.github.io/kubectllama-website/","language":"Go","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/jazzshu.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":"2025-02-18T21:32:02.000Z","updated_at":"2025-04-06T11:24:23.000Z","dependencies_parsed_at":"2025-02-24T09:26:15.039Z","dependency_job_id":"fabf00b7-5181-44f0-aa28-ce3cc041928c","html_url":"https://github.com/jazzshu/kubectllama","commit_stats":null,"previous_names":["jazzshu/kubectllama"],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/jazzshu/kubectllama","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazzshu%2Fkubectllama","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazzshu%2Fkubectllama/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazzshu%2Fkubectllama/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazzshu%2Fkubectllama/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jazzshu","download_url":"https://codeload.github.com/jazzshu/kubectllama/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jazzshu%2Fkubectllama/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34410780,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cli","golang","kubernetes"],"created_at":"2025-02-28T19:19:52.646Z","updated_at":"2026-06-16T14:31:47.095Z","avatar_url":"https://github.com/jazzshu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🦙 **kubectllama** - AI-powered Kubernetes CLI\n\nWelcome to **kubectllama**! 🐾 The AI-powered CLI tool that takes your Kubernetes management to the next level by allowing you to run `kubectl` commands through **natural language**. 🎉 Say goodbye to memorizing complex `kubectl` commands and let **kubectllama** handle it for you! 🤖✨\n\n---\n\n## 🌟 Features\n\n- 🗣️ **Natural Language Processing**: Simply type commands like \"Get all pods in the default namespace\" and let **kubectllama** do the magic.\n- ⚡ **Fast \u0026 Efficient**: Get complex `kubectl` commands with minimal effort and increased productivity.\n- 🔒 **Safe \u0026 Secure**: Your AI assistant lives locally on your machine, ensuring your commands are processed securely.\n- 💬 **Confirmation Step**: the cli doesn't execute any command, **kubectllama** will only display the suggested command so to prevent unwanted actions.\n\n---\n\n## 🛠️ Installation\n\n`kubectllama` can be installed either by downloading a pre-built executable from GitHub Releases or by cloning the repository and building from source. Below are instructions for both methods.\n\n### Prerequisites\n- **Ollama**: You need Ollama installed and running locally (default URL: `http://localhost:11434`). Download it from [Ollama's website](https://ollama.com/). \n  - **Model**: By default, `kubectllama` uses the `mistral` model because it offers the best tradeoff between speed and precision. However, you can use any Ollama model by specifying it with the `--model` flag (e.g., `--model llama3`). Pull your chosen model:\n    ```bash\n    ollama pull mistral  # Default model\n    ```\n    Or, for a different model:\n    ```bash\n    ollama pull \u003cmodel-name\u003e\n    ```\n- **Go**: Required only for building from source (version 1.21+).\n\n### Method 1: Download Pre-Built Executable\nPre-built binaries are available for Linux, macOS, and Windows from the [GitHub Releases page](https://github.com/your-username/kllama/releases). Since the repository is public, no authentication is needed.\n\n#### Linux\n```bash\ncurl -L -o kubectllama \\\n https://github.com/JasonShuyinta/kubectllama/releases/latest/download/kubectllama-linux-amd64\nchmod +x kubectllama\nsudo mv kubectllama /usr/local/bin/\n```\n\n#### macOS\n```bash\ncurl -L -o kubectllama \\\n     https://github.com/JasonShuyinta/kubectllama/releases/latest/download/kubectllama-macos-amd64\nchmod +x kubectllama\nsudo mv kubectllama /usr/local/bin/\n```\n\n#### Windows\n\n1. Download kubectllama-windows-amd64.exe from the latest release.\n2. Move it to a directory in your PATH (e.g., C:\\Windows\\System32) using File Explorer or:\n```bash\nmove kubectllama-windows-amd64.exe C:\\Windows\\System32\\kubectllama.exe\n```\n\n#### Verify Installation\n```bash\nkubectllama --version\n```\n\n### Method 2: Clone and Build from Source\nIf you prefer to build kubectllama yourself or want to modify the code:\n\n1. **Clone the repository**:\n```bash\ngit clone https://github.com/JasonShuyinta/kubectllama.git\ncd kubectllama\n```\n\n2. **Build the binary**:\n```bash\ngo build -o kubectllama .\n```\n\n3. **Install it**:\n```bash\nsudo mv kubectllama /usr/local/bin\nchmod +x /usr/local/bin/kubectllama\n```\n - For Windows, move it to a PATH directory:\n  ```bash\n    move kubectllama.exe C:\\Windows\\System32\\\n  ```\n#### Verify Installation\n```bash\nkubectllama --help\n```\n\n## 🚀 Usage\nAfter installation, run ```kubectllama``` with a natural language request:\n\n```bash\nkubectllama get pods running in the test namespace\n```\n\nOutput (using default ```mistral``` model):\n```bash\nkubectl get pods -n test\nThis command retrieves information about all running pods across the \"test\" in your Kubernetes cluster.\nExecute this command? [Y/n]\n```\n\nTo use a different model, specify it with the ```--model``` flag:\n```bash\nkubectllama --model llama3 get pods running in the test namespace\n```\n\nIf Ollama is running a different host from the default one, you can specify it with the ```--url``` flag:\n```bash\nkubectllama --url http://my-ollama-custom-url:8080 get pods running in test namespace\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjazzshu%2Fkubectllama","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjazzshu%2Fkubectllama","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjazzshu%2Fkubectllama/lists"}