Install
Prerequisites
Section titled “Prerequisites”Python SDK
Section titled “Python SDK”- Python 3.8 or higher
- pip package manager
- Private key for signing transactions (or run in read-only mode)
- Access to an Ethereum RPC endpoint (e.g., Alchemy, Infura)
- (Optional) IPFS provider account (Pinata, Filecoin, or local IPFS node)
- Subgraph: Automatically configured with default URL (optional override for custom subgraph endpoints)
TypeScript SDK
Section titled “TypeScript SDK”- Node.js 18 or higher
- npm or yarn package manager
- Private key for signing transactions (or run in read-only mode)
- Access to an Ethereum RPC endpoint (e.g., Alchemy, Infura)
- (Optional) IPFS provider account (Pinata, Filecoin, or local IPFS node)
- Subgraph: Automatically configured with default URL (optional override for custom subgraph endpoints)
Installation
Section titled “Installation”Install from PyPI
Section titled “Install from PyPI”The easiest way to install Agent0 SDK is using pip:
pip install agent0-sdkInstall from Source
Section titled “Install from Source”To install from the latest source code:
git clone https://github.com/agent0lab/agent0-py.gitcd agent0-pypip install -e .Verify Installation
Section titled “Verify Installation”Verify that Agent0 SDK is installed correctly:
from agent0_sdk import SDKprint(f"Agent0 SDK imported successfully")Install from npm
Section titled “Install from npm”npm install agent0-sdkOr with yarn:
yarn add agent0-sdkInstall from Source
Section titled “Install from Source”To install from the latest source code:
git clone https://github.com/agent0lab/agent0-ts.gitcd agent0-tsnpm installnpm run buildVerify Installation
Section titled “Verify Installation”Verify that Agent0 SDK is installed correctly:
import { SDK } from 'agent0-sdk';console.log('Agent0 SDK imported successfully');Required Dependencies
Section titled “Required Dependencies”Agent0 SDK depends on:
web3- Ethereum blockchain interactioneth_account- Account management and signingrequests- HTTP requestsipfshttpclient- IPFS integrationpydantic- Data validation and settings managementpython-dotenv- Environment variable managementaiohttp- Async HTTP clientnumpy- Numerical computing (for search)scikit-learn- Machine learning (for search)sentence-transformers- Semantic search
All dependencies are installed automatically with pip.
Optional Dependencies
Section titled “Optional Dependencies”For enhanced functionality:
- Subgraph: Automatically configured with default URL for fast search queries (optional override with
subgraphUrlorsubgraphOverridesfor custom endpoints) - IPFS Providers: Pinata JWT or Filecoin private key for decentralized file storage
Next Steps
Section titled “Next Steps”- Configure your Agent
- Start with Registration