New:Socket for Asana Is Now Available.Learn more
Get Started

@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

Source
npmnpm
Version
0.1.1
Version published
Weekly downloads
6
200%
Maintainers
1
Weekly downloads
 
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 "openai" credential
const response = await ak.proxy("openai", {
  url: "https://api.openai.com/v1/chat/completions",
  method: "POST",
  body: {
    model: "gpt-4o",
    messages: [{ role: "user", content: "Hello!" }],
  },
});

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

With proxy token (single credential)

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

const response = await ak.proxy("ignored", {
  url: "https://api.openai.com/v1/chat/completions",
  method: "POST",
  body: { model: "gpt-4o", messages: [{ role: "user", content: "Hello!" }] },
});

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

Related posts