pryxor
The Python SDK for Pryxor — runtime security for AI agents. One package, three ways to protect an agent:
- client — call Pryxor from your agent (only depends on
requests); - adapters — protect LangChain, CrewAI, and OpenAI Agents tools;
- mcp — an MCP proxy and a standalone MCP server.
Install
pip install pryxor # just the client
pip install "pryxor[langchain]" # + LangChain adapter
pip install "pryxor[crewai]" # + CrewAI adapter
pip install "pryxor[openai-agents]" # + OpenAI Agents adapter
pip install "pryxor[all]" # everything
Client
from pryxor import Pryxor, PryxorHoldPendingError, PryxorBlockedError
pryxor = Pryxor() # reads PRYXOR_AGENT_KEY and PRYXOR_URL from the environment
try:
result = pryxor.execute(
"send_payment",
{"amount": 100.0, "recipient": "Fournisseur_A"},
)
print("Executed:", result)
except PryxorHoldPendingError as e:
print("Waiting for human approval:", e.action_id)
except PryxorBlockedError as e:
print("Blocked by policy:", e.reason)
Framework adapters
Swap the tool class; nothing else changes. The adapter forwards the intent to Pryxor, which decides and executes — the original function is never called.
from pryxor.adapters.langchain import PryxorTool # LangChain
from pryxor.adapters.crewai import PryxorTool # CrewAI
from pryxor.adapters.openai_agents import PryxorTool # OpenAI Agents SDK
MCP
Two entry points are installed with the package:
pryxor-mcp # stdio proxy in front of an upstream MCP server
pryxor-mcp-server # standalone MCP server exposing your Pryxor tools
{
"mcpServers": {
"pryxor": {
"command": "pryxor-mcp-server",
"args": ["--agent-key", "pryxor_agent_my_agent_xxxxx", "--policy", "configs"]
}
}
}
License
Apache 2.0.
Metadata
Release files for pryxor 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 |
|---|---|---|---|---|
| pryxor-0.1.0.tar.gz | 22.2 kB | Without provenance | Details for pryxor-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pryxor-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pryxor-0.1.0-py3-none-any.whl |
Total release size: 49.3 kB
Release files / pryxor-0.1.0.tar.gz
| Download URL | pryxor-0.1.0.tar.gz |
|---|---|
| Size | 22.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7c473caab7de5a236b42c62a5e4f19c9803167009bf6b360063db0eef0f360f5
|
|
BLAKE2b-256 checksum How to use checksums |
2c0f547e2a07334bdeefffe7a9c779814d8023156417b0454052dd2ff75610ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.0
|
Release files / pryxor-0.1.0-py3-none-any.whl
| Download URL | pryxor-0.1.0-py3-none-any.whl |
|---|---|
| Size | 27.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
63a3202a84198a913a4339a2fe0679b679c17b0865e2467e9d1541c3c04f4c84
|
|
BLAKE2b-256 checksum How to use checksums |
47c5121149f9acc31c22e84750b33a351093584daad75206b34f20182f97a24d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.0
|
Security for pryxor 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.
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.