Python SDKGuideInstallation

Requirements

  • Python 3.11+
  • A Regent account, KYC verified, with an API key (rgnt_…)

Install

The SDK is not on PyPI yet, and the PyPI names regent and regent-sdk belong to unrelated projects — do not pip install regent. Install straight from the public GitHub repository:

pip install "git+https://github.com/abay94/regent-sdk-python.git"

For local development from a checkout:

git clone git@github.com:abay94/regent-sdk-python.git
cd regent-sdk-python
pip install -e .

Verify

python -c "import regent; print('regent SDK import OK')"
pip show regent-sdk        # Name: regent-sdk, Version: 0.1.0

Optional extras

For the included examples (Binance trading agent, etc.) you may also want:

pip install httpx pydantic rich
  • httpx is a hard dependency of the SDK — installed automatically.
  • pydantic is a hard dependency — installed automatically.
  • rich is optional but recommended for the demo Binance agent’s terminal UI.

Async runtime

The SDK is async-only. Use it inside asyncio.run(...) or within an existing event loop. In Jupyter notebooks, asyncio.run may collide with the existing loop — use await directly at the top level instead.

# Jupyter / IPython
import nest_asyncio; nest_asyncio.apply()
from regent import RegentClient
async with RegentClient(...) as r:
    agent = await r.identity.get_agent("agent_b1c59d23...")
    print(agent)

What next

Configure the base URL and API key — and understand how org scoping works.

Authentication