Claude Code

Troubleshooting

Diagnose Passion8 authentication, Base URL, models, settings, MCP, hooks, permissions, caching, and safe mode.

First confirm requests actually reach Passion8, then investigate models, settings, MCP, hooks, and permissions. Do not change many settings at once.

For installation, PATH, login, and OAuth, see Installation troubleshooting. For HTTP/API failures, 500/529, limits, large requests, and model errors, see Error reference. For unloaded settings, hooks, MCP, or memory, see Configuration debugging.

#Quick diagnosis

SymptomCheck firstAction
401 or unauthorizedANTHROPIC_AUTH_TOKENCheck complete, active key and account status; see error reference
Connection or path errorANTHROPIC_BASE_URLUse https://passion8.cc without /v1
Model not foundModel IDSelect an available Claude model with /model
Command not foundInstallation and PATHCheck claude --version; check Node/npm only for installations that require them
Settings ignoredWrong file or invalid JSONclaude doctor and /config
Hooks do not triggerMatcher or locationInspect /hooks
MCP disconnectedScope, trust, OAuth, timeout/mcp and claude mcp list
Repeated permission promptsConflicting allow/ask/denyInspect /permissions sources
Slow first turnCache missCheck model, effort, MCP changes, and upgrades
429, 529, or request too largeLimits, capacity, payloadReduce concurrency, split tasks, keep model/effort stable

A common endpoint mistake: Claude Code uses https://passion8.cc, not https://passion8.cc/v1.

#Minimal connectivity test

Run from a clean directory:

ANTHROPIC_BASE_URL="https://passion8.cc" \
ANTHROPIC_AUTH_TOKEN="sk-YOUR_PASSION8_API_KEY" \
claude -p "Reply only with ok"

If it works, basic key and network connectivity are functioning. Return to the project and inspect .claude, MCP, hooks, and permissions.

#Clean configuration directory

When local configuration may be interfering:

mkdir -p /tmp/claude-clean
CLAUDE_CONFIG_DIR=/tmp/claude-clean \
ANTHROPIC_BASE_URL="https://passion8.cc" \
ANTHROPIC_AUTH_TOKEN="sk-YOUR_PASSION8_API_KEY" \
claude -p "Test the clean configuration"

If this works, common problems in the original configuration include:

  • Incorrect user settings.
  • Invalid project JSON.
  • Failing hook commands.
  • An MCP server waiting for authentication or stuck on startup.
  • Overly broad permission denials.
  • Plugins changing tools or system instructions.

#Safe mode

Safe mode disables most customizations to isolate configuration issues:

claude --safe-mode

It disables:

  • CLAUDE.md.
  • Skills and plugins.
  • Hooks.
  • MCP servers.
  • Custom commands and agents.
  • Output styles and workflows.
  • Custom themes, status line, and file suggestions.

Authentication, models, built-in tools, and permissions remain active. Managed policy may still apply.

#Settings do not apply

CheckCommand/action
Installation/login/config diagnosticsclaude doctor
Current session/status
Settings UI/config
Loaded context/context all
Hooks/hooks
MCP/mcp
Permission sources/permissions
Output style unchanged/clear or a new session after changing outputStyle
Slow status lineInspect statusLine.command runtime
Missing OTel dataCheck telemetry enablement, exporter, endpoint, and headers

Common locations:

ContentLocation
User settings~/.claude/settings.json
Project settings.claude/settings.json
Local settings.claude/settings.local.json
Local/user MCP~/.claude.json
Project MCP.mcp.json
Project memoryCLAUDE.md or .claude/CLAUDE.md

#MCP diagnosis

claude mcp list
claude mcp get <name>
claude mcp login <name>
SymptomPossible cause
Pending approvalProject .mcp.json needs workspace trust
OAuth failureReauthenticate the remote server
stdio startup failureMissing command, environment, or -- separator
Output too longNarrow the query or adjust MAX_MCP_OUTPUT_TOKENS
Tools fail on custom gatewayTool-search setting or unsupported passthrough fields

#Hook diagnosis

SymptomCheck
Never triggersRelevant settings loaded in /hooks
Only some edits triggerCorrect tool-name regex such as EditWrite
Command not foundAbsolute path or CLAUDE_PROJECT_DIR
Blocking ineffectivepermissionDecision inside hookSpecificOutput
Slow executionNarrow the trigger with if

Empty output is not approval; it continues the normal permission flow.

#Permission diagnosis

SymptomCause
Still asks after allowHigher-priority ask or deny matches
Allow cannot override broad denyDeny always wins
Compound Bash command promptsNot every subcommand passed
Read path misses/path is relative to settings source, not filesystem root
MCP rule missesUse mcp__server__tool

See Permissions.

#Unexpected caching or cost

SymptomExplanation
Slow turn after switching modelsModel participates in cache identity
Slow after changing effortEffort can alter cache identity
Slow after MCP changesTool definitions may change the prompt prefix
More cache creation after compactConversation replaced by a summary
cache_read_input_tokens always zeroShort prompt, changing prefix, or unsupported provider/gateway

See Prompt caching.

#Official references

Support

Need help?

For setup, billing, or model issues, email us. Check the status page for uptime.

WeChat / QQ support is available at the bottom right.