* . *
  • About
  • Advertise
  • Privacy & Policy
  • Contact
Saturday, July 5, 2025
Earth-News
  • Home
  • Business
  • Entertainment
    Kennedy Publishing, MGA Entertainment Launch Yummiland Magazine – License Global

    Kennedy Publishing, MGA Entertainment Launch Yummiland Magazine – License Global

    MAY HER SOUL REST IN PEACE 🙏 Veteran entertainment columnist and talent manager Lolit Solis has passed away. She was 78 years old. https://tinyurl.com/6kumarkx | LatestChika.com – Facebook

    Beloved Entertainment Icon Lolit Solis Passes Away at 78 – A Life Remembered with Love and Respect 🙏

    Neil Young Plays Rare Full-Band ‘Ambulance Blues’ With The Chrome Hearts – Yahoo

    Neil Young Stuns Fans with Rare Full-Band Performance of ‘Ambulance Blues’ Alongside The Chrome Hearts

    BTS Announce Their Big Return and Yes, They Already Have Some Major Plans in the Works – Yahoo

    BTS Announce Their Big Return and Yes, They Already Have Some Major Plans in the Works – Yahoo

    Nantucket Dance Festival opens July 8 – The Inquirer and Mirror

    Nantucket Dance Festival Launches with Thrilling Performances Beginning July 8

    A Secret Society, Ritualistic Killings, and a Century-Old Curse Netflix and YRF Entertainment’s ‘Mandala Murders’ Premieres July 25 – About Netflix

    A Secret Society, Ritualistic Killings, and a Century-Old Curse: Dive into the Chilling World of ‘Mandala Murders’ Premiering July 25

  • General
  • Health
  • News

    Cracking the Code: Why China’s Economic Challenges Aren’t Shaking Markets, Unlike America’s” – Bloomberg

    Trump’s Narrow Window to Spread the Truth About Harris

    Trump’s Narrow Window to Spread the Truth About Harris

    Israel-Gaza war live updates: Hamas leader Ismail Haniyeh assassinated in Iran, group says

    Israel-Gaza war live updates: Hamas leader Ismail Haniyeh assassinated in Iran, group says

    PAP Boss to Niger Delta Youths, Stay Away from the Protest

    PAP Boss to Niger Delta Youths, Stay Away from the Protest

    Court Restricts Protests In Lagos To Freedom, Peace Park

    Court Restricts Protests In Lagos To Freedom, Peace Park

    Fans React to Jazz Jennings’ Inspiring Weight Loss Journey

    Fans React to Jazz Jennings’ Inspiring Weight Loss Journey

    Trending Tags

    • Trump Inauguration
    • United Stated
    • White House
    • Market Stories
    • Election Results
  • Science
  • Sports
  • Technology
    New Technology for Water Efficiency and Working with Mexico on Screwworm – AG INFORMATION NETWORK OF THE WEST

    Revolutionary Water Efficiency Technology and Cross-Border Collaboration to Defeat Screwworm

    Environmental cognitive distance, R&D capability distance, and supply chain green technology innovation – Nature

    Bridging Gaps: How Environmental and R&D Differences Drive Green Technology Innovation in Supply Chains

    LG Innotek CEO Moon Hyuksoo: “Our Next-gen Substrate Technology Will Change the Industry Paradigm” – TechPowerUp

    LG Innotek CEO Moon Hyuksoo: “Our Next-Gen Substrate Technology Will Revolutionize the Industry” Revolutionizing the Future: LG Innotek’s CEO Unveils Game-Changing Next-Gen Substrate Technology

    Inspira Technologies Secures Landmark $22.5M Deal: Major Revenue Breakthrough After FDA Clearance – Stock Titan

    Inspira Technologies Secures Landmark $22.5M Deal: Major Revenue Breakthrough After FDA Clearance – Stock Titan

    Meiwu Technology Company Limited and Shenzhen Zhinuo – GlobeNewswire

    Meiwu Technology Company Limited and Shenzhen Zhinuo – GlobeNewswire

    Owls inspire new revolutionary noise reduction technology – KTEN

    Owls inspire new revolutionary noise reduction technology – KTEN

    Trending Tags

    • Nintendo Switch
    • CES 2017
    • Playstation 4 Pro
    • Mark Zuckerberg
