Wafer CLI
The Wafer CLI is a powerful command-line tool for GPU kernel development, profiling, and optimization. It provides access to AI-powered assistance, performance analysis tools, and remote GPU infrastructure.Installation
Install from thewafer-ai/wafer monorepo on GitHub (SSH), or from a local checkout.
- uv (private git)
- Monorepo editable
Command Groups
The Wafer CLI organizes commands into logical groups:Kernel Development
Commands for developing and testing GPU kernels:
wafer agent— AI assistant for optimizationwafer evaluate— Test kernel correctnesswafer baseline— Discover PyTorch kernel dispatchwafer roofline— Performance analysis
Profiling
GPU profiling and trace analysis:
wafer nvidia— NVIDIA profiling toolswafer amd— AMD profiling toolswafer compare— Cross-platform comparison
Infrastructure
Remote GPU access and workspaces:
wafer workspaces— Cloud GPU workspaceswafer config targets— GPU target management
Configuration
Setup and authentication:
wafer auth— Authenticationwafer config— Configuration management
Basic Usage
Get Help
Common Workflows
Ask the AI agent about GPU optimization:Global Options
| Option | Description |
|---|---|
--version | Show CLI version |
--help | Show help for any command |
Environment Variables
| Variable | Description |
|---|---|
WAFER_API_KEY | API key for Wafer services |
ANTHROPIC_API_KEY | Direct API key for agent (bypasses proxy) |
Next Steps
Authentication
Set up authentication to access all features.
AI Agent
Learn to use the AI assistant for kernel optimization.
Kernel Evaluation
Test and benchmark your kernel implementations.
Workspaces
Access remote GPUs for development.