Skip to main content

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

  1. Clone the repository:

    git clone https://github.com/yourusername/aicli.git
    cd aicli
    
  2. Create a virtual environment and activate it:

    python -m venv env
    source env/bin/activate  # On Windows use `env\Scripts\activate`
    
  3. Install the required dependencies:

    pip install -r requirements.txt
    
  4. Build the project:

    python -m build
    

Using pip

  1. Install the package:
    pip install aicli100
    
  2. Run the app:
    aicli100
    

Usage

  1. Run the CLI application:

    python src/main.py
    
  2. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aicli100-1.0.6.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

aicli100-1.0.6-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file aicli100-1.0.6.tar.gz.

File metadata

  • Download URL: aicli100-1.0.6.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

Hashes for aicli100-1.0.6.tar.gz
Algorithm Hash digest
SHA256 5e4aeb42df358e9506fc19d9a37d7ea5c5955840ed22b3b6d6a4bd9db3f1d36a
MD5 0513e638e7801aa74ad3ca2fcb5d9ac0
BLAKE2b-256 b9d5eb13a8c114b49ab2b6d05095680544c368dbcbd27a9ab6ecd1bad1a3dd1c

See more details on using hashes here.

File details

Details for the file aicli100-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: aicli100-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.4

File hashes

Hashes for aicli100-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 82c5acd677147133019f3312df09a462abda2b7276cf7bde842b6227b04cd20d
MD5 62b156333c3ce805b10e06f8981b19dc
BLAKE2b-256 78d0547d8e2681bc9f9c65955b65e4ea93a6f26ec585f7d060341d7e47843c1e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page