Skip to main content

valyzen

Python client and CLI for the Valyzen Negotiation Gateway: negotiate under a neutral arbiter, then verify the signed receipt offline.

pip install valyzen
export VALYZEN_API_KEY=vz_pk_test_…    # free test key: https://www.valyzen.ai/keys
valyzen try                            # a sample buyer negotiates the Demo Monitor
valyzen verify receipt.json            # verify any receipt offline
from valyzen import GatewayClient, verify_receipt

client = GatewayClient()                      # VALYZEN_API_KEY, VALYZEN_BASE_URL
session = client.open_session("DEMO-MONITOR-27", agent_id="my-buyer",
                              inclusions=["warranty", "cable"])
while not session.finished:
    edge = session.fair_edge_minor            # cheapest price the arbiter scores fair
    standing = session.merchant_offer_minor
    if standing is not None and standing <= edge:
        session.accept()
    else:
        session.offer(edge, inclusions=session.table_inclusions)

result = verify_receipt(session.receipt(),   # offline, pinned Valyzen keys
                        allow_test=True)      # sandbox receipts are test mode
if result.ok:
    print(result.signed_terms)                # act on the signed terms only

valyzen.buyer adds a guard that keeps a private ceiling in your process (Ceiling) and an LLM buyer over any OpenAI-compatible chat API (run_buyer, OpenAICompatibleModel); FairEdgeModel is the same buyer without a model. examples/grok_buyer.py runs the LLM buyer on xAI Grok (or any OpenAI-compatible API).

Source, docs and the TypeScript SDK: https://github.com/valyzen/valyzen-sdk · Apache-2.0

Metadata

Release files for valyzen 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for valyzen 0.1.0
File Size Uploaded Provenance Actions
valyzen-0.1.0.tar.gz 58.2 kB With provenance Details for valyzen-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for valyzen 0.1.0
File Interpreter ABI Platform Actions
valyzen-0.1.0-py3-none-any.whl Python 3 none any Details for valyzen-0.1.0-py3-none-any.whl

Total release size: 86.0 kB

Release files / valyzen-0.1.0.tar.gz

Download URL valyzen-0.1.0.tar.gz
Size 58.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d94f7ed73f1494e40a487ece4cdfd03393030675b8bfa07ac522245b7e5da5f9
BLAKE2b-256 checksum
How to use checksums
f60034b0777ec8835fffaff62888a2bf4c94637b6280f95959950aaf9ae4502c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.

Transparency log

Release files / valyzen-0.1.0-py3-none-any.whl

Download URL valyzen-0.1.0-py3-none-any.whl
Size 27.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b96ae0b2341ba2eb00e0bc45bdb0430e33fea082506b9ae289a3100df3922f3a
BLAKE2b-256 checksum
How to use checksums
20fde5e64510e6beb3d56b302b8a3426f6fe9e250f8cfa5111d7ca22e0f6d42b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.

Transparency log

Security for valyzen 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for valyzen-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page