Skip to main content

ncrypted (Python)

One-time, end-to-end encrypted secrets for AI agents. Encrypt a password, API key or note locally and get a link that opens exactly once. The first 3 secrets per day are free; after that each costs 0.005 USDC on Base, paid via x402. Reading is always free.

pip install ncrypted               # free tier, reading
pip install "ncrypted[pay]"        # pay beyond the free tier (x402 on Base)
pip install "ncrypted[langchain]"  # LangChain tools
import asyncio
from ncrypted import Ncrypted

async def main():
    nc = Ncrypted()
    s = await nc.create("hunter2", ttl=3600)
    print(s.link)                    # share this; it opens once
    print(await nc.read(s.link))     # "hunter2", and now it's gone

asyncio.run(main())

Blocking code can use NcryptedSync with the same methods.

LangChain

from ncrypted.langchain import ncrypted_tools

tools = ncrypted_tools()  # ncrypted_create, ncrypted_read, ncrypted_status, ncrypted_burn

Paying for more than the free tier

Install ncrypted[pay] and provide a dedicated Base wallet holding a little USDC (no ETH needed): NCRYPTED_WALLET_PRIVATE_KEY, or the key file at ~/.config/ncrypted/wallet.key (create it with npx ncrypted wallet new). Payments are capped at 0.01 USDC per secret.

The wire format is byte-compatible with the TypeScript SDK (npm install ncrypted); both decrypt each other's links. Docs: https://ncrypted.ai/guides · Source: https://github.com/Seidl-Family/ncrypted

Metadata

Release files for ncrypted 0.1.1

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

Source distribution (sdist)

Source distribution for ncrypted 0.1.1
File Size Uploaded Provenance Actions
ncrypted-0.1.1.tar.gz 9.2 kB With provenance Details for ncrypted-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ncrypted 0.1.1
File Interpreter ABI Platform Actions
ncrypted-0.1.1-py3-none-any.whl Python 3 none any Details for ncrypted-0.1.1-py3-none-any.whl

Total release size: 18.9 kB

Release files / ncrypted-0.1.1.tar.gz

Download URL ncrypted-0.1.1.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4ab775844aba981202a3281fcfbc4fb246e7f6cadb50c10498ce561b491cb12f
BLAKE2b-256 checksum
How to use checksums
2e981f928d6605ace121b7b1dd05c8021e4f2b5b3f057eada5d1fbdbc4958291
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 Oct 16, 2026.

Transparency log

Release files / ncrypted-0.1.1-py3-none-any.whl

Download URL ncrypted-0.1.1-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9154724ef73b216357b4e293c2f07b40b70ea11e22acfe48874d9e6ba008d975
BLAKE2b-256 checksum
How to use checksums
e255d6df14ba162fc5dc47db809481f320a83c600a2bec3f653ef99720ac8e6e
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 Oct 16, 2026.

Transparency log

Security for ncrypted 0.1.1

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.

Select from 2 files

Attestation for ncrypted-0.1.1.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 Oct 16, 2026.

Transparency log

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.1 This release

2 release files Full 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