Skip to main content

Install the SDK

bash npm install @oneshot-agent/sdk

Send Your First Email

That’s it. The SDK:
  1. Gets a price quote from the API
  2. If paying with ETH, auto-swaps to USDC via Uniswap V3
  3. Signs a USDC payment authorization with your wallet
  4. Submits the signed payment and request
  5. 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

Under the hood, the SDK handled the x402 payment protocol:
You can also do this manually with curl if you want full control. See the API Reference for raw endpoint docs.

Try More Tools

Advanced Configuration

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 31 LangChain tools

MCP Server

Use OneShot in Claude Desktop or Cursor