Skip to main content
Back

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:

Bash
# 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:

Bash
xcode-select --install
pilotdeck command is not available

Phenomenon: After the installation is complete, enter in the terminal pilotdeck Prompt command not found.

Solution:

  1. Check if it's in PATH:
Bash
which pilotdeck
ls -la /usr/local/bin/pilotdeck
ls -la ~/.local/bin/pilotdeck
  1. If linked to ~/.local/bin, make sure the directory is in PATH:
Bash
# Add to ~/.zshrc or ~/.bashrc
export PATH="$HOME/.local/bin:$PATH"
source ~/.zshrc
  1. Create link manually:
Bash
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:

Bash
# 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:

Bash
#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
Tip · Tip

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:

YAML
# ❌ 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:

Bash
# 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):

YAML
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:

  1. Wait for the current request to complete before new requests use the new configuration
  2. If it still doesn't work, restart pilotdeck server
  3. 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.

Bash
# ✅ 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:

  1. Check network reachability to the model Provider:
Bash
curl -I https://api.anthropic.com
  1. Increase the timeout:
YAML
model:
providers:
anthropopic-main:
timeoutMs: 300000 # 5 minutes
  1. If using a proxy, make sure the proxy is configured correctly:
Bash
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:

  1. The main Provider may encounter throttling, check API usage
  2. Check network connection stability
  3. Adjust Transient Retry configuration to reduce unnecessary Fallback:
YAML
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 server Post-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:

Bash
# Start the server in another terminal first
pilotdeck server

# Then run the cron command
pilotdeck cron list
Memory cannot retrieve relevant content

Troubleshooting:

  1. Confirm Memory is enabled:
YAML
memory:
enabled: true
  1. Check if the memory data directory has contents:
Bash
ls ~/.pilotdeck/memory/
  1. 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.
  2. Check retrievalMode: If set to explicit, the memory is retrieved only when explicitly requested by the user.
WebSocket connection failed

Troubleshooting:

  1. Confirm that the server is running:
Bash
curl http://127.0.0.1:18789
  1. Check whether the port is occupied:
Bash
lsof -i :18789
  1. Check the authentication token:
Bash
cat ~/.pilotdeck/server-token
  1. 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:

prefixSource
[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:

Plain Text
[config] warning: deprecated field "agent.fallbackModel", migrate to "router.fallback.default"
[config] error: missing_provider "nonexistent" referenced by agent.model
Tip · Tip

If you encounter a problem that cannot be solved, it is recommended to collect the following information and submit an issue:

  1. node --version output
  2. ~/.pilotdeck/pilotdeck.yaml Content (desensitized API Key)
  3. Server startup log
  4. Operating system version

Developer Showcase

View all →