Installation

Python SDK

Requirements

  • Python 3.8 or higher
  • pip or poetry

Install via pip

pip install blockrun-llm

Install via poetry

poetry add blockrun-llm

Dependencies

The Python SDK includes these dependencies:

  • httpx - HTTP client
  • eth-account - Ethereum account management
  • python-dotenv - Environment variable loading

TypeScript SDK

Requirements

  • Node.js 18 or higher
  • npm, pnpm, or yarn

Install via npm

npm install @blockrun/llm

Install via pnpm

pnpm add @blockrun/llm

Install via yarn

yarn add @blockrun/llm

Dependencies

The TypeScript SDK includes:

  • viem - Ethereum library for signing

Verify Installation

{% tabs %} {% tab title="Python" %}

from blockrun_llm import LLMClient
print("BlockRun SDK installed successfully!")

{% endtab %}

{% tab title="TypeScript" %}

import { LLMClient } from '@blockrun/llm';
console.log("BlockRun SDK installed successfully!");

{% endtab %} {% endtabs %}

Environment Setup

Create a .env file in your project root:

BLOCKRUN_WALLET_KEY=0x...your_private_key_here

The SDK automatically loads this file using dotenv.