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
-
Verify that Bun is installed:
bun --version
If Bun is not installed, follow the instructions here to install it.
-
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, run:
ccmdr 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
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.
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.