@moxxy/plugin-provider-anthropic is the Anthropic provider plugin. API-key auth; ships the full Claude model list.
Install
sh
pnpm add @moxxy/plugin-provider-anthropicUse
ts
import { anthropicPlugin } from '@moxxy/plugin-provider-anthropic';
session.pluginHost.registerStatic(anthropicPlugin);
session.providers.setActive('anthropic');Auth
sh
export ANTHROPIC_API_KEY=sk-ant-...Or via vault placeholder in moxxy.config.ts:
ts
provider: {
name: 'anthropic',
model: 'claude-sonnet-4-6',
config: { apiKey: '${vault:ANTHROPIC_API_KEY}' },
}Exports
anthropicPlugin,anthropicProviderDefAnthropicProvider,AnthropicProviderConfig,anthropicModelstoAnthropicMessages,toAnthropicTools— translation helpersvalidateKey(key)— synchronous-ish key check used bymoxxy doctor --check-keys
