A CLI to use AI directly from the Terminal.
Project description
aicli100
AICLI100 is a command line interface for using AI.
Features
- Install and Check Ollama: Automatically installs and checks the Ollama AI tool on Linux systems.
- API Key Management: Easily set and check API keys for OpenAI and Anthropic.
- Model Management: List available AI models and set the desired model for AI requests.
- Command Line Interface: Interact with the AI directly from the terminal using simple commands.
Installation
Using git
-
Clone the repository:
git clone https://github.com/yourusername/aicli.git cd aicli
-
Create a virtual environment and activate it:
python -m venv env source env/bin/activate # On Windows use `env\Scripts\activate`
-
Install the required dependencies:
pip install -r requirements.txt
-
Build the project:
python -m build
Using pip
- Install the package:
pip install aicli100
- Run the app:
aicli100
Usage
-
Run the CLI application:
python src/main.py
-
Use the following commands within the CLI:
/help
or/?
: Show help text./exit
: Exit the application./clear
: Clear the screen./keys-check
: Check the status of API keys./key-set open_ai <api_key>
: Set the OpenAI API key./key-set anthropic <api_key>
: Set the Anthropic API key./set-model <model>
: Set the AI model./models
: List available AI models.
Configuration
The configuration file is located at ~/.aicli_config.ini
. It stores API keys and user settings.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contributing
Contributions are welcome! Please open an issue or submit a pull request.
Author
Roberto Fernandino - romfernandino@gmail.com
Acknowledgements
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file aicli100-1.1.0.tar.gz
.
File metadata
- Download URL: aicli100-1.1.0.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58ac70074365f5a029e18a203a077d178e401a21b14674123e93f5e54b9b1899 |
|
MD5 | 9e1bfea922835124b835665b24c55f9c |
|
BLAKE2b-256 | f15e625c91943deaa7fad8fe26e93ea92ec7f57ec0e1b6c0795f18eb488d4c39 |
File details
Details for the file aicli100-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: aicli100-1.1.0-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b5585f36492bb37dac9ac4dbe8ccde4ba3dfcdca7b8e31efe54b6ca74690cc4 |
|
MD5 | 7d20ee17d4c9abbd3a96ed5560d68f24 |
|
BLAKE2b-256 | 1088a6dd321d600c91a52e53a5101b8ea3222e78e930eea7d09042d4f810dd86 |