> ## 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.

# Session Management

> Manage gasless payment sessions

## Create Session

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

## Query Session

```typescript theme={null}
const session = await agent.getSession(sessionId);
console.log(\`Remaining: \${session.remaining} USDC\`);
```
