FAQ
PilotDeck Agent Series
Installation Issues
Installation script error: Node.js version is too low
Phenomenon: The installation script prompts that the Node.js version is lower than 18.
Solution: The installation script automatically attempts to install Node.js 22 via fnm. If automatic installation fails, install manually:
# Use fnm
curl -fsSL https://fnm.vercel.app/install | bash
fnm install 22
fnm use 22
# Or use nvm
nvm install 22
nvm use 22
# Verify version
node --version # should >= v18
The installation script reports an error: git is not installed
Phenomenon: Prompt git is not installed.
Solution: Install the Xcode command line tools:
xcode-select --install
pilotdeck command is not available
Phenomenon: After the installation is complete, enter in the terminal pilotdeck Prompt command not found.
Solution:
- Check if it's in PATH:
which pilotdeck
ls -la /usr/local/bin/pilotdeck
ls -la ~/.local/bin/pilotdeck
- If linked to
~/.local/bin, make sure the directory is in PATH:
# Add to ~/.zshrc or ~/.bashrc
export PATH="$HOME/.local/bin:$PATH"
source ~/.zshrc
- Create link manually:
ln -sf ~/.pilotdeck/app/ui/server/cli.js /usr/local/bin/pilotdeck
npm install failed
Phenomenon: A network error or permission error occurred when installing dependencies.
Solution:
# Clear cache and try again
npm cache clean --force
cd ~/.pilotdeck/app
rm -rf node_modules package-lock.json
npm install
# If it is a network problem, you can set the npm mirror
npm config set registry https://registry.npmmirror.com
npm install
Desktop Application Issues
Double-click PilotDeck.app crashes/cannot start
Phenomenon: macOS prompts "Cannot start PilotDeck application" and the window disappears in a flash.
Reason: DMG received through sandbox IM such as Feishu and WeChat will be added in macOS 14+ com.apple.provenance Extended attributes cause Gatekeeper to refuse execution.
Solution:
#Method 1: Run the repair script
bash install-pilotdeck.sh
#Method 2: Manually clear extended attributes
xattr -cr /Applications/PilotDeck.app
open /Applications/PilotDeck.app
DMGs downloaded directly from the browser or transferred via AirDrop do not have this issue.
codesign --verify reports valid but still fails to start
Description: This is normal.com.apple.provenance The restriction occurs at the Gatekeeper execution policy layer, not the signature verification layer. The signature itself is valid, but the execution policy denies executables from low-trust sources.
Use xattr -cr Clearing the extended attributes solves the problem. This operation is safe - Apple's notarize ticket is stored in Contents/CodeResources file, not extended attributes.
Configuration Issues
Startup error: missing_provider / missing_model
Phenomenon: When starting, it prompts that provider or model is not found.
Solution: Check agent.model The format and corresponding definition:
# ❌ Error: provider name mismatch
agent:
model: anthropic/claude-sonnet-4-5 # provider id is "anthropic"
model:
providers:
anthropic-main: # The id here is "anthropic-main"
...
# ✅ Correct: Be consistent
agent:
model: anthropic-main/claude-sonnet-4-5
model:
providers:
anthropopic-main:
models:
claude-sonnet-4-5:
...
Startup error: invalid_api_key_ref
Phenomenon: Prompt API Key environment variable is not set.
Solution:
# Check whether environment variables are set
echo $ANTHROPIC_API_KEY
# Set environment variables
export ANTHROPIC_API_KEY="your-key-here"
# It is recommended to write shell profile to take effect permanently
echo 'export ANTHROPIC_API_KEY="your-key-here"' >> ~/.zshrc
source ~/.zshrc
Or write it directly in the configuration (not recommended for production environments):
model:
providers:
anthropopic-main:
apiKey: sk-ant-api03-xxxxx #Write plain text
Configuration modification does not take effect
Reason: If the modification is pilotdeck.yaml, the hot reload mechanism will automatically load the new configuration. But ongoing requests still use the old configuration.
Solution:
- Wait for the current request to complete before new requests use the new configuration
- If it still doesn't work, restart
pilotdeck server - Check the server log for configuration verification errors
PILOT_HOME environment variable is invalid
Note: PILOT_HOME Must be set before startup and cannot be written in YAML configuration file.
# ✅ Correct: set through environment variables
export PILOT_HOME=/custom/path
pilotdeck server
# ❌ Error: cannot be set in YAML
# There is no pilotHome field in pilotdeck.yaml
Runtime Issues
Model request timeout
Phenomenon: Agent responds very slowly or times out.
Troubleshooting:
- Check network reachability to the model Provider:
curl -I https://api.anthropic.com
- Increase the timeout:
model:
providers:
anthropopic-main:
timeoutMs: 300000 # 5 minutes
- If using a proxy, make sure the proxy is configured correctly:
export HTTP_PROXY=http://your-proxy:port
export HTTPS_PROXY=http://your-proxy:port
Router Fallback triggers frequently
Phenomenon: Frequent occurrence in logs pilotdeck_router_fallback event.
Troubleshooting:
- The main Provider may encounter throttling, check API usage
- Check network connection stability
- Adjust Transient Retry configuration to reduce unnecessary Fallback:
router:
transientRetry:
enabled: true
maxAttempts: 3
baseDelayMs: 2000
pilotdeck tui error: requires an interactive terminal
Phenomenon: Run in non-TTY environments (such as CI, pipelines, IDE built-in terminal, etc.) pilotdeck tui An error occurred.
Solution: TUI mode requires an interactive terminal. Use the following alternatives:
- Run in a real terminal (e.g. macOS Terminal, iTerm2)
- Using the web UI:
pilotdeck serverPost-browser access - Using CLI mode:
pilotdeck "your message"
Cron command error: requires a running pilotdeck server
Phenomenon: run pilotdeck cron list Report an error.
Solution: The Cron subcommand requires a connection to a running Gateway Server:
# Start the server in another terminal first
pilotdeck server
# Then run the cron command
pilotdeck cron list
Memory cannot retrieve relevant content
Troubleshooting:
- Confirm Memory is enabled:
memory:
enabled: true
- Check if the memory data directory has contents:
ls ~/.pilotdeck/memory/
- Memory needs to accumulate enough dialogue for effective retrieval. The first few conversations for a new project may have no matching results (diagnostic message
memory_context_empty), this is normal. - Check
retrievalMode: If set toexplicit, the memory is retrieved only when explicitly requested by the user.
WebSocket connection failed
Troubleshooting:
- Confirm that the server is running:
curl http://127.0.0.1:18789
- Check whether the port is occupied:
lsof -i :18789
- Check the authentication token:
cat ~/.pilotdeck/server-token
- If using a reverse proxy, ensure that WebSocket upgrade requests are forwarded correctly.
Logging and Diagnostics
View server Logs
Server logs are output directly to standard output. Common log prefixes:
| prefix | Source |
|---|---|
[always-on] | Always-On Discovery module |
[cron] | Cron scheduled task module |
[PilotDeck] | Router retry/fallback information |
[runtime] | Close process information |
Configuration Diagnostics
Configuration issues at startup will be output as diagnostic messages:
[config] warning: deprecated field "agent.fallbackModel", migrate to "router.fallback.default"
[config] error: missing_provider "nonexistent" referenced by agent.model
If you encounter a problem that cannot be solved, it is recommended to collect the following information and submit an issue:
node --versionoutput~/.pilotdeck/pilotdeck.yamlContent (desensitized API Key)- Server startup log
- Operating system version