No Result
View All Result
  • Home
  • Business
  • Entertainment
    Kennedy Publishing, MGA Entertainment Launch Yummiland Magazine – License Global

    Kennedy Publishing, MGA Entertainment Launch Yummiland Magazine – License Global

    MAY HER SOUL REST IN PEACE 🙏 Veteran entertainment columnist and talent manager Lolit Solis has passed away. She was 78 years old. https://tinyurl.com/6kumarkx | LatestChika.com – Facebook

    Beloved Entertainment Icon Lolit Solis Passes Away at 78 – A Life Remembered with Love and Respect 🙏

    Neil Young Plays Rare Full-Band ‘Ambulance Blues’ With The Chrome Hearts – Yahoo

    Neil Young Stuns Fans with Rare Full-Band Performance of ‘Ambulance Blues’ Alongside The Chrome Hearts

    BTS Announce Their Big Return and Yes, They Already Have Some Major Plans in the Works – Yahoo

    BTS Announce Their Big Return and Yes, They Already Have Some Major Plans in the Works – Yahoo

    Nantucket Dance Festival opens July 8 – The Inquirer and Mirror

    Nantucket Dance Festival Launches with Thrilling Performances Beginning July 8

    A Secret Society, Ritualistic Killings, and a Century-Old Curse Netflix and YRF Entertainment’s ‘Mandala Murders’ Premieres July 25 – About Netflix

    A Secret Society, Ritualistic Killings, and a Century-Old Curse: Dive into the Chilling World of ‘Mandala Murders’ Premiering July 25

  • General
  • Health
  • News

    Cracking the Code: Why China’s Economic Challenges Aren’t Shaking Markets, Unlike America’s” – Bloomberg

    Trump’s Narrow Window to Spread the Truth About Harris

    Trump’s Narrow Window to Spread the Truth About Harris

    Israel-Gaza war live updates: Hamas leader Ismail Haniyeh assassinated in Iran, group says

    Israel-Gaza war live updates: Hamas leader Ismail Haniyeh assassinated in Iran, group says

    PAP Boss to Niger Delta Youths, Stay Away from the Protest

    PAP Boss to Niger Delta Youths, Stay Away from the Protest

    Court Restricts Protests In Lagos To Freedom, Peace Park

    Court Restricts Protests In Lagos To Freedom, Peace Park

    Fans React to Jazz Jennings’ Inspiring Weight Loss Journey

    Fans React to Jazz Jennings’ Inspiring Weight Loss Journey

    Trending Tags

    • Trump Inauguration
    • United Stated
    • White House
    • Market Stories
    • Election Results
  • Science
  • Sports
  • Technology
    New Technology for Water Efficiency and Working with Mexico on Screwworm – AG INFORMATION NETWORK OF THE WEST

    Revolutionary Water Efficiency Technology and Cross-Border Collaboration to Defeat Screwworm

    Environmental cognitive distance, R&D capability distance, and supply chain green technology innovation – Nature

    Bridging Gaps: How Environmental and R&D Differences Drive Green Technology Innovation in Supply Chains

    LG Innotek CEO Moon Hyuksoo: “Our Next-gen Substrate Technology Will Change the Industry Paradigm” – TechPowerUp

    LG Innotek CEO Moon Hyuksoo: “Our Next-Gen Substrate Technology Will Revolutionize the Industry” Revolutionizing the Future: LG Innotek’s CEO Unveils Game-Changing Next-Gen Substrate Technology

    Inspira Technologies Secures Landmark $22.5M Deal: Major Revenue Breakthrough After FDA Clearance – Stock Titan

    Inspira Technologies Secures Landmark $22.5M Deal: Major Revenue Breakthrough After FDA Clearance – Stock Titan

    Meiwu Technology Company Limited and Shenzhen Zhinuo – GlobeNewswire

    Meiwu Technology Company Limited and Shenzhen Zhinuo – GlobeNewswire

    Owls inspire new revolutionary noise reduction technology – KTEN

    Owls inspire new revolutionary noise reduction technology – KTEN

    Trending Tags

    • Nintendo Switch
    • CES 2017
    • Playstation 4 Pro
    • Mark Zuckerberg
No Result
View All Result
Earth-News
No Result
View All Result
Home Technology

Show HN: Llm2sh – Translate plain-language requests into shell commands

