Skip to content

Rust CLI to interact with Claude

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

ghannay10/claude-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Claude CLI Tool

Overview

Claude CLI is a command-line interface tool written in Rust that allows you to interact with Anthropic's language model (Claude) directly in your terminal.

example

Features

  • Interaction with the Claude.
  • Support for multi-turn conversations.
  • Accepts code inputs

Prerequisites

Before using Claude CLI, make sure you have the following prerequisites:

  • Rust installed on your system.
  • API key from Anthropic (stored in the CLAUDE_API_KEY environment variable): export CLAUDE_API_KEY=<api-key>

Installation

To use Claude CLI, clone the repository and build the project using the following command:

cargo install claude_cli

Usage

  • To launch run: claude
  • For an instant query, run with a prompt wrapped quotation marks : claude '<query here>'
  • Multi-line support - To enter multiple lines to a question wrap your query in three quotation marks ('''). Example:
claude '''turn this into a python function: 
fn print_hello_world() {
    println!("Hello, World!");
}
'''

Coming soon

  • Conversation history - ability to store and return to previous conversations
  • Query customisation - adapt and customise query parameters

About

Rust CLI to interact with Claude

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages