This CLI tool allows you to create a command-line AI assistant using the Command R+ model from Cohere and the Langchain framework.
To install the CLI tool, follow these steps:
- Clone the repository:
git clone https://github.com/oovaa/ccmdr.git
- Navigate to the project directory:
cd ccmdr
- 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
.
To update the tool, navigate to its location and run:
./update
To use the CLI tool in interactive mode, follow these steps:
- Open a terminal and navigate to the project directory.
- Run the CLI tool:
ccmdr
- Follow the on-screen instructions to interact with the AI assistant.
To use the CLI tool in non-interactive mode, follow these steps:
- Open a terminal and navigate to the project directory.
- Run the CLI tool with your question:
ccmdr tell me about Palestine
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.
to uninstall just run . ./uninstall
and it will take care of everything it will unset the env var and remove it from /etc/environment
remove the node_modules
folder and remove ccmdr
command from your path