Installing SDK & CLI Tools

OmniTensor provides a robust SDK and CLI tools for developers to interact with the platform's infrastructure and deploy AI models or decentralized applications (dApps).

  1. Install the OmniTensor SDK

    Prerequisites:

    • Ensure you have Python 3.8+ installed.

    • Install pip (Python package manager).

    Steps:

    • Install the SDK via pip:

      pip install omnitensor-sdk
    • After installation, initialize the SDK by configuring your API keys:

      omnitensor config set-api-key <Your API Key>
      omnitensor config set-wallet <Your Wallet Address>
  2. Set Up CLI Tools

    The OmniTensor Command Line Interface (CLI) simplifies the interaction with OmniTensor’s decentralized infrastructure for tasks such as deploying AI models and managing nodes.

    Steps:

    • Download and install the CLI tool.

    • Ensure you have the required permissions to execute the installer:

      chmod +x omnitensor-cli
    • Move the CLI to a directory in your system's PATH:

      sudo mv omnitensor-cli /usr/local/bin/omnitensor

    Usage Example:

    • Authenticate your CLI with the following command:

      omnitensor login --email <Your Email> --password <Your Password>
    • Deploy a pre-trained AI model:

      omnitensor model deploy --model-id <model-id> --dataset <path-to-dataset>
    • Check the status of your node or AI inference tasks:

      omnitensor node status

Last updated