Install via npm/bun
- npm
- bun
bash npm install @oneshot-agent/sdk Install via pip (Python)
If you’re building in Python, install the core SDK or the LangChain integration:- Core SDK
- LangChain
- Virtuals GAME
OneShotClient with the full x402 payment flow. Use this if you want direct HTTP access without a framework.All Python packages use
eth-account for local EIP-712 signing and httpx for HTTP. Your private key never leaves your machine.Prerequisites
1
Wallet
A Coinbase CDP wallet (recommended) or a raw private key.
2
Funds
Fund your wallet with USDC or ETH on Base. The SDK can auto-swap ETH→USDC via Uniswap V3 at payment time.
3
Node.js
Version 18+ required.
Authentication
The SDK supports two wallet options for signing x402 payments:- Coinbase CDP Wallet (Recommended)
- Raw Private Key
Server-side wallet managed by Coinbase — no private keys in your config. Signing happens in Coinbase’s secure enclave (TEE).Get your CDP credentials at Coinbase Agentic Wallet.
The SDK operates on Base Mainnet with real USDC. Fund your agent wallet before making paid tool calls.
Environment Variables
- CDP Wallet (Recommended)
- Raw Private Key
Verify Installation
Pay with ETH
Don’t have USDC? The SDK can auto-swap ETH→USDC via Uniswap V3 before each payment. Just setcurrency: 'ETH':
exactOutputSingle on Base, so the agent gets exactly the USDC needed and any excess ETH is refunded. Requires a wallet provider that supports sendTransaction (private key or custom provider — CDP wallets don’t support ETH mode yet).
Advanced Configuration
Custom Wallet Provider
You can also bring your ownWalletProvider implementation:
TypeScript Configuration
If using TypeScript, ensure yourtsconfig.json includes:
Package Registry Links
Source code: github.com/oneshot-agent/sdk
Next Steps
Examples
TypeScript code examples for email, research, and more
LangChain
Python LangChain integration with 31 tools