Python SDKGuideInstallation

Requirements

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

Install

pip install regent

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.__version__)"

Should print the current SDK version (e.g. 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