Menu
Python
Protect Python agents with the published Nodra SDK and the same signed authorization gateway used by JavaScript.
Implementation checklist
Complete these steps in the customer-owned server or agent runtime.
- Install the public nodra-agent-sdk package from PyPI.
- Store NODRA_BASE_URL and NODRA_CREDENTIAL server-side.
- Create the protected agent identity with nodra.protect().
- Authorize consequential actions before external execution.
- 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.
passReady 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.