[BUG] Claude Code shows "offline" status despite it outputting a response

Resolved 💬 3 comments Opened Jul 17, 2025 by WarrenZhu050413 Closed Jul 17, 2025

Environment

  • Platform (select one):
  • [Y] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 1.0.53
  • Operating System: Ubuntu 20.04
  • Terminal: bash

Bug Description

Claude Code shows "offline" status despite it outputting a response when connecting to Claude Code through HTTP proxy and SSH remote forwarding in a server that cannot connect to Claude Code natively.

Steps to Reproduce

  1. Configure SSH with remote forwarding: RemoteForward 127.0.0.1:8081 api.anthropic.com:443, then connect to the Remote Server
  2. Start HTTP proxy in a terminal that redirects HTTP requests to 127.0.0.1:8081, the proxy is at 127.0.0.1:8888
  3. Set proxy environment: export https_proxy=http://127.0.0.1:8888, then claude
  4. Observe "offline" status despite proxy setup

Expected Behavior

No "offline" status

Actual Behavior

"offline" status

Additional Context

An example when greeting claude with "hi":

When thinking, shows "offline" status.
<img width="446" height="74" alt="Image" src="https://github.com/user-attachments/assets/f39688df-35a9-4f43-a882-d768f9b42b05" />

Then, there is a correct response:

<img width="252" height="69" alt="Image" src="https://github.com/user-attachments/assets/c0893049-13b9-40d7-86a3-52f9ff97f464" />

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