Skip to content

quietlyecho/simple-llm-chat-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple LLM Chat CLI (slcc)

A simple CLI program, slcc, to chat with multiple LLM providers (e.g., ChatGPT and Claude) through a unified interface.

Features

  • Support for ChatGPT (OpenAI) and Claude (Anthropic)
  • Conversation history maintained throughout the session

Prerequisites

Have an API key for ChatGPT or Claude and that the keys are exported as environment variables OPENAI_API_KEY or ANTHROPIC_API_KEYi.

Installation

Install with pipx

  1. Install pipx if you don't have it. For more info, refer to its documentation

  2. Install directly from GitHub:

pipx install git+https://github.com/quietlyecho/simple-llm-chat-cli.git
  1. The slcc command is now available globally:
slcc --provider claude

Usage

slcc -p claude
# or below
slcc --provider claude

Specify a custom model:

slcc --provider chatgpt --model gpt-4o
slcc --provider claude --model claude-sonnet-4

Adjust maximum tokens:

slcc --provider chatgpt --max-tokens 2048

Adjust temperature (randomness):

slcc --provider chatgpt --temperature 0.7
slcc --provider chatgpt --temperature 1.0  # More creative
slcc --provider claude --temperature 0.2  # More deterministic

Command-Line Options

slcc -h

Options:

  • -p, --provider (required): Choose provider (chatgpt or claude)
  • -m, --model (optional): Specify model name (uses provider default if not specified)
  • --max-tokens (optional): Maximum tokens in response (default: 1024)
  • --temperature (optional): Sampling temperature 0.0-1.0, higher is more random (default: 0.5)

During Conversation

  • Type your prompts and press Enter to send
  • Type exit or quit to end the conversation
  • Press Ctrl+C to interrupt the conversation

About

A simple CLI tool for chatting LLMs.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages