Skip to content

Installing

Requirements

Before installing ClientAI, ensure you have the following prerequisites:

  • Python: Version 3.9 or newer.
  • Core Dependencies: ClientAI has minimal core dependencies, which will be automatically installed.
  • Provider-Specific Libraries: Depending on which AI providers you plan to use, you may need to install additional libraries:
    • For OpenAI: openai library
    • For Replicate: replicate library
    • For Ollama: ollama library

Installing

ClientAI offers flexible installation options to suit your needs:

Basic Installation

To install the core ClientAI package without any provider-specific dependencies:

pip install clientai

Or, if using poetry:

poetry add clientai

Installation with Specific Providers

To install ClientAI with support for specific providers:

pip install clientai[openai]  # For OpenAI support
pip install clientai[replicate]  # For Replicate support
pip install clientai[ollama]  # For Ollama support

Or with poetry:

poetry add clientai[openai]
poetry add clientai[replicate]
poetry add clientai[ollama]

Full Installation

To install ClientAI with support for all providers:

pip install clientai[all]

Or with poetry:

poetry add clientai[all]