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

# Anthropic

> Configure Anthropic as an LLM provider for translation generation.

## Provider value

Use `anthropic` in `llm.profiles.<name>.provider`.

## Example profile

```json theme={null}
{
  "llm": {
    "profiles": {
      "default": {
        "provider": "anthropic",
        "model": "claude-sonnet-4-5",
        "prompt": "Translate from {{source}} to {{target}}:\n\n{{input}}"
      }
    }
  }
}
```

## Required environment variable

<CodeGroup>
  ```bash Export theme={null}
  export ANTHROPIC_API_KEY="your-anthropic-api-key"
  ```

  ```bash .env.local theme={null}
  ANTHROPIC_API_KEY="your-anthropic-api-key"
  ```
</CodeGroup>

## Optional environment variable

`ANTHROPIC_BASE_URL` defaults to `https://api.anthropic.com/v1`.
