Skip to main content

atbash-sdk

Python SDK for Atbash — the safety layer that evaluates AI agent actions against operator-defined policies before execution.

Installation

pip install atbash-sdk

Requires Python 3.9+. Server-side only — private keys are used for local signing and must never be embedded in clients you don't control.

The PyPI distribution name is atbash-sdk; the import package is atbash:

from atbash import Atbash, generate_keypair

Quickstart

import os
from atbash import Atbash

# 1. Construct an Atbash client with the private key you saved during
#    agent creation. The constructor validates the key and derives the
#    matching public key for you.
client = Atbash(os.environ["ATBASH_AGENT_KEY"])

# 2. Submit an action for judgment, before executing it.
#    The SDK signs the transaction locally and sends it to the judge API.
#    Private key stays on your machine — never sent over HTTP.
result = client.judge_action(
    "Transfer $50,000 to external wallet 0xabc",
    "Outbound AML check — new recipient, over threshold",
)

# 3. Act on the decision. `allow` is the gate; `verdict` says why.
if result.allow:
    # Proceed with the action
    ...
elif result.verdict == "HOLD":
    # Held — operator must approve in the dashboard
    print("Held for review:", result.tool_call_id)
else:
    # Refused — agent is jailed in Enforcement tier
    raise RuntimeError(f"Blocked: {result.reason}")

Before this works, the agent must be onboarded at atbash.ai — assigned to an org, with a policy pack attached, and the org tier set to Audit+ or Enforcement.

How it works

client.judge_action() performs a two-step flow:

  1. Sign locally — signs the transaction using the agent's private key. The key never leaves your machine.
  2. Request verdict — sends the signed transaction, tool_call_id, and agent_pubkey to the Atbash judge API. The server broadcasts it to the Chromia blockchain and returns a verdict.

Don't have an agent yet?

There are two ways to create an agent:

  1. Dashboard (recommended) — create an agent at atbash.ai/risk-engine/agents. The dashboard generates the keypair, assigns the agent to your org, and lets you attach a policy pack — all in one step.

  2. Programmatic — generate a new keypair locally or bring an existing secp256k1 private key from another platform, then onboard it via the dashboard:

from atbash import generate_keypair

kp = generate_keypair()
print("Save this private key somewhere safe:", kp.priv_key)
# `kp` is a frozen typed record. `repr(kp)` redacts the private key so a
# stray print() or exception traceback can't leak it.

Note: After generating a key programmatically, you must still onboard the agent at atbash.ai/risk-engine/agents — assign it to an org and attach a policy pack before judge_action will work.

Secret storage

  • Keep the private key in the key file (~/.config/atbash/guard-client-key, or a file named by key_path), in ATBASH_AGENT_KEY, or in a secret manager — never hardcode it. See Which key signs.
  • Never commit .env files containing the key.
  • If a key leaks, stop using it and create a new agent in the dashboard.

Typed records (no surprise private keys in logs)

All multi-field results — KeyPair, AgentAuth, RedactResult, MemoryDiffResult, etc. — are typed records with attribute access (kp.priv_key, not kp["priv_key"]). Secret-bearing records redact themselves in repr() so a stray print() or exception traceback never leaks the private key:

>>> from atbash import generate_keypair
>>> kp = generate_keypair()
>>> kp
KeyPair(priv_key='<redacted>', pub_key='02b421a3a9…')
>>> kp.priv_key  # explicit access still works
'a9e794180b9472de…'

Verdicts

Every judge_action call returns one of three verdicts:

Verdict Meaning What your code should do
ALLOW Action is within policy Proceed with execution
HOLD Requires operator review Pause — poll get_judgment_status until resolved
BLOCK Violates a red line Abort — agent is jailed in Enforcement tier

Gate on allow, not on verdict. allow is the canonical permission the SDK computes from every signal in the response; verdict is one of those signals, and reads as the reason. The two differ when an organisation does not enforce an agent's verdicts — Shadow Mode on an agent, or org-wide Monitor mode — where the action is judged and recorded on chain but deliberately not applied. Branching on verdict re-derives a denial the organisation chose not to make.

