Installation
Installation Guide
Installation
Get up and running with Sypha CLI in under 5 minutes.
Prerequisites
Sypha CLI requires Node.js version 18 or higher. We recommend using Node.js 20 or later for the best experience.
Verify your Node.js version:
node --versionIf you need to install or upgrade Node.js, visit nodejs.org or use a version manager like nvm.
Installation Options
Option 1: Global Installation (Recommended)
Install Sypha CLI globally to use it from anywhere on your system:
npm install -g sypha-shellOnce installed, launch Sypha in any directory:
syphaOption 2: NPX (No Installation)
Run Sypha CLI without installing it globally:
npx sypha-shellThis is useful for trying Sypha CLI or running it in CI/CD environments.
Option 3: From Source
For development or customization, build from source:
# Clone the repository
git clone https://github.com/your-org/sypha-cli-standalone
cd sypha-cli-standalone/cli
# Install dependencies
pnpm install
# Build the project
pnpm run build
# Link globally
npm link
# Now you can use sypha
syphaFirst Run Setup
When you launch Sypha CLI for the first time, you'll be greeted with a welcome screen:
╔═══════════════════════════════════════════════════════════╗
║ Welcome to Sypha CLI ║
║ ║
║ Enterprise AI-powered terminal for developers ║
║ ║
║ 40+ AI Providers | Auto-save | Session Management ║
╚═══════════════════════════════════════════════════════════╝Authentication Setup
If you're using the Sypha provider (intelligent routing), you'll need to authenticate:
# Launch Sypha
sypha
# You'll be prompted to authenticate
# Follow the on-screen instructions to:
# 1. Visit the authentication URL
# 2. Enter your email
# 3. Verify your account
# 4. Return to the CLIFor other providers, you'll need to set up API keys (see Configuration section below).
Selecting Your First Model
After authentication, choose your AI model:
# List available models
/model list
# Select a model
/model claude-sonnet-4-5
# Or switch provider first
/provider anthropic
/model claude-sonnet-4-5Not sure which model to choose? We recommend Claude Sonnet 4.5 for a great balance of capability, speed, and cost.
Configuration
API Keys
Sypha CLI supports multiple providers. Set up API keys for the providers you want to use:
# Anthropic (Claude)
export ANTHROPIC_API_KEY="sk-ant-..."
# OpenAI (GPT)
export OPENAI_API_KEY="sk-..."
# Google (Gemini)
export GEMINI_API_KEY="..."
# Mistral AI
export MISTRAL_API_KEY="..."
# DeepSeek
export DEEPSEEK_API_KEY="..."Add these to your shell profile (~/.bashrc, ~/.zshrc, etc.) to persist them across sessions.
Configuration File
Sypha stores configuration in ~/.sypha/cli/config.json:
{
"provider": "anthropic",
"model": "claude-sonnet-4-5",
"theme": "Sypha Blue",
"autoSave": true,
"autoSaveInterval": 5000,
"analytics": {
"enabled": true,
"track_usage": true
},
"gitIntegration": {
"enabled": true,
"autoCheckpoint": true
}
}Edit configuration:
/configThis opens your default editor with the configuration file.
Environment Variables
Advanced configuration options via environment variables:
# API Configuration
export SYPHA_API_BASE_URL="https://api.sypha.ai"
export SYPHA_API_KEY="your-api-key"
# Analytics
export SYPHA_CLI_ANALYTICS_ENABLED=true
export SYPHA_CLI_ANALYTICS_DEBUG=false
# Session Management
export SYPHA_SESSION_AUTO_SAVE=true
export SYPHA_SESSION_SAVE_INTERVAL=5000
# Git Integration
export SYPHA_GIT_INTEGRATION_ENABLED=true
# Debug Mode
export SYPHA_CLI_DEBUG=falseQuick Start
Now that Sypha is installed, let's start your first session:
Interactive Mode
Launch Sypha and start a conversation:
syphaType your request at the prompt:
> Help me refactor this authentication moduleSypha will analyze your codebase, understand the context, and help you refactor.
Direct Mode
Execute a task directly without entering interactive mode:
sypha "Add unit tests to utils.js"Sypha will complete the task and exit.
Shell Mode
Run shell commands directly:
# In Sypha CLI, prefix with !
> ! git status
# Or enter shell mode
> /mode shellKeyboard Shortcuts
Essential shortcuts to know:
| Shortcut | Action |
|---|---|
Ctrl+Y | Toggle Auto-Edit mode (auto-approve file changes) |
Shift+Tab | Quick switch to Plan mode |
Ctrl+D | Show TODOs |
Ctrl+E | View reasoning history |
Ctrl+X | Cancel streaming response |
Ctrl+C | Exit Sypha CLI |
Verify Installation
Check that Sypha is installed correctly:
# Check version
sypha --version
# View help
sypha --help
# List available commands
sypha
/helpYou should see output showing the version and available options.
Updating Sypha CLI
Keep Sypha up to date with the latest features and fixes:
# If installed globally
npm update -g sypha-shell
# If installed from source
cd sypha-cli-standalone/cli
git pull
pnpm install
pnpm run buildTroubleshooting
Command Not Found
If you get command not found: sypha after global installation:
- Check npm global bin path:
npm bin -g- Ensure the path is in your
$PATH:
echo $PATH- Add npm global bin to your PATH in
~/.bashrcor~/.zshrc:
export PATH="$(npm bin -g):$PATH"- Reload your shell:
source ~/.bashrc # or ~/.zshrcPermission Errors
If you encounter permission errors during installation:
# Use sudo (not recommended)
sudo npm install -g sypha-shell
# Better: Fix npm permissions
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
export PATH=~/.npm-global/bin:$PATHAPI Key Issues
If models aren't available:
- Verify API keys are set:
echo $ANTHROPIC_API_KEY- Check provider configuration:
/provider list- Test API key validity by making a simple request
Session Not Saving
If auto-save isn't working:
# Check session status
/session show
# Manually save
/session save
# Verify configuration
/config
# Ensure "autoSave": trueDebug Mode
Enable debug mode for troubleshooting:
export SYPHA_CLI_DEBUG=true
export SYPHA_CLI_ANALYTICS_DEBUG=true
syphaThis will show detailed logs of what Sypha is doing.
Uninstalling
To remove Sypha CLI:
# If installed globally
npm uninstall -g sypha-shell
# Remove configuration (optional)
rm -rf ~/.syphaNow that you're set up, learn the Three Core Flows to become productive with Sypha CLI immediately.