Verified 2026-10-20 · Claude Code 2.1.304

Claude Code 2.1.304: tool search by default and 400/422 retries

Claude Code 2.1.304 changed tool search to be on by default behind a custom ANTHROPIC_BASE_URL; if the gateway returns 400 or 422, the request is retried without it. The second change: for context_management: Extra inputs are not permitted errors behind LLM gateways, Claude Code now resends the request without that field. Both are listed under 2.1.304 in the official changelog (released 2026-10-19 UTC).

Updated 2026-10-20

One key for Claude, GPT and leading Chinese models, billed per token, up and running in minutes.

#2.1.304#tool search#400 / 422#context_management

Version and date, the two changes, checking your version, QCode setup

2.1.304

the official release

The release page lists the tag v2.1.304, published on 2026-10-19 (21:34 UTC).

tool search

on by default behind a custom base URL

The official changelog: tool search is on by default behind a custom ANTHROPIC_BASE_URL; a 400 or 422 from the gateway is retried without it.

context_management

resent after the gateway rejects it

The other line in the official changelog: context_management: Extra inputs are not permitted errors behind LLM gateways are fixed; Claude Code now resends the request without that field.

claude --version

check your own version

The official install docs say that claude --version prints the version number, that claude doctor gives a detailed look at the installation and the settings, and that claude update updates the install.

When each of the two changes applies

The changelog describes two different situations. One concerns sessions with a custom ANTHROPIC_BASE_URL: tool search is on by default there, and a 400 or 422 from the gateway is retried without it. The other happens when an error appears behind a gateway and has to do with the context_management field: Claude Code resends the request without that field.

The 2.1.304 release

The official release v2.1.304 was published on 2026-10-19 (21:34 UTC); two gateway-related entries are listed under 2.1.304 in the changelog, see above. The QCode docs page "Claude Code Complete Tutorial" is marked as updated on 2026-10-15.

Timeline

2026-10-15

The update date marked on the QCode docs page "Claude Code Complete Tutorial", which gives the two environment variables to set when connecting to QCode.

2026-10-19

The official release v2.1.304 is published (21:34 UTC); the two behavior changes are listed under 2.1.304 in the official changelog.

2026-10-19

The update date marked on the QCode docs page "Endpoints & API Paths".

What the official pages state and what they do not

Checked against the official sources

① The official changelog has two gateway-related entries under 2.1.304. ② The official release v2.1.304 was published on 2026-10-19 (21:34 UTC).

What the official pages do not say

① The changelog does not say which request fields tool search consists of, and it gives no error text for 400 or 422 and no difference between the two. ② It does not say how earlier versions behaved with a custom ANTHROPIC_BASE_URL. ③ It does not say which fields the retried request still carries after tool search has been removed.

Two symptoms, one line each in the official changelog

The gateway returns 400 or 422

The client retries the request without tool search.

A context_management error appears behind the gateway

Claude Code resends the request without that field.

Checking the version, updating, connecting to QCode

① Check the version: run claude --version in a terminal; the official install docs say a working installation prints a version number. ② Look at the installation and the settings: run claude doctor; the docs say it prints read-only installation and settings diagnostics without starting a session. ③ Update: run claude update, which the official CLI docs list as the update command. ④ Connect to QCode: follow the QCode docs page on the Claude Code tutorial and set the two environment variables ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN.

On QCode

Following the QCode docs page "Claude Code Complete Tutorial" (updated 2026-10-15), set two environment variables in your terminal: ANTHROPIC_BASE_URL pointing at https://api.qcode.cc/api and ANTHROPIC_AUTH_TOKEN set to an API key that starts with cr_. The same API key works for Claude Code, Codex and other tools.

Frequently asked questions

How do I check that I run 2.1.304?

Run claude --version in a terminal; the official install docs say a working installation prints a version number. For a more detailed look at the installation and the settings run claude doctor, which prints read-only results and starts no session.

What happens on a 400 or 422?

A 400 or 422 from the gateway is retried without tool search (from the official changelog under 2.1.304).

What does 2.1.304 do about context_management: Extra inputs are not permitted?

Under 2.1.304 the official changelog says: context_management: Extra inputs are not permitted errors behind LLM gateways are fixed, and Claude Code now resends the request without that field.

Where can I see the full list of 400 errors?

The site page "Claude Code Gateway Errors 2026: 400 and Beta Header Fixes" lists the common 400 errors behind a gateway one by one with their cause and their fix, so you can read them side by side.

Which two environment variables does QCode need?

Following the QCode docs page "Claude Code Complete Tutorial", ANTHROPIC_BASE_URL points at https://api.qcode.cc/api and ANTHROPIC_AUTH_TOKEN takes an API key that starts with cr_.

How does QCode bill?

Billed per token, and the price per model is listed at qcode.cc/models.

Sources

The changelog and the v2.1.304 release page of the official Claude Code repository (checked 2026-10-20); the official Claude Code install docs and the CLI reference (checked 2026-10-20); the QCode docs pages "Claude Code Complete Tutorial" (updated 2026-10-15) and "Endpoints & API Paths" (updated 2026-10-19).

Connect Claude Code to QCode

Billed per token, and the price per model is listed at qcode.cc/models.

Not sure where to start?

Try it for a week

Week Pack: $4 for $30 of quota, valid 7 days

Use it every day

Starter: $8.57/month, about half the price per $1 of quota compared with the Month Pack ($5 of quota per day)