Skip to main content

crewai-agentic-iam

Route your CrewAI agents' HTTP calls through Agentic IAM Proxy. Your agents never hold a real API key, and risky calls wait for a human to approve them in Slack.

pip install crewai-agentic-iam
from crewai_agentic_iam import SecureAPIWrapper, SecureCrewAITool

proxy = SecureAPIWrapper(agent_token="...")  # proxy_base_url defaults to http://localhost:8000/api/v1/proxy

refund_charge = SecureCrewAITool(
    name="Refund a Stripe charge",
    description="Refunds a charge. params: charge (required), amount in cents (optional).",
    wrapper=proxy,
    endpoint="https://api.stripe.com/v1/refunds",
    method="POST",
)

get_customer = SecureCrewAITool(
    name="Get a Stripe customer",
    description="Fetches one customer. path_params: customer_id.",
    wrapper=proxy,
    endpoint="https://api.stripe.com/v1/customers/{customer_id}",
)

Give the tools to a CrewAI Agent as usual. Each tool is pinned to one method and endpoint. The agent only fills in path_params (the {placeholders}, URL-escaped so they can't change the path or host) and params (query string for GET/DELETE, a form body for POST/PUT/PATCH, or JSON with body_format="json").

SecureAPIWrapper can also be used directly: get, post, put, patch and delete take the usual requests arguments and return the response text, including denials such as "Action denied by human overseer".

See examples/crewai_stripe.py for a complete crew.

Licensed under Apache-2.0.

Metadata

Release files for crewai-agentic-iam 0.1.0

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

Source distribution (sdist)

Source distribution for crewai-agentic-iam 0.1.0
File Size Uploaded Provenance Actions
crewai_agentic_iam-0.1.0.tar.gz 11.0 kB Without provenance Details for crewai_agentic_iam-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for crewai-agentic-iam 0.1.0
File Interpreter ABI Platform Actions
crewai_agentic_iam-0.1.0-py3-none-any.whl Python 3 none any Details for crewai_agentic_iam-0.1.0-py3-none-any.whl

Total release size: 21.1 kB

Release files / crewai_agentic_iam-0.1.0.tar.gz

Download URL crewai_agentic_iam-0.1.0.tar.gz
Size 11.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2aba58f1085b88ff4838007979c59f6ce6ee83c5a02b00986dde83fe1b68c71d
BLAKE2b-256 checksum
How to use checksums
c325337c02c40f4f4f7b11dc2d15bff48c72939f344c891eff8f058363929f41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / crewai_agentic_iam-0.1.0-py3-none-any.whl

Download URL crewai_agentic_iam-0.1.0-py3-none-any.whl
Size 10.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
720e633413c72c10942b1cb46b5f56936f33f11d4c17db730dbe10f6cf4757a2
BLAKE2b-256 checksum
How to use checksums
39061fbafc25c2d4b6cfd2923a47f39db497795b3882e4c3a503e03aff788e88
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for crewai-agentic-iam 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 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