Skip to main content

Install the SDK

npm install @trevi/sdk

Wrap your app

import { TreviProvider } from '@trevi/sdk';

function App() {
  return (
    <TreviProvider appId="your-app-slug" serverUrl="https://api.trevi.dev">
      <YourApp />
    </TreviProvider>
  );
}

Next step

Use the hooks in the SDK to call tools and workflows. Start with Use tools.