SDKs
Hypnex publishes five primary SDKs, all dual-language (Python + TypeScript), MIT-licensed.
| Package | Language | Purpose |
|---|---|---|
hypnex-openai | TS + Python | Drop-in OpenAI client routed to Morpheus inference network |
hypnex-staking | TS + Python | Wallet-native onramp + helpers for the Morpheus capital pool |
hypnex-registry | TS + Python | MRC-58 agent registration (v1 free, v2 paid) |
hypnex-forge | TS + Python | MRC-60 tool registry + escrow flows |
hypnex-bench | TS + Python | Eval suite + leaderboard client |
Installation
TypeScript / JavaScript
bash
npm install hypnex-openai hypnex-staking hypnex-registry hypnex-forge hypnex-bench
# or
pnpm add hypnex-openai hypnex-staking hypnex-registry hypnex-forge hypnex-benchPython
bash
pip install hypnex-openai hypnex-staking hypnex-registry hypnex-forge hypnex-benchCommon patterns
All Hypnex on-chain SDKs (hypnex-staking, hypnex-registry, hypnex-forge) share:
- Chain selection via constructor:
{ chain: 'arbitrum' | 'base' } - Wallet injection via standard provider interface (viem
WalletClient, ethersSigner, web3.py) - MOR token handling via
.approveMOR()helper (one-time per chain per signer) - Subgraph reads via
.list()/.byId()for off-chain indexed queries
Current versions
| Package | Current version | Default chain |
|---|---|---|
hypnex-openai | 0.x | (off-chain, no chain) |
hypnex-staking | 0.x | both Arb + Base |
hypnex-registry (TS + Py) | 0.3.0 | MRC-58 v2 (paid, 1 MOR) |
hypnex-forge (TS + Py) | 0.2.1 | Forge v1 + Escrow Phase 3 |
hypnex-bench | 0.x | both Arb + Base |
Versioning
All SDKs follow semver. Breaking changes are gated through GitHub Issues with the breaking label and announced ≥1 week in advance via release notes.