gavrun
Python SDK for Gavrun — govern AI agents before risky actions execute.
Gavrun intercepts agent tool calls, evaluates them against your policies, and requires human approval for high-risk actions before they run.
Install
pip install gavrun
Quick start
import gavrun
gavrun.configure(
api_key="your-sdk-key", # from agentmanager.gavrun.ai/api-keys
agent_name="my-agent",
agent_manager_url="https://api.gavrun.ai",
)
Tool calls are governed automatically for LangChain, LangGraph, CrewAI, and OpenAI Agents SDK via auto-patch. For manual guarding:
client = gavrun.get_client()
result = client.guard(
action="delete_user",
execute=lambda: delete_user(user_id),
tools=["delete_user"],
prompt=f"Delete user {user_id}",
)
if result.denied:
raise PermissionError("Blocked by policy")
if result.requires_human_review:
# poll for approval
...
Frameworks
Auto-patch wires governance into every tool call:
import gavrun
gavrun.configure(api_key="...", agent_manager_url="https://api.gavrun.ai")
# LangChain, LangGraph, CrewAI, OpenAI Agents SDK tools are now governed
Links
Metadata
Release files for gavrun 0.2.7
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 |
|---|---|---|---|---|
| gavrun-0.2.7.tar.gz | 17.3 kB | With provenance | Details for gavrun-0.2.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gavrun-0.2.7-py3-none-any.whl | Python 3 | none | any | Details for gavrun-0.2.7-py3-none-any.whl |
Total release size: 31.5 kB
Release files / gavrun-0.2.7.tar.gz
| Download URL | gavrun-0.2.7.tar.gz |
|---|---|
| Size | 17.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fd61b13fc989f3a31d97543a926081f35116f03d41836778fb5a0641560dfcc3
|
|
BLAKE2b-256 checksum How to use checksums |
60da90db1f784d24a4da3723409b7ce9f81d8ccc988f2728611f798c4681a04b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 8, 2026.
Transparency logRelease files / gavrun-0.2.7-py3-none-any.whl
| Download URL | gavrun-0.2.7-py3-none-any.whl |
|---|---|
| Size | 14.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b2e30d39af24743ac9b6c66f4c31e96a2208a3367ba3aafe092a9432cf2ecfc3
|
|
BLAKE2b-256 checksum How to use checksums |
3860d92865b8f6e512f526e3c18583f609f901a72f88f6f91c23db7ed2c92334
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 8, 2026.
Transparency logSecurity for gavrun 0.2.7
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 gavrun-0.2.7.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 Aug 8, 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.