Skip to content

Claude Code via Enterprise account seeing degraded responses, am I misconfigured? #245

Description

@Mayank-Jain-1

Title

Claude Code via Enterprise account — seeing degraded responses, am I misconfigured?

Body

Hi @dwgx! First off, thank you for this awesome project — it's been really helpful. 🙏

I'm using WindsurfAPI to run Claude Code through my Windsurf Enterprise account (Cascade/LS path, since DEVIN_CONNECT doesn't work with Enterprise sk-ws-01-* tokens).

It mostly works, but I'm frequently seeing degraded behavior from Claude Code that I don't see on direct Anthropic API:

  • Forgetting the task — mid-conversation it starts asking "What would you like me to do?" as if it lost all context
  • Claiming the project is empty — says there are no files when the directory is full of them
  • Not using tools — responds with filler text instead of actually calling Read/Glob/Edit (logs show emulateTools=true but parser found 0 tool_calls)
  • Occasional "API Error: Server error mid-response" — stream dying partway through, especially with Opus thinking models

I wanted to check — am I doing something wrong here? Are there specific guidelines or a recommended config for running Claude Code through WindsurfAPI? Any tunables I should be setting that I'm not?

Here's my current .env (beyond the defaults):

HOST=0.0.0.0
CASCADE_REUSE_BY_CALLER=1
CASCADE_POOL_MAX=5
CASCADE_REUSE_HASH_SYSTEM=0
STICKY_SESSION_ENABLED=1
WINDSURFAPI_SINGLE_TENANT_CACHE=1
CASCADE_MAX_WAIT_MS=900000
CASCADE_WARM_STALL_THINKING_MS=240000
WINDSURFAPI_DEGRADED_SERVE=1
WINDSURFAPI_RL_BURST_MS=15000
WINDSURFAPI_RL_CLIENT_BACKOFF_FLOOR_MS=30000
MAX_TOKENS=16384
RESPONSE_STORE_ENABLED=1

Setup: Windows 11, WindsurfAPI v3.9.19, Enterprise account, Claude Code.

Any advice would be greatly appreciated — happy to share logs if that helps! Thanks again for the project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions