{"id":14757867,"url":"https://github.com/dh1011/llm-term","last_synced_at":"2025-04-06T13:09:22.915Z","repository":{"id":255316438,"uuid":"849210875","full_name":"dh1011/llm-term","owner":"dh1011","description":"A Rust-based CLI tool that generates and executes terminal commands using OpenAI's language models.","archived":false,"fork":false,"pushed_at":"2024-10-30T04:04:57.000Z","size":1208,"stargazers_count":116,"open_issues_count":1,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T12:06:58.016Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","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/dh1011.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2024-08-29T07:17:14.000Z","updated_at":"2025-03-26T05:59:54.000Z","dependencies_parsed_at":"2024-09-07T06:31:45.572Z","dependency_job_id":"491b7081-3aa9-41ac-a63e-8e2e0433ecaf","html_url":"https://github.com/dh1011/llm-term","commit_stats":null,"previous_names":["dh1011/llm-term"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dh1011%2Fllm-term","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dh1011%2Fllm-term/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dh1011%2Fllm-term/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dh1011%2Fllm-term/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dh1011","download_url":"https://codeload.github.com/dh1011/llm-term/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247485287,"owners_count":20946398,"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":[],"created_at":"2024-09-15T14:01:46.170Z","updated_at":"2025-04-06T13:09:22.895Z","avatar_url":"https://github.com/dh1011.png","language":"Rust","funding_links":[],"categories":["\u003ca name=\"ai-cli-commands\"\u003e\u003c/a\u003eAI terminal command generator","Building"],"sub_categories":["Tools"],"readme":"# 🖥️ LLM-Term\n\nA Rust-based CLI tool that generates and executes terminal commands using OpenAI's language models or local Ollama models.\n\n## Features\n\n- Configurable model and token limit (gpt-4o-mini, gpt-4o, or Ollama)\n- Generate and execute terminal commands based on user prompts\n- Works on both PowerShell and Unix-like shells (Automatically detected)\n\n## Demo\n\n![LLM-Term Demo](vhs-video/demo.gif)\n\n## Installation\n\n- Download the binary from the [Releases](https://github.com/dh1011/llm-term/releases) page\n\n- Set PATH to the binary\n\n    - MacOS/Linux:\n    ```\n    export PATH=\"$PATH:/path/to/llm-term\"\n    ```\n    - To set it permanently, add `export PATH=\"$PATH:/path/to/llm-term\"` to your shell configuration file (e.g., `.bashrc`, `.zshrc`)\n\n    - Windows:\n    ```\n    set PATH=\"%PATH%;C:\\path\\to\\llm-term\"\n    ```\n    - To set it permanently, add `set PATH=\"%PATH%;C:\\path\\to\\llm-term\"` to your shell configuration file (e.g., `$PROFILE`)\n\n## Development\n\n1. Clone the repository\n2. Build the project using Cargo: `cargo build --release`\n3. The executable will be available in the `target/release` directory\n\n## Usage\n\n1. Set your OpenAI API key (if using OpenAI models):\n\n   - MacOS/Linux:\n     ```\n     export OPENAI_API_KEY=\"sk-...\"\n     ```\n\n   - Windows:\n     ```\n     set OPENAI_API_KEY=\"sk-...\"\n     ```\n\n\n2. If using Ollama, make sure it's running locally on the default port (11434)\n\n3. Run the application with a prompt:\n\n   ```\n   ./llm-term \"your prompt here\"\n   ```\n\n4. The app will generate a command based on your prompt and ask for confirmation before execution.\n\n## Configuration\n\nA `config.json` file will be created in the same directory as the binary on first run. You can modify this file to change the default model and token limit.\n\n## Options\n\n- `-c, --config \u003cFILE\u003e`: Specify a custom config file path\n\n## Supported Models\n\n- OpenAI GPT-4 (gpt-4o)\n- OpenAI GPT-4 Mini (gpt-4o-mini)\n- Ollama (local models, default: llama3.1)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdh1011%2Fllm-term","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdh1011%2Fllm-term","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdh1011%2Fllm-term/lists"}