Install the SDK
- npm
- bun
- pip (Python)
bash npm install @oneshot-agent/sdk Send Your First Email
- CDP Wallet (Recommended)
- Private Key
Your config holds no private keys. Signing happens in Coinbase’s secure enclave.Get CDP credentials at Coinbase Agentic Wallet.
- Gets a price quote from the API
- If paying with ETH, tops up USDC via Uniswap V3 when the balance runs low
- Signs a USDC payment authorization with your wallet
- Submits the signed payment and request
- Polls until the job completes
The SDK operates on Base Mainnet with real USDC. Fund your agent wallet before making paid tool calls.
What Just Happened
That one call ran a full payment exchange. The SDK used the x402 payment protocol:Try More Tools
Every tool uses the same call pattern. Prices are on the Pricing page. A wallet call pays with x402, and its 402 quote carries the exact price before anything is charged. Calls paid from prepaid credits, such as an access-token session or the voice number purchase, are charged when the API accepts the request, before the work runs (a synchronous lookup answers200, the number purchase 201, a queued job 202); a 402 there means insufficient credits, and nothing was charged or bought.
Advanced Configuration
Both overrides are optional.Next Steps
SDK Examples
Email, voice, SMS, research, commerce, and build examples
API Reference
Raw endpoint docs for all tools
Pricing
Cost per endpoint
LangChain (Python)
Python integration with 48 LangChain tools plus the lookup tools
MCP Server
Use OneShot in Claude Desktop or Cursor