Feature
2.2.41 — System Update
Add local token estimation for Claude Code CLI
the missing /v1/messages/count_tokens endpoint was causing Claude Code CLI to crash on startup.
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.