Nodra
Menu
PYTHON SDK

Python

Protect Python agents with the published Nodra SDK and the same signed authorization gateway used by JavaScript.

Documentation Security model

Implementation checklist

Complete these steps in the customer-owned server or agent runtime.

  1. Install the public nodra-agent-sdk package from PyPI.
  2. Store NODRA_BASE_URL and NODRA_CREDENTIAL server-side.
  3. Create the protected agent identity with nodra.protect().
  4. Authorize consequential actions before external execution.
  5. Use authorize_and_wait() when a human approval may be required.

Security boundary

The public Python distribution is nodra-agent-sdk and the import is nodra. Keep credentials in the server/runtime environment.

The public guide explains the integration contract without exposing Nodra's private control-plane implementation.

Reference implementation

Use this as the server-side starting point.

pip install nodra-agent-sdk

import os
from nodra import Nodra

nodra = Nodra(
    base_url="https://www.nodrasecurity.com",
    credential=os.environ["NODRA_CREDENTIAL"],
)

agent = nodra.protect("finance-agent")

decision = agent.authorize(
    resource_id="stripe",
    action="payments.submit",
    context={"environment": "production"},
)

if decision["decision"] == "allow":
    # Execute the protected action.
    pass

Ready to validate a real workflow?

Use the Demo Lab for a self-guided sandbox, or review the 7-day technical validation for a real design-partner workflow.

Explore safe Demo Lab7-day validation