# Claude Code

Set up sivcloud in Claude Code: a ready-to-copy configuration snippet.

Claude Code speaks the Anthropic format, so the model must open the `/v1/messages` endpoint. The list of models and the endpoints each one opens is on the Models page in the console.

## Set up

```bash
export ANTHROPIC_BASE_URL=https://ai.sivcloud.com
export ANTHROPIC_AUTH_TOKEN=SIVCLOUD_API_KEY
export ANTHROPIC_MODEL=deepseek-v4.1-flash
claude
```

Replace SIVCLOUD_API_KEY with your API key. The address has no /v1 because Claude Code adds it.

## Check

1. Save the configuration, then restart Claude Code if needed.
2. Send a short message. The usage shows on the [Usage](https://sivcloud.com/en/docs/console/usage/) page within moments.
3. Seeing `invalid_api_key`? Check the API key. Seeing `model_not_found`? Check the model id. Full list: [Error codes](https://sivcloud.com/en/docs/errors/).

The request format is explained on the [endpoint page](https://sivcloud.com/en/docs/messages/). Never write the API key into a file that goes into a repository.
