ncrypted / guides

LangChain

ncrypted as LangChain tools, in Python or JS.

python

pip install "ncrypted[langchain]"   # add [pay] to pay beyond the free tier
from ncrypted.langchain import ncrypted_tools

tools = ncrypted_tools()  # ncrypted_create, ncrypted_read, ncrypted_status, ncrypted_burn (sync + async)
# pass to create_agent / bind_tools as usual

javascript (via MCP)

npm install @langchain/mcp-adapters
import { MultiServerMCPClient } from "@langchain/mcp-adapters";

const client = new MultiServerMCPClient({
  mcpServers: {
    ncrypted: { transport: "stdio", command: "npx", args: ["-y", "@seidl-family/ncrypted-mcp"] },
  },
});

const tools = await client.getTools(); // pass to createAgent / bindTools as usual
// ...
await client.close();

pricing

The first 3 secrets per day are free (TTL up to 24h). After that each costs 0.005 USDC, paid over x402 from a local Base wallet: `npx ncrypted wallet new` (or the ncrypted_wallet_setup tool) creates it and returns a funding link. Reads, requests and deliveries are free.