July 18, 2024
in Technology
Show HN: Llm2sh – Translate plain-language requests into shell commands
Share on FacebookShare on Twitter

llm2sh is a command-line utility that leverages Large Language Models (LLMs) to translate plain-language requests
into shell commands. It provides a convenient way to interact with your system using natural language.

Translates plain language requests into corresponding shell commands
Supports multiple LLMs for command generation
Customizable configuration file
YOLO mode for running commands without confirmation
Easily extensible with new LLMs and system prompts
Verbose mode for debugging

llm2sh uses OpenAI, Claude, and other LLM APIs to generate shell commands based on the user’s requests.
For OpenAI, Claude, and Groq, you will need to have an API key to use this tool.

OpenAI: You can sign up for an API key on the OpenAI website.
Claude: You can sign up for an API key on the Claude API Console.
Groq: You can sign up for an API key on the GroqCloud Console.

Running llm2sh for the first time will create a template configuration file at ~/.config/llm2sh/llm2sh.json.
You can specify a different path using the -c or –config option.

Before using llm2sh, you need to set up the configuration file with your API keys and preferences.
You can also use the OPENAI_API_KEY, CLAUDE_API_KEY, and GROQ_API_KEY environment variables to specify the
API keys.

To use llm2sh, run the following command followed by your request:

llm2sh [options]

For example:

Basic usage:

$ llm2sh “list all files in the current directory”

You are about to run the following commands:
$ ls -a
Run the above commands? [y/N]

Use a specific model for command generation:

$ llm2sh -m gpt-3.5-turbo “find all Python files in the current directory, recursively”

You are about to run the following commands:
$ find . -type f -name “*.py”
Run the above commands? [y/N]

llm2sh supports running multiple commands in sequence, and supports interactive commands like sudo:

llm2sh “install docker in rootless mode”

You are about to run the following commands:
$ sudo newgrp docker
$ sudo pacman -Sy docker-rootless-extras
$ sudo usermod -aG docker “$USERNAME”
$ dockerd-rootless-setuptool.sh install
Run the above commands? [y/N]

Run the generated command without confirmation:

llm2sh –force “delete all temporary files”

-h, –help show this help message and exit
-c CONFIG, –config CONFIG
specify config file, (Default: ~/.config/llm2sh/llm2sh.json)
-d, –dry-run do not run the generated command
-l, –list-models list available models
-m MODEL, –model MODEL
specify which model to use
-t TEMPERATURE, –temperature TEMPERATURE
use a custom sampling temperature
-v, –verbose print verbose debug information
-f, –yolo, –force run whatever GPT wants, without confirmation

llm2sh currently supports the following LLMs for command generation:

(Ratings are based on my subjective opinion and experience. Your mileage may vary.)

Model Name
Provider
Accuracy
Cost
Notes

local
N/A
¯(ツ)/¯
FREE
Needs local OpenAI API compatible LLM Api Endpoint (i.e. llama.cpp)

groq-llama3-70b
Groq
🧠🧠🧠
FREE (with rate limits)
Blazing fast; recommended

groq-llama3-8b
Groq
🧠🧠
FREE (with rate limits)
Blazing fast

groq-mixtral-8x7b
Groq
🧠
FREE (with rate limits)
Blazing fast

groq-gemma-7b
Groq
🧠
FREE (with rate limits)
Blazing fast

gpt-4o
OpenAI
🧠🧠
💲💲💲
Default model

gpt-4-turbo
OpenAI
🧠🧠🧠
💲💲💲💲

gpt-3.5-turbo-instruct
OpenAI
🧠🧠
💲💲

claude-3-opus
Claude
🧠🧠🧠🧠
💲💲💲💲
Fairly slow (>10s)

claude-3-sonnet
Claude
🧠🧠🧠
💲💲💲
Somewhat slow (~5s)

claude-3-haiku
Claude
🧠
💲💲

✅ Support multiple LLMs for command generation
⬜ User-customizable system prompts
⬜ Integrate with tool calling for more complex commands
⬜ More complex RAG for efficiently providing relevant context to the LLM
⬜ Better support for executing complex interactive commands
⬜ Interactive configuration & setup via the command line

llm2sh does not store any user data or command history, and it does not record or send any telemetry
by itself. However, the LLM APIs may collect and store the requests and responses for their own purposes.

