Skip to main content
Official TypeScript and Python SDKs are in development. For now, use raw fetch calls as shown throughout this documentation.

SDK Preview

Here’s a preview of what the TypeScript SDK will look like:
import { Stewrd } from '@stewrd/sdk'

const stewrd = new Stewrd('sk-stw_your_key')

const result = await stewrd.agent.run({
  message: 'Research the top 5 CRM tools and create a comparison spreadsheet',
  capabilities: ['research', 'documents'],
})

console.log(result.message)
console.log(result.files[0].url)

Planned SDKs

LanguagePackageStatus
TypeScript / Node.js@stewrd/sdkIn development
PythonstewrdPlanned

Using Fetch in the Meantime

The Stewrd API is a single REST endpoint, so it’s straightforward to use with fetch in any language:
const response = await fetch('https://api.stewrd.dev/v1/agent', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${process.env.STEWRD_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    message: 'Your task here',
  }),
})

const data = await response.json()

Get notified

Sign up to be notified when official SDKs are released.