1. Home
  2. SDKs and public repos

SDKs and public repos

Install it. Hide the data. Call your model

You build in Python or JavaScript, and you want Opami Protect in a few lines. The packages, the MCP server and the examples are public.

POST /v1/detectThe API is open today
Request
{
  "model": "<model>",
  "text": "Hi, this is Ana Silva."
}
Response
{
  "detections": [
    { "text": "Ana Silva", "type": "person",
      "start": 12, "end": 21, "entity_id": 1 }
  ],
  "usage": { … }
}

The text, with badgesHi, this is Ana SilvaPerson 1Full nameAna Silva.

Made-up values, in the shape of the real response.

Four steps around your model call

The packages and the API do the same job. Send the text to Opami Protect before the model call. Get the text back with badges in place of the private and sensitive data. Call your model. Put the real details back in the answer. Register at the console, get a key and follow the quickstart. No sales call.

  1. 1

    Send the text to Opami Protect before the model call.

    Hi, this is Ana SilvaPerson 1Full nameAna Silva.
  2. 2

    Get the text back with badges in place of the private and sensitive data.

    Hi, this is Ana SilvaPerson 1Full nameAna Silva.
  3. 3

    Call your model.

    Hello Ana SilvaPerson 1Full nameAna Silva, how can I help?
  4. 4

    Put the real details back in the answer.

    Hello Ana SilvaPerson 1Full nameAna Silva, how can I help?

Made-up example.

The API docs →

Try it on your own data

Opami Protect is in private beta. Register at the console, run a sample of your own text, and see what it hides. No sales call.

The repositories

One card for each repository, with its install line, its licence and its link.

What opens, and what stays closed

Public

The SDKs, the MCP server, the examples and the benchmark code are public.

Closed

The model behind Opami Protect is not open source, and these repositories do not contain it. The model runs in our cloud in the EU, or on your own servers.

Questions

Something else on your mind? Talk to us →

Is there a Python library or an npm package for Opami Protect?
Yes. For Python, pip install opami-protect. For JavaScript and TypeScript, npm install opami-protect. Both are MIT licensed and on GitHub. You can also call the API directly, and the quickstart shows how.
How do I hide personal data in Python before sending text to Claude or OpenAI?
Call the Opami Protect API from your Python code before the model call. Send the text, replace what it finds with badges, send the badged text to the model, and swap the real details back into the answer. The quickstart and the blog post show the code. The blog post with the code →
Is there an MCP server?
Yes. opami-protect-mcp runs on your machine with npx -y opami-protect-mcp and your Opami API key. It works in Claude Code, Cursor, Codex and other MCP clients, with four tools: protect_text, protect_file, detect_pii and restore_text. Its README has the setup.
Is the model open source?
No, the Opami Protect model is not open source. The SDKs, the MCP server, the examples and the benchmark code are public.

One vision, four products

Hides the private and sensitive data in a text before the AI reads it. For the people who build with AI.

Opami Protect

Work with the best AI models, with nothing private reaching them.

Opami Chat

The confidential and proactive AI assistant. It connects to your apps and inboxes, knows you and how you work, reminds you and prepares the work for your approval.

Opami Bot

Your personal or company AI memory system without a single private or sensitive detail.

Opami Brain