Byoky demo

Example app showing Byoky wallet integration

What you can build

Every example below works through the Byoky proxy — your app never touches an API key.

Use any provider SDK as-is. Just swap in createFetch — full API compatibility, including streaming.

native-sdk.ts
import Anthropic from '@anthropic-ai/sdk';
import { Byoky } from '@byoky/sdk';

const byoky = new Byoky();
const session = await byoky.connect({
  providers: [{ id: 'anthropic', required: true }],
});

const client = new Anthropic({
  apiKey: session.sessionKey,
  fetch: session.createFetch('anthropic'),
});

const message = await client.messages.create({
  model: 'claude-sonnet-4-20250514',
  max_tokens: 1024,
  messages: [{ role: 'user', content: 'Hello!' }],
});