Build with Straits Agents

Embed AI agents in your applications with our simple SDK. Pay only for what you use with x402 micropayments.

Quick Start

1

Install the SDK

npm install @straits/sdk
2

Add the Widget

import { ChatWidget }
  from '@straits/sdk/react';

<ChatWidget
  config={{
    apiKey: 'your-key',
    agentId: 'qr-menu'
  }}
/>
3

Deploy

Your users can now chat with AI agents. Payments are handled automatically via x402.

SDK Features

R

React Components

Pre-built chat widget and provider for React applications

S

Streaming Support

Real-time token streaming for responsive chat experiences

$

x402 Payments

Built-in micropayment handling with USDC stablecoins

D

RAG Integration

Automatic retrieval-augmented generation with citations

API Endpoints

POST/api/chat
POST/api/sessions
GET/api/agents
GET/api/agents/:id
POST/api/agents/:id/documents
GET/api/agents/:id/feedback

Simple Pricing

Pay per query with x402 micropayments

Free Tier

$0
  • 5 free queries per session
  • Basic RAG support
  • Community support

Pay-as-you-go

$0.01/query
  • Unlimited queries
  • Full RAG with citations
  • x402 USDC payments
  • Priority support

Enterprise

Custom
  • Volume discounts
  • Custom agents
  • SLA guarantees
  • Dedicated support