New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@xpaysh/agent-kit-core

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xpaysh/agent-kit-core

Core payment protocol utilities and types for AI agents

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

@xpaysh/agent-kit-core

Core payment protocol utilities for building AI agents that can make autonomous micropayments.

Overview

The Agent Kit Core package provides the foundational classes and utilities for building AI agents that interact with payment-protected APIs using the x402 protocol. It includes smart proxy management, paywall functionality, and comprehensive spending controls.

Features

  • SmartProxy: Manage AI agents with autonomous payment capabilities
  • Paywall: Monetize your APIs with built-in payment verification
  • Spending Controls: Set daily, per-call, and total spending limits
  • Transaction Tracking: Monitor and analyze agent spending patterns
  • Error Handling: Comprehensive error types for payment operations

Installation

npm install @xpaysh/agent-kit-core

Quick Start

import { SmartProxy } from '@xpaysh/agent-kit-core';

const smartProxy = new SmartProxy({
  privateKey: process.env.PRIVATE_KEY,
  network: 'base-sepolia',
  spendingLimits: {
    dailyLimit: 10,
    perCallLimit: 1
  }
});

// Make a payment-protected API call
const response = await smartProxy.protectedFetch('https://api.example.com/data');
console.log('Data:', response.data);
console.log('Cost:', response.cost);

Documentation

For comprehensive documentation, guides, and examples, visit:

  • Documentation: https://docs.xpay.sh
  • Website: https://www.xpay.sh

License

MIT © xPay

Keywords

agents

FAQs

Package last updated on 12 Nov 2025

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