# Quba — privacy layer for humans, agents, and systems

> Say yes to AI without handing over your data. One policy set across humans, agents, and systems.

Protect your sensitive data by enforcing a shared policy-set across your AI ecosystem so you can say yes to AI without handing over your data.

[Get started](/app)

## How it works

Your data stays protected before it leaves your environment.

From an AI chat to an LLM gateway, Quba keeps sensitive data masked as it moves through the tools and systems your team depends on.

Quba sits between your environment and the model across four paths: AI agents, an LLM gateway, AI training, and data processing. Sensitive values are masked before they leave your environment and restored on the way back.

## Built for Developers

One API call between your data and the model.

Install the SDK, add your key, wrap the call you already make. Quba swaps sensitive values for reversible tokens on the way out and restores them on the way back — any model, any provider, our cloud or yours.

npm install @quba/sensitive-data-protection

pip install quba-sensitive-data-protection

[Read the API docs](/docs)

TypeScriptPythonREST API

```
import {
  Configuration,
  SensitiveDataProtectionApi,
} from "@quba/sensitive-data-protection"

const api = new SensitiveDataProtectionApi(
  new Configuration({ headers: { "x-api-key": "quba_..." } }),
)

// Detect and protect sensitive data with a single API call
const result = await api.anonymizeText({
  text: "Patient Sara Al Hammadi, DOB: 14 Mar 1987",
  rules: [
    {
      type: "replace",
      entities: [{ type: "model", value: "person" }],
      replacement: "Name001",
    },
    {
      type: "mask",
      entities: [{ type: "model", value: "date" }],
      masking_char: "*",
    },
    { type: "redact", entities: [{ type: "model", value: "email" }] },
  ],
})

// → "Patient Name001, DOB: ** *** ****"
```

```
from quba_sdp import Client, models
from quba_sdp.api import anonymize_text

client = Client(headers={"x-api-key": "quba_..."})

# Detect and protect sensitive data with a single API call
result = anonymize_text.sync(
    client=client,
    body=models.AnonymizeRequestBody(
        text="Patient Sara Al Hammadi, DOB: 14 Mar 1987",
        rules=[
            models.ReplaceRule(
                entities=[models.ModelEntity(value="person")], replacement="Name001"
            ),
            models.MaskRule(
                entities=[models.ModelEntity(value="date")], masking_char="*"
            ),
            models.RedactRule(entities=[models.ModelEntity(value="email")]),
        ],
    ),
)

# → "Patient Name001, DOB: ** *** ****"
```

```
curl -X POST https://www.quba.co/api/sdp/anonymize \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Patient Sara Al Hammadi, DOB: 14 Mar 1987",
    "rules": [
      {
        "type": "replace",
        "entities": [{ "type": "model", "value": "person" }],
        "replacement": "Name001"
      },
      {
        "type": "mask",
        "entities": [{ "type": "model", "value": "date" }],
        "masking_char": "*"
      },
      { "type": "redact", "entities": [{ "type": "model", "value": "email" }] }
    ]
  }'

# → { "text": "Patient Name001, DOB: ** *** ****" }
```

## Data Residency

Data residency made simple

Keep regulated data in the jurisdiction it belongs to. Quba runs inside your own environment, so sensitive values never cross a border you did not choose — while requests still reach the world’s best models. Stay compliant with GDPR, PDPL, and SAMA without giving up the AI your team wants to use.

## Private AI Workflows

Prevent Data Leaks in GenAI

Protect sensitive data before leaving your environment to external LLMs, AI agents, or RAG pipelines. Quba secures data at your trusted environment, enabling fast, compliant AI use and development without compromise.

[Learn more](/contact)

## Compliance

Compliance in days, not months

Accelerate your path to global and regional compliance including GDPR, HIPAA, PCI-DSS, and data protection laws. Quba helps you isolate sensitive data from your environment and simplifies audits with modern APIs and SDKs. Start small and expand coverage as your needs grow.

## Monitoring Access

Track and control data access

Easily monitor and control who accesses your sensitive data with real-time tracking and customizable permission settings. Stay secure and compliant by ensuring only authorized users can view or use sensitive data.

## Developer Ready

Simple Integrations for Developers

Integrate Quba into your applications, workflows, and data sources with ease. Whether on-premises or via SaaS, our simple API and SDK let you connect securely without disrupting your existing stack.

## AI Model Accuracy

Maintain Data Accuracy for AI

Ensure your de-identified data remains accurate and useful for AI applications. Quba employs advanced masking techniques that preserve the integrity of your data, allowing your AI models to perform optimally without compromising privacy.

## Ultimate Security and Data Sovereignty

_Deploy on-premises or choose our enterprise-grade SaaS_, ensuring the highest standards of security and regulatory compliance.

Protect your sensitive data today

A trusted solution designed to automatically discover and protect sensitive data across your systems and teams.

[Get started](/app)
