Which Claude Code version works with FriendliAI Model APIs?

Last updated: August 25, 2026

Claude Code v2.1.234 and later send JSON schemas using allOf with multiple subschemas in tool definitions. FriendliAI's Model API does not support this construct and returns:

API Error: 422 'allOf' with multiple schemas is not supported.

This affects all models on v2.1.234 and every version released since (up to v2.1.245 at the time of writing). The issue is not model-specific — it is caused by the JSON schema format Claude Code sends in its API requests.

Working version

v2.1.233 is the last Claude Code version that works with FriendliAI Model APIs.

To install it:

npm install -g @anthropic-ai/claude-code@2.1.233

If you previously had a newer version installed, this downgrades your global install. Verify with: claude --version

Preventing auto-update

Claude Code auto-updates by default. To stay on v2.1.233, disable auto-update in ~/.claude.json:

{
  "autoUpdates": false
}

Or set the environment variable:

export CLAUDE_AUTO_UPDATE=0

When will this be fixed?

FriendliAI is working on accepting allOf schemas in the Model API. Until then, pin to v2.1.233.

Related Articles