Drop-in Anthropic & OpenAI Python SDK clients for BlockRun — genuine native passthrough (real signatures, system_fingerprint, native structure) with x402 USDC micropayments on Base. No model substitution, no response reshaping.
Project description
blockrun-llm-vip
Genuine native passthrough for Anthropic and OpenAI through the BlockRun gateway — pay per call in USDC (x402) on Base, with zero model substitution and zero response reshaping.
Unlike a normal aggregator, these clients subclass the official anthropic and
openai Python SDKs and only swap the transport (to add x402 payment) and the base
URL. The gateway returns the upstream provider's response verbatim, so the official
SDK parses the real signals:
- Claude: real thinking-block
signature, nativecontent[](text / thinking / tool_use),usage.cache_creation_input_tokens/cache_read_input_tokens, nativesignature_deltastreaming — routed to Anthropic's native/v1/messages. - GPT: native
id(chatcmpl-*),system_fingerprint,usage.*_tokens_details, honestresponse_format(JSON mode) +stop+ nested errors.gpt-4o/gpt-4o-miniare served OpenAI-direct.
A Claude / OpenAI relay detector (e.g. cctest.ai) sees a direct upstream call.
Install
pip install blockrun-llm-vip
Use — it's a drop-in
from blockrun_llm_vip import Anthropic, OpenAI
# Claude — exactly the official anthropic SDK API
claude = Anthropic() # wallet auto-loaded from ~/.blockrun/.session
r = claude.messages.create(
model="claude-sonnet-4.6",
max_tokens=2048,
thinking={"type": "enabled", "budget_tokens": 1024},
messages=[{"role": "user", "content": "What is 23*47?"}],
)
for block in r.content:
if block.type == "thinking":
print("signature:", block.signature) # real Anthropic signature
# GPT — exactly the official openai SDK API
gpt = OpenAI()
r = gpt.chat.completions.create(
model="gpt-4o",
messages=[{"role": "user", "content": "hi"}],
)
print(r.system_fingerprint, r.model) # genuine OpenAI direct
Async: from blockrun_llm_vip import AsyncAnthropic, AsyncOpenAI.
Wallet
The private key is used only for local EIP-712 signing and never leaves your machine.
Resolution: private_key= arg → BLOCKRUN_WALLET_KEY env → BASE_CHAIN_WALLET_KEY env →
~/.blockrun/.session.
Access
Give BlockRun your wallet address to enable VIP, then pay per call from that wallet.
Contact: vicky@blockrun.ai
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file blockrun_llm_vip-0.1.0.tar.gz.
File metadata
- Download URL: blockrun_llm_vip-0.1.0.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21f7a375f996353fc71cacce8298dce0f71c049e9aeb97b5ffed6db3c5991eec
|
|
| MD5 |
afcd7d02102e14185bde2228ff21153c
|
|
| BLAKE2b-256 |
939c07fa4bf49337ef451207546eb781b087e4845ace54d3fe83178596ad2193
|
File details
Details for the file blockrun_llm_vip-0.1.0-py3-none-any.whl.
File metadata
- Download URL: blockrun_llm_vip-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7338162851b72a9ca1f73222ae06605857dcc5c264aab1663524bde795c6a3ca
|
|
| MD5 |
72f5623dcd82a7f1d1300268ae866bc3
|
|
| BLAKE2b-256 |
3d569e251ca061a3abe6c1404d123f19e76b3825b5bd273e0a7b53fb5f5d47dd
|