Skip to main content

kasbah-control

KasbahOS Python SDK — govern every AI agent call.

Install

pip install kasbah-control

Quick Start

from kasbah_control import protect
import openai

# One line — all calls governed
client = protect(openai.OpenAI())

response = client.chat.completions.create(
    model="gpt-4",
    messages=[{"role": "user", "content": "Hello"}]
)

Get an API Key (free)

curl -X POST https://api.bekasbah.com/v1/keys \
  -H "Content-Type: application/json" \
  -d '{"email":"you@company.com","tier":"free"}'

Direct Usage

from kasbah_control import KasbahAgentControl

control = KasbahAgentControl(
    api_url="https://api.bekasbah.com",
    api_key="kg_your_key_here"
)

decision = control.govern(prompt="User message here")
if decision.verdict == "DENY":
    raise PermissionError(f"Blocked: {decision.threats}")

License

MIT — bekasbah.com

Metadata

Release files for kasbah-control 1.0.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 kasbah-control 1.0.0
File Size Uploaded Provenance Actions
kasbah_control-1.0.0.tar.gz 4.4 kB Without provenance Details for kasbah_control-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kasbah-control 1.0.0
File Interpreter ABI Platform Actions
kasbah_control-1.0.0-py3-none-any.whl Python 3 none any Details for kasbah_control-1.0.0-py3-none-any.whl

Total release size: 9.4 kB

Release files / kasbah_control-1.0.0.tar.gz

Download URL kasbah_control-1.0.0.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
72a05b505482ef686db1fdff8cdfb9a4aa140e7d87c9b5e439ecf4fd7834be4d
BLAKE2b-256 checksum
How to use checksums
e15c6983bbc1672be8ec713df05056d7e49bad6cd23d4486368bf4f8db6fab3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / kasbah_control-1.0.0-py3-none-any.whl

Download URL kasbah_control-1.0.0-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dc7bf6b21f5a094a2a28d50b5938b63d82d681bd3c3cea697d2070bc292caaca
BLAKE2b-256 checksum
How to use checksums
2cd6898190cf7d9c5416e552fe1dd849c54fe0276afe7b32fc9c53190a5d8ede
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Security for kasbah-control 1.0.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

1.0.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