Skip to content

csvenke/llm-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

llm-cli

Effortless LLM-assisted developer workflows for the terminal

Installation

Binary releases

For Windows, macOS 12 or newer, or Linux, you can download a binary release here

Nix

nix profile

nix profile add github:csvenke/llm-cli

nix flake

{
  description = "your flake";

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
    dev-cli = {
      url = "github:csvenke/llm-cli";
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };
}

Usage

Generate a commit message

Stage your changes and run:

llm commit

To amend the previous commit:

llm commit -a

Ask a question

llm ask "How do I find files by content recursively in bash?"

Configuration

Set one of the following environment variables (checked in order):

Variable Description
OPENCODE_ZEN_API_KEY OpenCode Zen API key
ANTHROPIC_API_KEY Anthropic API key
OPENAI_API_KEY OpenAI API key

License

MIT

About

Effortless LLM assisted developer workflows for the terminal

Topics

Resources

License

Stars

Watchers

Forks