new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

AI SDK · Providers · all subjects

claude-code/setup

7 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Claude Code provider package name and repository

The Claude Code community provider is published as ai-sdk-provider-claude-code on npm and hosted at https://github.com/ben-vargas/ai-sdk-provider-claude-code. It allows access to Claude models through the official Claude Agent SDK.

Claude Code provider version compatibility with AI SDK

Provider version 3.x is compatible with AI SDK v6 and tagged 'latest' with Stable status. Provider version 2.x is compatible with AI SDK v5 and tagged 'ai-sdk-v5' with Maintenance status. Provider version 0.x is compatible with AI SDK v4 and tagged 'ai-sdk-v4' with Legacy status.

Claude Code provider installation commands

For AI SDK v6 (default): npm install ai-sdk-provider-claude-code ai For AI SDK v5: npm install ai-sdk-provider-claude-code@ai-sdk-v5 ai@^5.0.0 For AI SDK v4: npm install ai-sdk-provider-claude-code@ai-sdk-v4 ai@^4.0.0

Claude Code provider instance import and creation

Import the default provider instance with: import { claudeCode } from 'ai-sdk-provider-claude-code'; For custom setup, import and use: import { createClaudeCode } from 'ai-sdk-provider-claude-code'; const claudeCode = createClaudeCode({...});

Claude Code example usage with generateText

import { claudeCode } from 'ai-sdk-provider-claude-code'; import { generateText } from 'ai'; const { text } = await generateText({ model: claudeCode('sonnet'), prompt: 'Write a vegetarian lasagna recipe for 4 people.', });

Claude Code authentication method

The provider uses an existing Claude Pro or Max subscription through the Claude Code CLI. Authentication is performed by running 'claude login' which opens a browser window for authentication. Once authenticated, the provider automatically uses the subscription.

Claude Code system requirements

Requirements include Node.js 22 or higher, Claude Code CLI installed via npm install -g @anthropic-ai/claude-code, and a Claude Pro or Max subscription.

Give your agent this brain