Bugs
Triage

Bao fails with "io_error" on "Claude Code (this computer)" provider; the proxy fails before launching Claude Code

Below is a bug report Claude put together

What happens

Every message to Bao in the Any app fails with:

LlmError: llm provider returned 500: {"error":{"code":"io_error","message":"the local AI harness failed (io_error)","type":"api_error"}}

It retries three times, a few seconds apart, then gives up. This worked until about 2 November. On 5 November and today (7 November) every attempt fails.

Setup

- Windows (x64), Any server v0.3.7 (commit 1411ec1b), run by the app as any run --addr 127.0.0.1:31310 --mode managed

- Provider: "Claude Code (this computer)", model Sonnet 5.5

- Tiers show openai-compat · claude/sonnet · 127.0.0.1:26524 (backend anyai)

- Claude Code 2.1.318, installed in %USERPROFILE%\.local\bin, signed in; claude -p "say hi" works in a terminal

What I found

- any-desktop is listening on 26524 and answers (401 without the key, as expected).

- When I send hand-written requests straight to 127.0.0.1:26524/v1/chat/completions with the proxy's token, they all work. I tried about 30: a system prompt with several turns, tool definitions, a 62 KB, 150 KB and 400 KB prompt, streaming, JSON-format replies, different headers (chunked, Expect, gzip, HTTP/1.0) and Unicode. Ordinary 400s only for unusual requests (a ~40 KB response schema, parallel_tool_calls with tools, a 1.2 MB body).

- For my requests the app launches claude.exe auth status --json and then claude.exe -p --output-format stream-json ..., and the log shows any_ai::adapters::claude: Claude generation attempt started.

- For Bao's requests, the connection reaches the proxy and the log shows request failed code="io_error". **No claude.exe process is launched at all** (I watched the app's child processes), and there is no "attempt started" line. So the proxy fails before it gets to Claude Code.

- A wrong or missing key gives a clean 401 invalid_api_key, so authentication isn't the problem.

**Log (agent.log), one message**

```

INFO anyrt::serve: conversation started: "<my message>"

WARN any_app_lib::ai_proxy: local AI proxy: request failed code="io_error" (+2.3 s)

WARN any_app_lib::ai_proxy: local AI proxy: request failed code="io_error" (+3.7 s)

WARN any_app_lib::ai_proxy: local AI proxy: request failed code="io_error" (+8.2 s)

```

What I couldn't do

I tried to capture Bao's actual request with a local relay on another port. Any correctly refused: secret_host_mismatch: credential ref "llm.key.anyai" is bound to 127.0.0.1:26524. In Settings → Credentials, "Edit" only replaces the key, and the menu only offers "Delete", so there's no way to change the allowed hosts.

Questions

1. When does the proxy return io_error before it spawns Claude Code?

2. Could the log include the underlying error behind io_error? Right now it says only the code.

3. Is there a supported way to see what Bao sends to the provider?

1 Comment

Sign in to comment

T
tolya·11/24/2026

Hi Jesse! it should be fixed in the next release, please check after update. thanks! 🙏