> ## Documentation Index
> Fetch the complete documentation index at: https://docs.yolocode.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Set Claude Credentials

> Configure Claude OAuth credentials in the sandbox

Writes Claude credentials to `.claude/.credentials.json` inside the sandbox and restarts the Claude WebSocket server.

**id** `string` *required*

Sandbox ID.

**accessToken** `string` *required*

Claude access token.

**refreshToken** `string` *required*

Claude refresh token.

**expiresAt** `string` *required*

Token expiry (ISO 8601).

**account** `object`

Account info with `id` and `name`.

**selectedModel** `string`

Preferred Claude model.

**subscriptionInfo** `object`

Subscription details.

### Response

Returns confirmation that credentials were set.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.