Installation and Setup

This section guides you through the essential steps to get AgentiPy up and running in your development environment.

Prerequisites

Before you begin, ensure you have the following in place:

  1. Python 3.8+: AgentiPy requires a modern Python version. Verify your installation by running:

Generated bash

python --version
# or
python3 --version

If you need to install or upgrade Python, please refer to the official Python documentation.

  1. Create a Virtual Environment (Highly Recommended): This isolates your project's dependencies from your system's global Python environment, preventing conflicts.

python -m venv venv
  1. Activate the Virtual Environment: The command to activate depends on your operating system:

  • Linux / macOS:

    source venv/bin/activate
  • Windows:

    venv\Scripts\activate

You'll see (venv) prepended to your terminal prompt, indicating the environment is active.

  1. Install AgentiPy: With your virtual environment activated, install AgentiPy using pip:

pip install agentipy

This command downloads and installs the latest stable version of AgentiPy and its dependencies.

  1. Langchain (Optional, for AI Integration): If your project involves integrating AgentiPy with AI agent frameworks like Langchain, you'll need to install it separately:

pip install langchain

Wallet with Private Keys: To authorize and send transactions on the blockchain, you will need access to a wallet with its private keys. Security is paramount: never hardcode your private keys directly into your scripts. It is strongly recommended to use environment variables or a secure key management system.


Last updated