Skip to content
/ ccmdr Public

Get AI into your CLI using the Pwoerful model from cohere CommandR+ 🔥

License

Notifications You must be signed in to change notification settings

oovaa/ccmdr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLI Tool: Command R+ AI Assistant

This CLI tool allows you to create a command-line AI assistant using the Command R+ model from Cohere and the Langchain framework.

Table of Contents

Installation

To install the CLI tool, follow these steps:

  1. Clone the repository:

    git clone https://github.com/oovaa/ccmdr.git
  2. Navigate to the project directory:

    cd ccmdr
  3. Verify that Bun is installed:

    bun --version

    If Bun is not installed, follow the instructions here to install it.

  4. Run the install script (optionally passing your COHERE_API_KEY)

    . ./install <COHERE_API_KEY>

Note: The COHERE_API_KEY will be stored in /etc/environment.

Updating

To update the tool, run:

ccmdr update

Usage

Interactive Mode

To use the CLI tool in interactive mode, follow these steps:

  1. Open a terminal and navigate to the project directory.
  2. Run the CLI tool:
    ccmdr
  3. Follow the on-screen instructions to interact with the AI assistant.

Non-Interactive Mode

To use the CLI tool in non-interactive mode, follow these steps:

  1. Open a terminal and navigate to the project directory.
  2. Run the CLI tool with your question:
    ccmdr tell me about Palestine

Configuration

run ccmdr -sc to get style config guide

Before using the CLI tool, make sure to configure the necessary settings by uploading the COHERE_API_KEY to your environment. You can do this manually or pass it to the install script as mentioned in the Installation section.

Uninstall

To uninstall, just run ccmdr uninstall and it will take care of everything. It will unset the environment variable and remove it from /etc/environment, remove the node_modules folder, and remove the ccmdr command from your path.

About

Get AI into your CLI using the Pwoerful model from cohere CommandR+ 🔥

Resources

License

Stars

Watchers

Forks

Packages

No packages published