What is the OneShot SDK?
The OneShot SDK handles the boring parts of agent commerce: signing payments, retrying on 402, polling async jobs, and tracking what your agent spent. You callagent.email(), the SDK handles the rest and gives you a receipt.
Safe by default. The SDK runs in test mode by default, using the staging
API and Base Sepolia testnet. No real money is involved until you explicitly
set
testMode: false.- Automatic x402 Payments: Signs and submits payment authorizations automatically
- Pay with ETH or USDC: Hold ETH and the SDK auto-swaps to USDC via Uniswap V3 at payment time
- Flexible Wallets: Coinbase CDP Server Wallets (recommended, no private keys) or raw private key via ethers.js
- Job Polling: Waits for async jobs to complete
- Type Safety: Full TypeScript support with proper types
Why Use the SDK?
For Humans
The SDK simplifies integration:For AI Agents
The SDK is essential for autonomous agents:- No manual payment flow handling
- Automatic retry logic for rate limits
- Clean error messages
- Minimal token usage in prompts
Quick Example
- CDP Wallet (Recommended)
- Private Key
Key Features
Automatic Payments
SDK handles x402 payment flow automatically - no manual signing needed
Job Polling
Waits for async jobs to complete and returns results directly
Type Safety
Full TypeScript support with proper types for all tools
Flexible Wallets
Coinbase CDP Server Wallets (no private keys) or raw key via ethers.js
Pay with ETH
Auto-swap ETH→USDC via Uniswap V3 — no need to hold USDC
Supported Tools
| Tool | Method | Description |
|---|---|---|
agent.email() | Send emails with attachments | |
| Voice | agent.voice() | Phone calls |
| SMS | agent.sms() | Send SMS messages |
| SMS Inbox | agent.smsInboxList() | List inbound SMS messages |
| SMS Message | agent.smsInboxGet(id) | Get a specific SMS by ID |
| Research | agent.research() | Deep web research with sources |
| People Search | agent.peopleSearch() | Search for people by criteria |
| Profile Enrichment | agent.enrichProfile() | Enrich from LinkedIn/email |
| Email Finder | agent.findEmail() | Find email for a person |
| Email Verification | agent.verifyEmail() | Verify email deliverability |
| Deep Research Person | agent.deepResearchPerson() | Full dossier on a person (2-5 min) |
| Social Profiles | agent.socialProfiles() | Find all social accounts for a person |
| Article Search | agent.articleSearch() | Find articles about a person |
| Person Newsfeed | agent.personNewsfeed() | Recent social posts with engagement |
| Person Interests | agent.personInterests() | Analyze interests across categories |
| Person Interactions | agent.personInteractions() | Map followers, following, replies |
| Commerce Buy | agent.commerceBuy() | Purchase products |
| Commerce Search | agent.commerceSearch() | Search for products |
| Build | agent.build() | Build and deploy production websites |
| Update Build | agent.updateBuild() | Update an existing website |
| Web Search | agent.webSearch() | Search the web, get results instantly |
| Web Read | agent.webRead() | Read any URL as markdown + screenshot |
| Browser | agent.browser() | Autonomous browser — navigate, click, extract |
| Email Inbox | agent.inboxList() | List inbound emails |
| Email Message | agent.inboxGet(id) | Get a specific email by ID |
| Wallet Balance | agent.getBalance(tokenAddress) | Get USDC wallet balance |
| Notifications | agent.notifications() | List agent notifications |
| Mark Read | agent.markNotificationRead(id) | Mark notification as read |
| Universal Tool | agent.tool(name, options) | Call any OneShot tool |
All SDKs and Packages
| Package | Registry | Language | Tools |
|---|---|---|---|
@oneshot-agent/sdk | npm | TypeScript | Full SDK with CDP wallet support |
@oneshot-agent/mcp-server | npm | TypeScript | 28 tools for Claude, Cursor, Claude Code |
oneshot-python | PyPI | Python | Core HTTP client with x402 payments |
langchain-oneshot | PyPI | Python | 26 LangChain BaseTool subclasses |
game-plugin-oneshot | PyPI | Python | 7 tools for Virtuals GAME agents |
Next Steps
Installation
Install and configure the SDK (TypeScript + Python)
Examples
TypeScript code examples
LangChain (Python)
Python integration with 26 LangChain tools
MCP Server
Use OneShot in Claude Desktop, Cursor, Claude Code
Virtuals GAME SDK
GAME plugin for Virtuals Protocol agents
Pricing
Pay-per-use pricing details