Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.relaycore.xyz/llms.txt

Use this file to discover all available pages before exploring further.

Create Session

const { sessionId, paymentRequest } = await agent.createSession({
  maxSpend: 10,
  durationHours: 24
});

Activate Session

Transfer USDC to paymentRequest.payTo, then:
const activation = await agent.activateSession(sessionId, txHash, amount);

Use Session

const result = await agent.execute(service, input, { sessionId });