> ## 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 a Session

> Set up gasless payment sessions

## Create Session

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

## Activate Session

Transfer USDC to `paymentRequest.payTo`, then:

```typescript theme={null}
const activation = await agent.activateSession(sessionId, txHash, amount);
```

## Use Session

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