About this project
# Claude CLI
A lightweight command-line interface for interacting with Claude AI models. This tool provides a simple way to send prompts to Claude and receive responses directly in your terminal.
## Features
- **Minimal dependencies**: Built with zero external dependencies, making it easy to install and run anywhere.
- **Streaming responses**: Supports real-time streaming of Claude's responses as they are generated.
- **Conversation history**: Maintains context across multiple messages within a session.
- **Simple usage**: Straightforward command structure for quick interactions.
## Installation
Clone the repository and ensure you have Node.js installed. No additional package installation is required.
```bash
git clone https://github.com/hendrypangg12/claude.git
cd claude
```
## Usage
Set your Anthropic API key as an environment variable, then run the CLI with your prompt:
```bash
export ANTHROPIC_API_KEY="your-api-key"
node cli.js "Your prompt here"
```
### Options
- `--model`: Specify the Claude model to use (defaults to a standard model).
- `--no-stream`: Disable streaming output.
- `--history`: Enable conversation history mode.
## Requirements
- Node.js 18 or higher
- An Anthropic API key
## License
MIT
Comments
0 Rating appears after 10 ratings
Sign in to join the discussion.