NB: If your org is on the Audit tier, the judge returns "No verdict" — actions are logged on-chain for the audit trail but not evaluated by an AI provider. Upgrade to Audit+ or Enforcement at atbash.ai/risk-engine/settings for active verdicts.

API

Judge

Atbash.judge_action(
    action: str,
    context: str = "",
    *,
    tool_name: str = "",
    tool_args_json: str = "",
) -> JudgeResult

Submit an action for judgment before execution. Signs the transaction locally and sends it to the judge API for a verdict.

class Atbash:
    def __init__(
        self,
        privkey: str,                       # 64-char hex secp256k1 private key (0x-prefix ok)
        *,
        endpoint: str = "https://atbash.ai",
        timeout: float = 120.0,
        chain: ChainConfig | None = None,          # Full chain override (BRID + nodeUrls)
        network: str | None = None,                # "private" preset selector; the public chain is retired
        node_urls: Sequence[str] | None = None,    # Paired with blockchain_rid
        blockchain_rid: str | None = None,         # Paired with node_urls
        org_name: str | None = None,               # Default org — routes calls to that org's chain
        org_encryption_pub_key: str | None = None, # Default org encryption key
        verify_pubkey: str | None = None,          # 66-hex judge response-sign pubkey
        authenticate: bool | None = None,          # Sign judge-API reads; None = on for Atbash hosts only
        fail_closed: bool = True,                  # audit_tool_call denies on error
        debug: bool = False,                       # Emit classifier probe logs
        logger: Any = None,                        # object with .info(...) / .warn(...)
    ) -> None: ...

@dataclass(frozen=True)
class JudgeResult:
    verdict: str         # "ALLOW", "HOLD", "BLOCK", or "No verdict"
    action_type: str     # "allow", "hold_for_user_confirm", or "block"
    reason: str          # Human-readable explanation
    confidence: float    # 0–1
    provider: str        # Which provider evaluated the action
    latency_ms: float    # Inference time
    tool_call_id: str    # Unique ID for this judgment
    on_chain: bool       # Whether the record was written on-chain
    status: str = ""     # "logged" on the AUDIT tier; empty otherwise
    enforced: bool = False        # Does this org act on a HOLD/BLOCK verdict?
    enforcement_mode: str = ""    # "off", "monitor", or "enforce"

One-call guard: audit_tool_call

Atbash.audit_tool_call(input: ToolCallInput) -> Decision

Redact secrets → sign → judge → allow/deny Decision, failing closed by default (any error denies unless fail_closed=False on the client). fail_closed=False only allows when Atbash could not be reached or could not answer (transport failure, timeout, 5xx, 408); Atbash's own refusals still deny: an unregistered agent, any other 4xx (no policy, billing suspended, quota exhausted or rate limited), and a 2xx reply that is not a JSON object (a readable object that neither grants nor refuses, such as {}, still follows fail_closed). Direct judge_action callers get JudgeRefusalError for an unregistered agent, an unreadable reply, or a secret in the action, context or tool arguments (refused before signing; in the tool arguments a generic_token or base64 shape, such as an npm integrity hash, an ETag or a 0x transaction hash, is judged, not refused). A direct log_tool_call returns success=False on a detected secret, where it used to write the record; audit_tool_call is the call that redacts:

from atbash import Atbash, ToolCallInput

client = Atbash.from_config()
decision = client.audit_tool_call(ToolCallInput(
    tool_name="shell.exec",
    args={"cmd": "rm -rf /tmp/cache"},
    context="cleaning build cache",
))
if not decision.allow:
    raise RuntimeError(f"{decision.verdict}: {decision.reason}")

Decision also reports whether the organisation acts on its verdicts:

decision.enforced          # False under Shadow Mode / Monitor mode; None if unknown
decision.enforcement_mode  # "off", "monitor", "enforce"; None if unknown

