CLI
Troubleshooting
Common issues, error codes, and debugging steps.
Troubleshooting
Solutions to common issues you might encounter while using Sypha CLI.
Common Issues
"Command not found: sypha"
Symptoms:
- Running
syphareturnscommand not found - The installation appeared to succeed
Solution:
- Ensure your global npm bin directory is in your
$PATH. - Run
npm bin -gto find the directory. - Add it to your shell profile (
~/.bashrcor~/.zshrc):
export PATH="$(npm bin -g):$PATH"Authentication Errors
Symptoms:
401 Unauthorizederrors- "Invalid API Key" messages
Solution:
- Verify your API key is correct and not expired.
- Ensure the environment variable name matches the provider (e.g.,
ANTHROPIC_API_KEYfor Claude,OPENAI_API_KEYfor GPT). - If using Sypha Enterprise, check that you are logged in via
/login.
Git Integration Failing
Symptoms:
/commitor/addcommands fail- "Not a git repository" error
Solution:
- Sypha requires the current directory to be a git repository. Run
git initif it's a new project. - Ensure you have git installed and available in your
$PATH. - Check permissions on the
.gitdirectory.
Slow Responses
Symptoms:
- AI takes a long time to reply
- Streaming pauses frequently
Solution:
- Check your internet connection.
- Verify that the selected model provider is not experiencing an outage.
- Try switching to a faster model (e.g.,
claude-haiku-3orgpt-3.5-turbo) using/model.
Error Codes
| Code | Error | Description & Fix |
|---|---|---|
E001 | PROVIDER_RateLimit | You have exceeded the rate limit for the provider. Wait a moment or switch keys. |
E002 | CTX_WindowExceeded | The conversation context is too large. Use /condense or start a /new session. |
E003 | FS_PermissionDenied | Sypha cannot write to the file. Check file permissions or use sudo (caution advised). |
E004 | NET_ConnectTimeout | Could not connect to the API. Check your network or proxy settings. |
Debugging
If you are experiencing persistent issues, enable debug mode to see detailed logs.
Enable Debug Mode:
export SYPHA_CLI_DEBUG=trueRun Sypha again, and you will see verbose output indicating network requests, config loading, and internal state changes.
Log File:
Logs are typically written to:
- Mac/Linux:
~/.sypha/cli/logs/sypha.log - Windows:
%USERPROFILE%\.sypha\cli\logs\sypha.log
Getting Help
If you cannot resolve the issue, please reach out to our support channels.