For the complete documentation index, see llms.txt. This page is also available as Markdown.

Using the SDK

The OpenGPU Python SDK provides programmatic access to the network for automation and integration. Currently Python-only, covering core functionality.

Full documentation: opengpu-network.github.io/sdk-ogpu-py

Installation

pip install ogpu

Configuration

Create a .env file with your credentials:

CLIENT_PRIVATE_KEY=your_private_key_here

Verify Installation

import ogpu
print(f"OpenGPU SDK version: {ogpu.__version__}")

from ogpu.service import task
from ogpu.client import OGPUClient
print("OpenGPU SDK installed successfully!")

Client API

Publish a Source

Publish a Task

Get Responses

Service API

For building task handlers that run on provider nodes:

Network Selection

Best Practices

  • Store private keys securely: Use environment variables

  • Set appropriate timeouts: Network operations may take time

  • Use Pydantic models: Required for service input/output

See SDK Documentation for API reference.

Last updated