Under Shadow Mode (per agent) or Monitor mode (per org) the judge decides, records the real verdict on chain, and the SDK does not act on it: the decision arrives as allow=True. On a judge host whose replies are signature-checked, audit_tool_call asks for the true verdict and applies the signed mode itself, and decision.would_verdict ("BLOCK" or "HOLD") says what would have happened; it is also logged as a warning. A missing, unsigned or unknown mode enforces. Pass enforce_locally=True to enforce every verdict whatever the mode; the SDK then asks the judge to judge every call before answering, and refuses a reply that does not confirm it, so against a judge without client enforcement every call is refused. get_judgment_status applies the mode the same way, so a shadow call polled later reports its would_verdict while allow stays True. judge_action does not opt in and returns what the server sends. To poll a HOLD, call get_judgment_status(decision.judgment_id or decision.tool_call_id) (or the same fields of a judge_action result): on the on-chain judge path the verdict is recorded under its own id.

decision.record says what the judge stated about recording the verdict: on_chain, status (its on_chain_status, such as pending), bound_to_call (the reply names this call's ids), signature_checked (a judge key verified the reply) and judge_status (shadow_recorded for a shadow ack, which has no verdict yet). A host that must not run an unrecorded action gates on verdict_recorded: a signed reply about this call that states on_chain and carries a verdict, so a shadow ack or a logged-only answer is never one. None means unknown: treat it as not recorded. It is informational; allow remains the gate.

Test decision.enforced is False, never not decision.enforced: None means the server stated no mode — a transport error, or a judge that does not send the field — and treating that as "not enforcing" would count every outage as a would-block. They are informational; allow remains the gate.

After a block. An enforced BLOCK recorded on chain also jails the agent, but a call that passed the judge's jail check a moment earlier can still come back allow=True. So once the SDK sees such a block it refuses every further call from that agent locally, with the same jailed response the server gives, until a background check through the Dashboard confirms the jail on chain. Nothing is stored; the hold ends on confirmation, or after thirty seconds if the chain never shows it. Other agents in the process are unaffected. release_jail_holds() forgets every hold, for tests.

Secret-shaped values in args/context are redacted before signing, so they never reach the signed bytes, the request, the on-chain log, or the LLM prompt.

Log tool call (low-level)

Atbash.log_tool_call(
    action: str,
    context: str = "",
    *,
    tool_name: str = "",
    tool_args_json: str = "",
) -> LogToolCallResult

Sign the transaction locally. Returns LogToolCallResult(success, tool_call_id, signed_hex, error). Use this if you need to separate the signing step from the verdict request.

Poll judgment status

Atbash.get_judgment_status(
    judgment_id: str,
    agent_pubkey: str | None = None,
    chain: ChainConfig | None = None,   # Chain the judgment was signed against
) -> JudgmentStatus

Check whether a held action has been approved or rejected by an operator. Pass chain when polling a judgment signed on a chain other than the client's default — the server routes the query to that chain via the brid parameter.

@dataclass(frozen=True)
class JudgmentStatus:
    status: Literal["pending", "answered", "error"]
    verdict: str
    reason: str
    judgment_id: str
    on_chain: bool | None
    cached: bool | None
    response_time_ms: int | None

Agent identity

load_agent(privkey: str) -> AgentAuth
generate_keypair() -> KeyPair
derive_public_key(priv_key_hex: str) -> str
is_valid_private_key(hex: str) -> bool
load_agent_from_file(key_path: str | None = None) -> AgentAuth

load_agent(privkey) is the canonical loader — pass in the private key from the dashboard, get back AgentAuth(privkey, pubkey) ready for use. It accepts 0x-prefixed, padded, or mixed-case input and raises ValueError on malformed keys. Use generate_keypair() only for local development; for production, create agents in the dashboard so operators can attach policies.

load_agent_from_file(key_path) resolves the key from disk (defaults to ~/.config/atbash/guard-client-key), trimming whitespace and validating the format.

Operations

Methods that sign transactions and write to the Chromia blockchain.

Method Use case
client.judge_action(action, context, ...) Sign locally + request a verdict from the judge API
client.audit_tool_call(input) Redact secrets → sign → judge → fail-closed Decision
client.log_tool_call(action, context, ...) Sign the transaction locally without requesting a verdict

Queries

Method Use case
client.check_agent_exists(pubkey=None) Check if an agent is onboarded before signing
client.get_judgment_status(judgment_id) Poll whether a held action has been approved or rejected
client.get_tool_calls(max_count) List recent tool calls across all agents
client.get_org_tool_calls(org_name, max_count) List tool calls for a specific org
client.get_agent_tool_calls(pubkey, max_count) List tool calls for a specific agent
client.get_tool_call_count() Get total number of tool calls on-chain
client.get_tool_call_full(tool_call_id) Get full details of a single tool call (verdict, context, timing)
client.get_org_tier_info(org_name) Check an org's tier and whether verdicts are enabled
client.get_agent_detail(pubkey) Get agent metadata (org, status, creation date)
client.get_agent_policy(pubkey) Check the agent's jail status; the policy text is served to the org owner only
client.get_pending_held_actions(org_name, max_count) List actions waiting for operator approval
client.get_held_action_reviews(org_name, max_count) List completed operator reviews
client.get_safety_stats() Get chain-wide safety statistics (total judgments, verdicts, etc.)

Configuration resolution

Atbash(privkey, ...) takes everything explicitly. Atbash.from_config(...) fills in what you did not pass from the environment and then from ~/.config/atbash/config.json, and finds the signing key for you.

from atbash import Atbash

client = Atbash.from_config()   # key file + env + config.json

Inline

from atbash import Atbash

# A self-hosted judge is accepted only with its response-signing key.
client = Atbash(
    privkey,
    endpoint="https://your-instance.example.com",
    verify_pubkey="02…66 hex…",
    timeout=30.0,
)
result = client.judge_action("Transfer $500", "finance")

Settings: argument, then env, then config.json

Each setting is read from the first place that has it: the from_config argument, then the environment variable, then the key in config.json.

judge is taken whole. Pass it complete, or leave it out and use the environment or config.json: a judge with only "endpoint" ignores ATBASH_JUDGE_VERIFY_PUBKEY, so a self-hosted host then fails the allowlist.

from_config argument Env var config.json key Notes
org_name ATBASH_ORG_NAME orgName See What org_name does.
judge["endpoint"] ATBASH_ENDPOINT judgeEndpoint Must pass the endpoint rules below.
judge["verify_pubkey"] ATBASH_JUDGE_VERIFY_PUBKEY judgeVerifyPubKey 66-hex response-signing key of a self-hosted judge. Set through the environment or config.json without an endpoint, it raises ValueError; passed in judge without an endpoint, the default endpoint is used.
network ATBASH_DEFAULT_CHAIN_NETWORK defaultChainNetwork Only "private" is accepted; anything else raises. A client that names no chain is pinned to it, even for an org the dashboard places on another chain.
debug ATBASH_DEBUG debug 1, true or yes turns diagnostics on.

agentKey is not in this table on purpose: the signing key is never read from config.json (next section). Persisting settings:

from atbash import Atbash, save_user_config

save_user_config({"orgName": "my_org"})   # settings only, never the key
client = Atbash.from_config()              # signs with the key file
Function Purpose
save_user_config(config) Write config to disk
load_user_config() Read config from disk
resolve(key, flag_value=None) Resolve a value: flag > env > file > ""
get_config_path() Returns the config file path
validate_judge_endpoint(...) Validate against trusted allowlist or self-hosted policy
resolve_key_path(path=None) The key file from_config would use: the given path, or the first default name that exists

Which key signs

from_config picks the first of these that is set:

  1. agent_key argument (hex private key in code).
  2. key_path argument. A path that does not exist raises FileNotFoundError; the SDK never falls through to another key when you named one.
  3. ATBASH_AGENT_KEY environment variable.
  4. ~/.config/atbash/guard-client-key.
  5. ~/.config/atbash/atbash-client-key.

If none exists from_config raises FileNotFoundError: atbash key file not found. Looked for: <both default paths>. The bare constructor never reads a key file.

An agentKey inside config.json is ignored. A settings file is writable by anything on the machine and is shared by every Atbash integration, so it is not allowed to choose who you sign as. When you pass a logger, from_config warns:

[atbash] "agentKey" in config.json is ignored — settings do not choose the signing key. It holds <pubkey>; this client signs as the key file or ATBASH_AGENT_KEY instead. ...

and when no key file exists at all, the "not found" error names the pubkey stranded in config.json so you know where it went.

A key file is either key=value lines or JSON. Both fields must be present; the public key is re-derived from the private key, and a 0x prefix is accepted.

privkey=<64 hex>
pubkey=<66 hex>
{ "privKey": "<64 hex>", "pubKey": "<66 hex>" }

For adapters and CI, keep the key in a file and point at it with key_path (or let the default path be found). Passing the key on a command line puts it in shell history and process listings.

What org_name does

org_name tells the SDK which chain to sign the call for: the org's network is looked up once through the dashboard, cached per client, and every judge and log call is signed for that chain. The SDK does not check that the name matches the org the agent was registered under; which org's policy judges the action is decided by the agent's registration, not by this string. On a deployment with a single chain a missing or different org_name therefore does not change the verdict. Org-scoped reads such as get_org_tier_info(org_name) send the name as given; the dashboard answers an agent-authenticated call for the agent's own org, whatever name was passed.

Unlike the Node SDK, from_config here also reads ATBASH_ORG_NAME and orgName from config.json when the argument is not passed.

Judge endpoint rules

Both from_config and the constructor validate the endpoint before any request, and raise ValueError when it fails. validate_judge_endpoint(...) exposes the same check.

  • With no endpoint configured the SDK talks to the endpoint compiled into the build (https://atbash.ai for a release build).
  • An https:// endpoint is accepted without further setup only on the trusted hosts: atbash.ai, www.atbash.ai and the build's own default host.
  • On the trusted hosts, every judge response and status poll must carry a valid signature from one of the response-signing keys built into the SDK; an unsigned or forged reply is denied, whatever fail_closed says. No setup is needed. A verify_pubkey set for such a host must be one of those keys, or the constructor raises not the response-signing key pinned for <host>. A build with no keys for its host leaves replies unchecked, as before.
  • Any other https:// endpoint is a self-hosted judge. It needs policy="self-hosted" plus verify_pubkey (the judge's 66-hex compressed response-signing key), or ATBASH_ENDPOINT plus ATBASH_JUDGE_VERIFY_PUBKEY. Every judge response is then signature-checked against that key. Without the key the constructor raises judge endpoint hostname "<host>" is not in the trusted allowlist.
  • Plain http:// is accepted only for loopback (localhost, 127.0.0.1, ::1), for a dashboard running on the same machine. Any other http:// endpoint raises.
  • A URL with embedded credentials (user:pass@host) raises.
client = Atbash.from_config(
    judge={
        "policy": "self-hosted",
        "endpoint": "https://judge.example.com",
        "verify_pubkey": "02…66 hex…",
    },
)

From a key file to a first ALLOW

  1. Download the key file the onboarding wizard offers at its Deploy step (it is in the key=value form above) and save it, for example as ./agent.key.
  2. Build the client from that file and judge an action:
from atbash import Atbash

client = Atbash.from_config(key_path="./agent.key")
result = client.judge_action("read file", "list the files in ./src")
print(result.allow, result.enforced, result.reason)

Dropping the same file at ~/.config/atbash/guard-client-key lets Atbash.from_config() find it with no arguments at all.

Advanced: The SDK connects to the default Atbash Chromia chain. To use a different chain, pass node_urls= and blockchain_rid= to the Atbash(...) constructor.

Secret redaction

Before each audit_tool_call signs anything, the SDK scans args and context for secret-shaped values (API keys, tokens, JWTs, PEM blocks, etc.) and replaces matches with [REDACTED:<kind>]. Redaction happens before signing, so secrets never reach the signed bytes, the request body, the on-chain log, or the prompt sent to the AI provider.

When the redactor fires, you'll see a warning via the configured logger:

[atbash] redacted secrets before judge call { tool: "exec", count: 2, kinds: ["anthropic", "generic_token"] }

Common kinds:

  • anthropic, openai, github, google, aws_access_key, stripe, slack, jwt, private_key_pem — high-confidence vendor patterns; if you see these, a real secret was almost certainly in your input
  • context_secret — a value next to a label like api_key=, token:, password=, etc.
  • generic_token — long random-looking strings (32+ alphanumeric chars). Catches unknown-vendor secrets, but can also match UUIDs, content hashes, and other opaque identifiers. The judge sees [REDACTED:generic_token] instead of the original; for verdict purposes the shape of the action matters more than the exact ID, so this is generally safe — but worth knowing if you see it unexpectedly.
  • base64 — long base64-encoded values; can match legitimate image/file data

Redaction is silent at the consumer level — the SDK's caller still has the original arguments. Only what's sent to the judge (and persisted on chain via the verdict log) is scrubbed.

You can also call the redactor directly:

from atbash import redact_secrets, contains_secret

result = redact_secrets('curl -H "Authorization: Bearer sk-…" https://api.example.com')
result.redacted   # 'curl -H "Authorization: Bearer [REDACTED:openai]" https://api.example.com'
[(m.kind, m.length) for m in result.found]   # [('openai', 51)]

contains_secret("plain string")               # False

Telemetry

The SDK reports anonymous usage metrics — how often each SDK call is made, how long it takes, whether it succeeded, and a source label such as sdk, cli or plugin:langchain. They are sent over an authenticated connection to your Atbash endpoint and are used to find which integrations need attention.

Opt out:

  • Environment (recommended for air-gapped deployments): ATBASH_TELEMETRY_DISABLED=1
  • File: create ~/.config/atbash/telemetry.json with {"enabled": false}

When telemetry is on. Creating an Atbash(...) client enables it only for an endpoint that already receives the agent's credentials: Atbash's own service, or any endpoint you connect to with authenticate=True. On Atbash's own service, authenticate=False turns off the signed judge-API reads but not telemetry; set ATBASH_TELEMETRY_DISABLED=1 for that.

A self-hosted judge on the default authenticate=False sends no telemetry. That judge is trusted to return verdicts, and nothing more — telemetry would be the only thing handing it your agent's credentials.

Telemetry also needs an https:// endpoint, and is skipped for local addresses (localhost, 127.0.0.1, 0.0.0.0) so development servers never receive it.

Building an integration? If you call setup_telemetry(endpoint=..., get_auth_headers=...) directly — from a plugin or CLI that starts before an Atbash client exists — the endpoint rules above do not apply, because they live in the client. Pass get_auth_headers only for an endpoint you intend to authenticate to.

Integration patterns

Pre-execution gate

def safe_execute(client, action, context, execute):
    result = client.judge_action(action, context)
    if not result.allow:
        if result.verdict == "HOLD":
            raise RuntimeError(f"Held for review: {result.tool_call_id}")
        raise RuntimeError(f"Blocked: {result.reason}")
    return execute()

Polling a held action

import time

def wait_for_approval(client, tool_call_id, poll_interval=5.0):
    while True:
        status = client.get_judgment_status(tool_call_id)
        if status.status == "answered":
            return status.verdict
        if status.status == "error":
            raise RuntimeError(status.reason)
        time.sleep(poll_interval)

Checking agent jail status

policy = client.get_agent_policy(client.pubkey)
if policy.is_jailed:
    raise SystemExit("Agent is jailed — unjail via dashboard before retrying.")

Error handling

The SDK raises standard Exception subclasses. Known failure modes are enriched with a pointer to the relevant dashboard page, so the error message tells you where to fix the problem:

API error 404: {"error":"Agent not registered..."}
  → Onboard the agent at https://atbash.ai/risk-engine/agents
Error Cause Where to fix
API error 404: Agent not registered Agent not onboarded atbash.ai/risk-engine/agents
API error 400: Agent has no policy No policy attached to agent atbash.ai/risk-engine/agents
Agent is jailed BLOCK verdict triggered auto-jail (Enforcement tier) atbash.ai/risk-engine/agents
Org tier does not support verdicts Org is on Audit tier atbash.ai/risk-engine/settings
API error 400: action is required Empty action string Fix caller
Refused before signing: … contain a secret A private key or token in the action, context or tool arguments. judge_action raises JudgeRefusalError and log_tool_call returns success=False, before anything is signed or sent Remove it, or call audit_tool_call, which redacts it
API error 502: Incorrect API key Invalid provider API key Check saved key at atbash.ai/risk-engine/settings
from atbash import AtbashAPIError

try:
    result = client.judge_action(action, context)
except AtbashAPIError as err:
    if "Agent not registered" in str(err):
        # Point the user at https://atbash.ai/risk-engine/agents to onboard.
        ...

Dashboard

Policy authoring, operator reviews, and agent management happen at atbash.ai. The SDK is the programmatic interface; the dashboard is the operator interface.

License

Licensed under the Apache License, Version 2.0. See NOTICE for attribution. Versions published before this change remain available under the license they shipped with.

Telemetry — what the SDK sends

The SDK reports how its own functions perform. It runs inside your agents and the data leaves your network, so the payload is metadata only and the list below is the whole of it.

Sent

Field Example
function.name judgeAction, memory.memory-add
status / outcome success, error
duration_ms 142
error.class AtbashAPIError
error.status / error.path 404, /api/v1/judge — the route, never its query string
sdk.version 0.18.0
sdk.language node, python — which binding sent it
chain the blockchain RID — public infrastructure, and it names no customer
agent.hash SHA-256 of the agent's public key, never the key itself
source sdk, cli, plugin:openclaw

Never sent. Action text, tool arguments, policy text, organisation names, memory file paths, memory contents, response bodies, and keys of any kind. error.path is the route alone — the query string is stripped where the error is built, because it carries org names, tool call ids and the agent pubkey. These are not fields that get emptied before sending — there is no field for them to go in.

agent.hash is de-identification, not anonymisation: agent public keys are readable from the chain, so anyone holding that list can match a hash back to an agent. Supply your own salted hasher to setup_telemetry(hash_agent_key=...) if you need it to be uncorrelatable.

Turning it off

export ATBASH_TELEMETRY_DISABLED=1

or create ~/.config/atbash/telemetry.json containing { "enabled": false }.

On a Private deployment, telemetry may already be off for everyone. The operator disables collection by leaving HONEYCOMB_API_KEY unset on their Atbash service; the telemetry route then accepts the request and discards the payload, so nothing is forwarded and agents never see an error or retry. That is an operator setting on the deployment, not one you control from the agent — the switches above are yours.

To keep the operational counters but drop the richer per-operation events:

export ATBASH_TELEMETRY_EVENTS_DISABLED=1

Sending it to your own collector

Point the SDK at any OTLP endpoint you control. Atbash is then bypassed entirely and no Atbash credential is created or transmitted — your headers are the only ones sent.

export ATBASH_TELEMETRY_COLLECTOR_URL=https://otel.yourcompany.example
export ATBASH_TELEMETRY_COLLECTOR_HEADERS='{"x-api-key":"your-key"}'

Metrics go to /v1/metrics and events to /v1/logs beneath that URL. https is required; a collector on localhost additionally needs ATBASH_TELEMETRY_ALLOW_LOOPBACK=1, so a mistyped URL cannot silently turn exporting off. A URL that is refused raises at setup rather than quietly falling back to Atbash.

Metadata

Release files for atbash-sdk 0.16.0

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

Built distributions (wheels)

Table of built distributions (wheels) for atbash-sdk 0.16.0
File Actions
atbash_sdk-0.16.0-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details for atbash_sdk-0.16.0-cp39-abi3-win_amd64.whl
atbash_sdk-0.16.0-cp39-abi3-musllinux_1_2_x86_64.whl CPython 3.9 abi3 Linux musl 1.2+ x86-64 Details for atbash_sdk-0.16.0-cp39-abi3-musllinux_1_2_x86_64.whl
atbash_sdk-0.16.0-cp39-abi3-manylinux_2_28_x86_64.whl CPython 3.9 abi3 Linux glibc 2.28+ x86-64 Details for atbash_sdk-0.16.0-cp39-abi3-manylinux_2_28_x86_64.whl
atbash_sdk-0.16.0-cp39-abi3-manylinux_2_28_aarch64.whl CPython 3.9 abi3 Linux glibc 2.28+ ARM64 Details for atbash_sdk-0.16.0-cp39-abi3-manylinux_2_28_aarch64.whl
atbash_sdk-0.16.0-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details for atbash_sdk-0.16.0-cp39-abi3-macosx_11_0_arm64.whl

Total release size: 14.2 MB

Release files / atbash_sdk-0.16.0-cp39-abi3-win_amd64.whl

Download URL atbash_sdk-0.16.0-cp39-abi3-win_amd64.whl
Size 2.7 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
594e1e47e5bd333a086bc2b5464d0500077d0847626f983148f55b5d8852dea5
BLAKE2b-256 checksum
How to use checksums
7ae6afbe732d7ee2850859e3ad461f53769a6eb139a1758d3559280038559c64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / atbash_sdk-0.16.0-cp39-abi3-musllinux_1_2_x86_64.whl

Download URL atbash_sdk-0.16.0-cp39-abi3-musllinux_1_2_x86_64.whl
Size 3.1 MB
Tags CPython 3.9 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
ee9d772ca3ab36bafacba433afe3f67071e3654e9cc45c5b44497ee7d300c6c7
BLAKE2b-256 checksum
How to use checksums
35616707c7a868d84806ea4520d7498139e36f6e82fc7b59d88b0d18cc0abe46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / atbash_sdk-0.16.0-cp39-abi3-manylinux_2_28_x86_64.whl

Download URL atbash_sdk-0.16.0-cp39-abi3-manylinux_2_28_x86_64.whl
Size 2.9 MB
Tags CPython 3.9 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
945687624f98522a1b32475a235716a74b833de67ea0ccc8fc48b3ef7614ca0f
BLAKE2b-256 checksum
How to use checksums
37ffe04b64bcce6fae3f77e3b4bc1936cb0853a7a535a38de2f15ee4500cd204
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / atbash_sdk-0.16.0-cp39-abi3-manylinux_2_28_aarch64.whl

Download URL atbash_sdk-0.16.0-cp39-abi3-manylinux_2_28_aarch64.whl
Size 2.8 MB
Tags CPython 3.9 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
881db2b8b2a09d520b03a1cf4082b22b7b05510abee7a12dfd97a5aa2b264f93
BLAKE2b-256 checksum
How to use checksums
1eb7a74bbb52b688a909260327109b959fe44e0eff77741c705129ba5c3bfbe3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / atbash_sdk-0.16.0-cp39-abi3-macosx_11_0_arm64.whl

Download URL atbash_sdk-0.16.0-cp39-abi3-macosx_11_0_arm64.whl
Size 2.8 MB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
de61b646507cb8fc323a814a44bc4a4c744915f67fbf680f594039fad5e2198e
BLAKE2b-256 checksum
How to use checksums
c9efeb758c1402da0f7cc8ab3424884432d75d3cdeaabf5ecdfe5c99bc4f785f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Security for atbash-sdk 0.16.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.16.0 This release

5 release files No provenance

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