A simple CLI tool that converts natural language into shell commands using AI like command k in Cursor.
When interactive mode is enabled, lts will:
- Generate the command using AI
- Print the generated command into the next shell line
- Run the command by hitting enter
Simply describe what you want to do in natural language and the command appears in your next shell:
$ lts add all my files to git and then commit it with the message "finished"
$ git add . && git commit -m "finished"brew tap benfdking/lts https://github.com/benfdking/lts
brew install benfdking/lts/lts
echo 'source "$(brew --prefix)/share/lts/zsh/lts.zsh"' >> ~/.zshrc
source ~/.zshrc
lts initInteractive command execution is enabled by default with Homebrew - just run lts and start using it!
Run lts init for interactive setup, or create a configuration file at ~/.lts.json manually:
Use your Claude Code setup under the hood.
{
"llm_provider": "claude-code"
}Uses the Anthropic API directly with an API key.
{
"llm_provider": "anthropic"
}Set your API key:
export ANTHROPIC_API_KEY=your_key_here{
"llm_provider": "openai"
}Set your API key:
export OPENAI_API_KEY=your_key_here{
"llm_provider": "ollama",
"ollama": {
"url": "http://localhost:11434",
"model": "llama3.2"
}
}