Skip to content

DannyBen/nlc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nlc — Natural Language → Command

nlc is a tiny command-line helper that turns natural language instructions into executable shell commands using OpenAI models.

It’s designed to be minimal and intuitive:

  • You type what you want in plain English.
  • It shows you the generated command inline with a $ prompt.
  • Press Enter to execute, or anything else to cancel.

Installation

  1. Download the nlc file and place it in your path
  2. Install openai
    pip install openai
    # or
    uv tool install openai

Setup

  1. Export your OpenAI API key:

    export OPENAI_API_KEY=sk-...
  2. (Optional) Pick a default model:

    export OPENAI_MODEL=gpt-4o-mini

About

Natural Language → Command

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages