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

# Anthropic

> TypeScript API reference for the anthropic llm provider.

<Card title="Usage guide" icon="book" href="/plugins/llm/anthropic" horizontal>
  Setup, environment variables, and Python/JavaScript/Go usage examples.
</Card>

## AnthropicLLM

Initialize the Anthropic LLM.

```ts theme={null}
import { AnthropicLLM } from '@zeroruntime/js-sdk/plugins';  // direct to the vendor, with your key
```

### Options

<ParamField path="model" type="string" default="claude-sonnet-4-20250514" />

<ParamField path="base_url" type="string | null" default="null" />

<ParamField path="temperature" type="number" default="0.7" />

<ParamField path="tool_choice" type="'auto' | 'required' | 'none'" default="auto" />

<ParamField path="max_tokens" type="number" default="1024" />

<ParamField path="top_k" type="number | null" default="null" />

<ParamField path="top_p" type="number | null" default="null" />

<ParamField path="caching" type="'ephemeral' | null" default="null" />

<ParamField path="parallel_tool_calls" type="boolean | null" default="null" />

<ParamField path="thinking" type="Record<string, any> | null" default="null" />

<ParamField path="max_retries" type="number" default="0" />
