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.
- Download the nlc file and place it in your path
- Install
openaipip install openai # or uv tool install openai
-
Export your OpenAI API key:
export OPENAI_API_KEY=sk-... -
(Optional) Pick a default model:
export OPENAI_MODEL=gpt-4o-mini