# Apertis Changelog: 2.2.41 — System Update

Canonical page: https://apertis.ai/changelog/2.2.41
Markdown mirror: https://apertis.ai/changelog/2.2.41.md
Version: 2.2.41
Title: System Update
Published: 2026-04-06
Category: feature

Add local token estimation for Claude Code CLI

## Highlights

- the missing /v1/messages/count\_tokens endpoint was causing Claude Code CLI to crash on startup.

## Details

We've just shipped a fix that implements this endpoint. It performs local token estimation, so it returns a valid {"input_tokens": N} response without any additional latency. 

The endpoint supports:
- String and structured content block messages
- System prompts
- Tool definitions

The fix is resolved and on Live. Claud Code CLI should start normally against the Apertis API.

**Enjoy it.**
