⌨️API_TIMEOUT_MS
Also known as API_TIMEOUT_MS environment variable
It sets how long an API request waits for its reply to start.
Think of it like
It is like how long you wait for someone to pick up the phone.
Example
Emma's requests go through a slow company proxy and keep timing out. She raises the wait, and they get through.
Why it matters
On a slow network, a short wait turns a working request into an error.
Definition
Example code
bash
export API_TIMEOUT_MS=900000
claudeCommon mistake
Key takeaways
- 1Wait for the start. Not the whole reply.
- 2Default 10 minutes. 600,000.
- 30 removes it. 2.1.305 or later.