open-index/open-npm huggingface dataset:
npm package: @kontext-dev/js-sdk
Description: Secure credentials for AI agents.
Latest version: 2.0.0

# @kontext-dev/js-sdk

Secure credentials for AI agents.

[Website](https://kontex.dev)  
[Documentation](https://docs.kontext.dev)  
[Dashboard](https://app.kontext.dev)

## Install

```bash
npm install @kontext-dev/js-sdk
```

## What You Get

- OAuth-based authentication and token handling for AI applications
- MCP tool discovery and execution through a typed client
- Server-side authenticated call delivery per user and integration
- Management API client for applications, integrations, and service accounts
- React, Cloudflare, and AI adapter entry points

## Quick Start (Client)

```ts
import { createKontextClient } from "@kontext-dev/js-sdk/client";

const client = createKontextClient({
  clientId: "app_your-client-id",
  redirectUri: "http://localhost:3000/callback",
  onAuthRequired: (url) => {
    window.location.href = url.toString();
  },
});

await client.connect();
const tools = await client.tools.list();
```

## Quick Start (Server)

```ts
import { Kontext } from "@kontext-dev/js-sdk/server";

const kontext = new Kontext({
  clientId: process.env.KONTEXT_CLIENT_ID!,
});

const githubCredential = await kontext.require("github", userAccessToken);
```

## Entry Points

- `@kontext-dev/js-sdk` (root convenience exports)
- `@kontext-dev/js-sdk/client`
- `@kontext-dev/js-sdk/server`
- `@kontext-dev/js-sdk/management`
- `@kontext-dev/js-sdk/react`
- `@kontext-dev/js-sdk/cloudflare`
- `@kontext-dev/js-sdk/ai`
- `@kontext-dev/js-sdk/mcp`
- `@kontext-dev/js-sdk/errors`
- `@kontext-dev/js-sdk/verify`
- `@kontext-dev/js-sdk/oauth`

## Learn More

- TypeScript SDK overview: https://docs.kontext.dev/sdks/typescript
- Getting started guide: https://docs.kontext.dev/getting-started/quickstart
- Framework guides: https://docs.kontext.dev/frameworks/vercel-ai
npm package: @kontext-sdk/cli
Description: Proof of compliance CLI for AI agents making agentic stablecoin and fiat payments. OFAC screening, digest chains, compliance certificates.
Author: Legaci Labs Inc.
Latest version: 0.11.1

# @kontext-sdk/cli

CLI for the Kontext trust layer. Cryptographic verifiable intent for org-wide payments.

## Install

```bash
npm install -g @kontext-sdk/cli
```

Or run directly with npx:

```bash
npx @kontext-sdk/cli init
```

## Commands

### `kontext init` -- project setup wizard

```bash
npx @kontext-sdk/cli init
```

Interactive wizard that captures your wallets, tokens, chains, and compliance mode. Generates `kontext.config.json` -- the SDK reads this automatically.

### `kontext verify` -- compliance check + audit log

```bash
npx @kontext-sdk/cli verify --tx 0xabc... --amount 5000 --token USDC \
  --from 0xAgent --to 0xMerchant --agent my-bot
```

### `kontext check` -- stateless OFAC + threshold check

```bash
npx @kontext-sdk/cli check 0xSender 0xReceiver --amount 5000 --token USDC
```

### `kontext reason` -- log agent reasoning

```bash
npx @kontext-sdk/cli reason "Price within budget. Recipient verified." --agent my-bot
```

### `kontext cert` -- export compliance certificate

```bash
npx @kontext-sdk/cli cert --agent my-bot --output cert.json
```

### `kontext audit` -- verify digest chain integrity

```bash
npx @kontext-sdk/cli audit --verify
```

### `kontext mcp` -- MCP server for AI coding tools

```bash
npx @kontext-sdk/cli mcp
```

Works with Claude Code, Cursor, and Windsurf.

```json
{
  "mcpServers": {
    "kontext": {
      "command": "npx",
      "args": ["-y", "@kontext-sdk/cli", "mcp"]
    }
  }
}
```

## Flags

- `--json` -- structured JSON output on any command
- `--amount <number>` -- transaction amount in token units
- `--token <symbol>` -- USDC, USDT, DAI, EURC

## License

MIT

---

Built by [Legaci Labs](https://www.getkontext.com)
npm package: @kontext21/k21
Description: Node.js Library for the Kontext21 SDK
Latest version: 0.21.1

# Kontext21 Node.js Library

# Work in progress.

> Based on the amazing [napi-rs/package-template](https://github.com/napi-rs/package-template) project.

# Usage

## Install this test package

```
yarn add @kontext21/k21
```

## Support matrix

### Operating Systems

|                  | node14 | node16 | node18 |
| ---------------- | ------ | ------ | ------ |
| Windows x64      | ✓      | ✓      | ✓      |
| Windows x32      | ✓      | ✓      | ✓      |
| Windows arm64    | ✓      | ✓      | ✓      |
| macOS x64        | ✓      | ✓      | ✓      |
| macOS arm64      | ✓      | ✓      | ✓      |

## Ability

### Build

After `yarn build/npm run build` command, you can see `package-template.[darwin|win32|linux].node` file in project root. This is the native addon built from [lib.rs](./src/lib.rs).

### For local Development: Build Rust + Node, create TS file and move them into bin/ folder

```
yarn run bp
```

### Test

run `yarn test/npm run test` to testing native addon.

## Develop requirements

- Install the latest `Rust`
- Install `Node.js@10+` which fully supported `Node-API`
- Install `yarn@1.x`

## Test in local

- yarn
- yarn build
- yarn test
- yarn run bp 

Afterwards you can import the locally build package into your project:

```
npm install ../k21-node/kontext21-k21-0.17.0.tgz
```