Signal feed client for model selection.
Project description
wzrd-client
Tiny Python client for WZRD model selection priors.
The goal is deliberately small:
- call
wzrd.pick()before an LLM request - optionally pass candidate model names from your framework or router
- use the result as the next execution choice
This is an attention prior, not a full router.
If you pass candidate model names, pick() scores them against the live feed.
If you do not, it returns the strongest live signal it can find for the task hint.
Install with pip install wzrd-client, then import wzrd and call wzrd.pick() before each inference choice.
Earn CCM While Routing
The full self-serve loop is:
import wzrd
choice = wzrd.pick_details("code")
agent = wzrd.WZRDAgent.from_env()
agent.authenticate()
agent.report_pick(choice, quality_score=0.9)
print(agent.earned()["signup_bonus_ccm"])
No manual onboarding. No founder approval. An agent can discover the package, authenticate with its own Solana keypair, report real routing decisions, and enter the CCM reward loop on its own.
Router wrapper
If you want a thin client wrapper, use WZRDRouter from wzrd.router.
It only wraps clients that expose client.chat.completions.create(...).
Explicit model names pass through unchanged. To trigger WZRD routing, pass
model=None or a task sentinel like model="code" or model="chat".
Install
pip install wzrd-client
Quick start
import wzrd
model = wzrd.pick("code")
print(model)
Agent auth and CCM loop
If you want an agent to authenticate, report routing decisions, and enter the CCM reward loop:
import wzrd
choice = wzrd.pick_details("code")
agent = wzrd.WZRDAgent.from_env()
session = agent.authenticate() # uses ~/.config/solana/id.json by default
status = agent.status()
receipt = agent.report_pick(choice, quality_score=0.9, latency_ms=1200)
print(session.pubkey)
print(status["next_step"])
print(receipt["contribution_id"])
WZRDAgent.authenticate() signs the exact server challenge message and sends the signature in the Solana base58 format the API expects. Keypair loading supports:
~/.config/solana/id.jsonWZRD_AGENT_KEYPAIR_PATHorSOLANA_KEYPAIR_PATHWZRD_AGENT_KEYPAIRorSOLANA_KEYPAIRas a base58 secret or JSON byte array
Authenticated helpers:
agent.challenge()returns the nonce + message formatagent.authenticate()stores the Bearer token on the clientagent.status()reads/v1/agent/statusagent.earned()reads/v1/agent/earnedand surfaces both signup bonus + signal rewardsagent.report(...)posts a manual contributionagent.report_pick(choice, ...)reports apick_details()result with WZRD metadata attached
The signup bonus is recorded on first auth, then becomes claimable after the next merkle publication cycle.
Candidate-aware routing:
import wzrd
model = wzrd.pick(
"code",
candidates=[
"openrouter/qwen/qwen3.5-9b",
"openrouter/qwen/qwen3.5-35b-a3b",
"anthropic/claude-sonnet-4.6",
],
)
If you want the metadata for logging or telemetry, use:
choice = wzrd.pick_details("code")
print(choice.model, choice.score, choice.trend, choice.confidence)
Environment variables
WZRD_API_URL: signal endpoint overrideWZRD_API_BASE_URL: API root for agent auth/report callsWZRD_AGENT_TOKEN: existing Bearer token forWZRDAgentWZRD_AGENT_KEYPAIR_PATH: path to Solana JSON keypairWZRD_AGENT_KEYPAIR: Solana base58 secret or JSON byte arrayWZRD_TIMEOUT_SECONDS: request timeoutWZRD_CACHE_TTL_SECONDS: cache TTL for fetched signalsWZRD_FEED_LIMIT: number of feed rows to request
What it returns
pick()returns a model name stringpick_details()returns a structured recordshortlist()returns ranked recordscompare()explains the relative signal strength between two modelsWZRDAgentauthenticates an agent wallet and reports contributions into the CCM loop
Project details
Release history Release notifications | RSS feed
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 wzrd_client-0.4.0.tar.gz.
File metadata
- Download URL: wzrd_client-0.4.0.tar.gz
- Upload date:
- Size: 18.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6516e2f742642700de096b161f52b5f08e20410889149a1bb76f609fa94db2bd
|
|
| MD5 |
b02a1bb2ae010317acd2e8152cb5f0c1
|
|
| BLAKE2b-256 |
108aaaf30c2f679f3ead14254ffacd5199b060e7c070de7cdb0a651799fa0dc2
|
File details
Details for the file wzrd_client-0.4.0-py3-none-any.whl.
File metadata
- Download URL: wzrd_client-0.4.0-py3-none-any.whl
- Upload date:
- Size: 15.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec9e7df944e4029a07d1647fad0b1aaa380d7069d52351bc468bc819a454f1fd
|
|
| MD5 |
59eeffdefb17748413579fd8d8fa5fe1
|
|
| BLAKE2b-256 |
7e3400783b54d9854945086b80b01f34a54c7a90ad3a7dc13f0e1b5591089a1f
|