llama-stack-botsrated
One-click attach
Free. No key for local attach. Pairs with the host runtime. Not a second runtime. Paid checks are not required to attach.
pip install "botsrated[x402]"
from botsrated import PaymentGuard
guard = PaymentGuard(preset="carefulBuyer") # omit preset = warn only, never stops a payment
guard.install(x402_client) # the x402 client your agent already pays with
The pair-with package is not on PyPI yet: pip install -e integrations/llama-stack, then attach_payment_guard from llama_stack_botsrated.
Preflight and the guard surface signed receipt links (receipt_url). When org ledger is enabled, paid checks write there by default. No custody. Facts, not grades.
Live docs: botsrated.com/docs/guard#llama-stack.
Default install
Pairs with Llama Stack. Payment-client wrap only. Llama Stack stays the runtime, the distribution, and the inference server. A secondary before-tool hook is deferred. Free. No key for local attach. Today: pip install "botsrated[x402]" and PaymentGuard. The pair-with package is not on PyPI yet: pip install -e integrations/llama-stack (botsrated>=0.3.1,<0.4).
Pair-with package (not on PyPI yet):
# Free. No key for local attach. Not a runtime.
# Optional BOTSRATED_TOKEN for Desk remote policy.
from llama_stack_botsrated import attach_payment_guard
# Omit preset = advice. Omit fail_mode = open.
guard = attach_payment_guard(x402_client)
It does not sign a payment and does not hold funds.
Install in 3 steps
- Free. No key for local attach. Install the guard that works today:
pip install "botsrated[x402]", thenPaymentGuardon the x402 client your agent already pays with (one-click above). The pair-with package is not on PyPI yet. From a checkout, in a clean virtualenv:pip install -e integrations/llama-stack(pullsbotsrated>=0.3.1,<0.4). - On the pair-with package, attach to your x402 client. Installing does not attach a guard:
from llama_stack_botsrated import attach_payment_guard
guard = attach_payment_guard(x402_client)
- Omit
presetfor advice only (carefulBuyer/strictstop an unobserved payTo when you pass them). Omitfail_modeto stay open."closed"stops the payment when BotsRated or your policy cannot answer. A missing decision is never a pass. A remote pass never clears a local block.
BOTSRATED_TOKEN is optional. Omit token and the guard reads BOTSRATED_TOKEN. On botsrated 0.3.0 and later it is sent only as remote_policy={"token", "fail_mode"}, never as a bare string. A configured token on a core without parse_remote_policy raises and is not dropped. The policy decision is not signed. Get a token in Desk.
Omit fail_mode and the guard stays open. "closed" stops the payment when BotsRated or your policy cannot answer. A missing decision is never a pass. A remote pass never clears a local block. Nothing defaults you to closed.
Token and preflight
botsrated_preflight(url) is the free preflight and does not attach a guard.
BOTSRATED_TOKEN is optional. Omit token and the guard reads BOTSRATED_TOKEN. On botsrated 0.3.0 and later it is sent only as remote_policy={"token", "fail_mode"}, never as a bare string. A configured token on a core without parse_remote_policy raises and is not dropped. The policy decision is not signed. Get a token in Desk.
Tests: pytest -m "not live" in this directory. They do not import a Llama Stack server.
Metadata
Release files for llama-stack-botsrated 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| llama_stack_botsrated-0.1.0.tar.gz | 10.7 kB | With provenance | Details for llama_stack_botsrated-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llama_stack_botsrated-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for llama_stack_botsrated-0.1.0-py3-none-any.whl |
Total release size: 17.1 kB
Release files / llama_stack_botsrated-0.1.0.tar.gz
| Download URL | llama_stack_botsrated-0.1.0.tar.gz |
|---|---|
| Size | 10.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
63ce970e24076dc888ee86d68d91489dbf3c93a23a958230ff122bad01186d5f
|
|
BLAKE2b-256 checksum How to use checksums |
427da993bd580170b67743e3213573004eb0728cfb16c412c238dcca21bb6f7d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 30, 2026.
Transparency logRelease files / llama_stack_botsrated-0.1.0-py3-none-any.whl
| Download URL | llama_stack_botsrated-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8a3d8eeb82777053ffe99f3867e8b0bf2ba600f1522ccbdb65a5f9e13482dc92
|
|
BLAKE2b-256 checksum How to use checksums |
4a0b3bc70081a91b192b61e06ebd6ba10f7a64ebf40b68ab40eca6390fe38056
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 30, 2026.
Transparency logSecurity for llama-stack-botsrated 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.
Attestation for llama_stack_botsrated-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 30, 2026.
Transparency logA 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.