synpick
v1.6.3
Published
Interactive model selection tool for Claude Code with Synthetic AI models
Maintainers
Readme
Synpick
Interactive model selection tool for Claude Code with Synthetic AI models.
Overview
synpick is a modern TypeScript/Node.js application that provides a seamless interface for selecting and launching Claude Code with various AI models from the Synthetic API.
Features
- Modern TypeScript Stack: Built with TypeScript, Node.js, and npm
- Interactive Model Selection: Rich terminal UI for browsing and selecting models
- Smart Search: Search models by name, provider, or capabilities
- Persistent Configuration: Save your preferred model choices
- Easy Installation:
npm install -g synpick- available on npm registry - System Health: Built-in diagnostic tools
- Well Tested: Comprehensive Jest test suite
- Beautiful UI: Modern React-based terminal interface with Ink
Quick Start
Prerequisites
- Node.js 18+ and npm installed
- Synthetic API key (get one from synthetic.new)
- Claude Code installed (get from claude.com/product/claude-code)
Note: The installer script will automatically configure nvm to use Node.js v24.12.0 if available.
Installation
Option 1: npm Registry (Recommended)
Linux/Windows/macOS:
npm install -g synpickmacOS (if permissions error):
sudo npm install -g synpickAlternative for macOS (permanent fix):
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.zshrc
source ~/.zshrc
npm install -g synpickOption 2: GitHub Release
npm install -g https://github.com/jeffersonwarrior/synpick/releases/download/v1.6.1/synpick-1.6.1.tgzOption 3: One-line Installer
curl -sSL https://raw.githubusercontent.com/jeffersonwarrior/synpick/main/scripts/install.sh | bashOption 4: Clone and Install
git clone https://github.com/jeffersonwarrior/synpick.git
cd synpick
./scripts/install.shImportant:
- npm registry is the recommended installation method
- GitHub releases and install scripts are available as alternatives
- The installer script automatically configures nvm for Node.js v24.12.0 if available
Uninstallation
Option 1: One-line Uninstaller
curl -sSL https://raw.githubusercontent.com/jeffersonwarrior/synpick/main/scripts/uninstall.sh | bashOption 2: Manual Uninstall
# If installed globally via npm
npm uninstall -g synpick
# If installed locally via npm link
npm unlink -g synpick
# Remove configuration and cache
rm -rf ~/.config/synpickInitial Setup
After installation, run the setup wizard:
synpick setupThis will guide you through:
- Configuring your Synthetic API key
- Testing your connection
- Selecting your first model
Basic Usage
After setup, you can start using Synpick:
# Launch with interactive model selection
synpick
# Launch with a specific model
synpick --model "openai:gpt-4"
# Browse and save a default model
synpick model
# Check system health
synpick doctorSee USAGE.md for comprehensive usage documentation.
Advanced Usage
Configuration Options
Synpick stores configuration in ~/.config/synpick/config.json. Key options include:
apiKey: Your Synthetic API keybaseUrl: Synthetic API base URLmodelsApiUrl: Models endpoint URLcacheDurationHours: Model cache duration (1-168 hours, default 24)selectedModel: Last selected modelselectedThinkingModel: Last selected thinking modelfirstRunCompleted: Whether first-time setup has been completedmaxTokenSize: Max token size for Claude Code (1000-200000, default 128000)apiTimeoutMs: HTTP API request timeout in ms (1000-300000, default 30000)commandTimeoutMs: Command execution timeout in ms (1000-60000, default 5000)
Updates
Synpick provides multiple ways to update:
Update via npm (Recommended)
# Update to the latest version
npm update -g synpickAutomatic Update Command
# Check for and install updates from GitHub
synpick updateThe update command:
- Checks GitHub repository for the latest release
- Compares versions using semver (won't downgrade)
- Runs the installer if a newer version is available
Manual Update
# Install specific version from npm
npm install -g [email protected]
# Or from GitHub release
npm install -g https://github.com/jeffersonwarrior/synpick/releases/download/v1.6.1/synpick-1.6.1.tgzCheck Current Version
synpick --versionEnvironment Variables
You can override configuration with environment variables:
export SYNTHETIC_API_KEY="your-api-key"
export SYNTHETIC_BASE_URL="https://api.synthetic.new"
export SYNTHETIC_CACHE_DURATION=24Development
Setup Development Environment
git clone https://github.com/jeffersonwarrior/synpick.git
cd synpick
npm installDevelopment Commands
# Build the project
npm run build
# Run in development mode
npm run dev
# Run tests
npm test
# Run tests with coverage
npm test:coverage
# Lint code
npm run lint
# Format code
npm run format
# Full development cycle
npm run lint && npm test && npm run buildProject Structure
synpick/
├── src/
│ ├── cli/ # CLI commands and parsing (Commander.js)
│ ├── core/ # Application orchestration
│ ├── config/ # Configuration management (Zod)
│ ├── models/ # Data models and API interfaces
│ ├── ui/ # Terminal UI components (Ink)
│ ├── launcher/ # Claude Code launcher
│ ├── api/ # HTTP client (axios)
│ └── utils/ # Shared utilities
├── tests/ # Jest tests
├── scripts/ # Installation and utility scriptsAPI Integration
Synthetic API Endpoints
- Models API:
https://api.synthetic.new/openai/v1/models - Anthropic API:
https://api.synthetic.new/anthropic
Environment Variables for Claude Code
When launching Claude Code, Synpick automatically sets:
ANTHROPIC_BASE_URL=https://api.synthetic.new/anthropicANTHROPIC_AUTH_TOKEN={your_api_key}ANTHROPIC_DEFAULT_*_MODELvariantsCLAUDE_CODE_SUBAGENT_MODEL={selected_model}
Troubleshooting
Recent Fixes (v1.6.1)
This version includes:
- ESM (ES Modules) compatibility - fixed
__dirname is not definedandrequire()errors - Now available on npm registry:
npm install -g synpick - Installer script now configures nvm for Node.js v24.12.0 automatically
- All 227 tests passing across 12 test suites
- Multiple installation options (npm, GitHub, install scripts)
Common Issues
Node.js Version Issues
# Check your Node.js version
node --version
# Upgrade to Node.js 18+ if needed
nvm install 18
nvm use 18PATH Issues
If synpick command is not found after installation:
# Check if local bin directory is in PATH
echo $PATH | grep -o "$HOME/.local/bin"
# Add to PATH (add to your .bashrc, .zshrc, etc.)
export PATH="$PATH:$HOME/.local/bin"Permission Issues
# Fix npm global permissions
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
export PATH=~/.npm-global/bin:$PATHAPI Connection Issues
# Test API connection
synpick doctor
# Clear cache and retry
synpick cache clear
synpick models --refreshGet Help
# Show all commands
synpick --help
# Get help for specific command
synpick models --help
synpick config --help
# Check system health
synpick doctorContributing
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Make your changes
- Run tests and linting:
npm test && npm run lint - Commit your changes:
git commit -m 'Add amazing feature' - Push to the branch:
git push origin feature/amazing-feature - Open a Pull Request
Development Guidelines
- Use TypeScript for all new code
- Follow ESLint and Prettier configurations
- Write tests for new functionality
- Update documentation for API changes
- Ensure compatibility with Node.js 18+
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
- Discord: Join our Discord
- Usage Guide: USAGE.md - Comprehensive command reference
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Synthetic API: https://dev.synthetic.new