To help LLMs generate better commands, llm2sh may send the following information as part of the LLM
prompt in addition to the user’s request:

Your operating system and version
The current working directory
Your username
Names of files and directories in your current working directory
Names of environment variables available in your shell. (Only the names/keys are sent, not the values).

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository.

This project is licensed under the GPLv3.

llm2sh is an experimental tool that relies on LLMs for generating shell commands. While it can be helpful, it’s important to review and understand the generated commands before executing them, especially when using the YOLO mode. The developers are not responsible for any damages or unintended consequences resulting from the use of this tool.

This project is not affiliated with OpenAI, Claude, or any other LLM provider or creator.
This project is not affiliated with my employer in any way. It is an independent project created for educational and research purposes.

>>> Read full article>>>
Copyright for syndicated content belongs to the linked Source : Hacker News – https://github.com/randombk/llm2sh

Tags: plain-languagetechnologytranslate
Previous Post

150+ Best Prime Day Deals: Final Hours to Score Deep Discounts on Tech, Home Goods and So Much More

Next Post

Mercedes-Benz high-power charging goes large at Starbucks

New Technology for Water Efficiency and Working with Mexico on Screwworm – AG INFORMATION NETWORK OF THE WEST

Revolutionary Water Efficiency Technology and Cross-Border Collaboration to Defeat Screwworm

July 4, 2025
California AG Rob Bonta says online fantasy sports platforms are illegal in the state – KCRA

California AG Rob Bonta Cracks Down, Declares Online Fantasy Sports Platforms Illegal

July 4, 2025
Bridge Point Tacoma permit and settlement – Washington State Department of Ecology (.gov)

Bridge Point Tacoma permit and settlement – Washington State Department of Ecology (.gov)

July 4, 2025
Accelerated data-driven materials science with the Materials Project – Nature

Accelerated data-driven materials science with the Materials Project – Nature

July 4, 2025
Downtown Louisville, Ky., gets new lifestyle hotel – hotelmanagement.net

Downtown Louisville Welcomes Exciting New Lifestyle Hotel

July 4, 2025
Romer: Finding common ground in a divided world – VailDaily.com

Romer: Building Bridges to Unite a Divided World

July 4, 2025
The Republican Budget Bill Is an Economy Killer – Bloomberg.com

The Republican Budget Bill Is an Economy Killer – Bloomberg.com

July 4, 2025
Kennedy Publishing, MGA Entertainment Launch Yummiland Magazine – License Global

Kennedy Publishing, MGA Entertainment Launch Yummiland Magazine – License Global

July 4, 2025
Trump says his 6th phone call with Putin this year ‘didn’t make any progress’ – PBS

Trump says his 6th phone call with Putin this year ‘didn’t make any progress’ – PBS

July 4, 2025
Environmental cognitive distance, R&D capability distance, and supply chain green technology innovation – Nature

Bridging Gaps: How Environmental and R&D Differences Drive Green Technology Innovation in Supply Chains

July 4, 2025

Categories

Archives

July 2025
MTWTFSS
 123456
78910111213
14151617181920
21222324252627
28293031 
« Jun    
Earth-News.info

The Earth News is an independent English-language daily published Website from all around the World News

Browse by Category

  • Business (20,132)
  • Ecology (705)
  • Economy (731)
  • Entertainment (21,619)
  • General (15,711)
  • Health (9,768)
  • Lifestyle (735)
  • News (22,149)
  • People (731)
  • Politics (738)
  • Science (15,947)
  • Sports (21,229)
  • Technology (15,715)
  • World (711)

Recent News

New Technology for Water Efficiency and Working with Mexico on Screwworm – AG INFORMATION NETWORK OF THE WEST

Revolutionary Water Efficiency Technology and Cross-Border Collaboration to Defeat Screwworm

July 4, 2025
California AG Rob Bonta says online fantasy sports platforms are illegal in the state – KCRA

California AG Rob Bonta Cracks Down, Declares Online Fantasy Sports Platforms Illegal

July 4, 2025
  • About
  • Advertise
  • Privacy & Policy
  • Contact

© 2023 earth-news.info

No Result
View All Result

© 2023 earth-news.info

No Result
View All Result

© 2023 earth-news.info

Go to mobile version