🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@agentkeys-io/sdk

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agentkeys-io/sdk

TypeScript SDK for AgentKeys — proxy API calls through secure credential vault

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

@agentkeys-io/sdk

TypeScript SDK for AgentKeys — proxy API calls through a secure credential vault. Your agent never sees the real API keys.

Install

npm install @agentkeys-io/sdk

Usage

import { AgentKeys } from "@agentkeys-io/sdk";

const ak = new AgentKeys({
  token: "ak_ws_your_key...",
  proxyUrl: "https://proxy.agentkeys.io",
});

// Proxy a request through the "resend" credential
const response = await ak.proxy("resend", {
  url: "https://api.resend.com/emails",
  method: "POST",
  body: {
  },
});

console.log(await response.json());

With proxy token (single credential)

const ak = new AgentKeys({ token: "pxr_resend_abc123..." });

const response = await ak.proxy("ignored", {
  url: "https://api.resend.com/emails",
  method: "POST",
  body: { "from": "hi@example.com", "to": "user@example.com", "subject": "Hello", "text": "Sent via AgentKeys"},
});

Scoped client

const resend = ak.for("resend");
const stripe = ak.for("stripe");

await resend.post("https://api.resend.com/emails", {
  from: "hi@example.com",
  to: "user@example.com",
  subject: "Hello",
  text: "Sent via AgentKeys",
});

const balance = await stripe.get("https://api.stripe.com/v1/balance");

Keywords

agentkeys

FAQs

Package last updated on 19 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts