CW Development Environment
Set up a CoreWeave development environment with required tools and manage local CKS (CoreWeave Kubernetes Service) clusters.
When to Use This Skill
Use this skill when:
- Setting up a new development machine
- Installing CoreWeave development tools
- Configuring authentication for BSR/GitHub
- Starting or stopping a local CKS cluster for development
- Troubleshooting development environment issues
Instructions
Step 1: Understand the Request
Determine what the user needs:
- Full setup: Install all tools and configure auth
- Auth only: Just configure authentication
- Specific tools: Install only certain tools
- CKS cluster: Start or stop local Kubernetes cluster
Step 2: Full Development Setup
IMPORTANT: This installs software on the user's machine. Get confirmation before running.
Complete setup (auth + apps):
cw dev init
This runs two stages:
auths- Authenticate with BSR and GitHubapps- Install development tools
Available tools installed:
| Tool | Purpose |
|---|---|
| devspace | Kubernetes development tool |
| direnv | Environment variable management |
| git | Version control |
| helm | Kubernetes package manager |
| homebrew | macOS package manager |
| kind | Kubernetes in Docker |
| kubectl | Kubernetes CLI |
| nix | Reproducible package manager |
| orbstack | Fast container runtime (macOS) |
| teleport | Secure infrastructure access |
Step 3: Selective Setup
Authentication only:
cw dev init -s auths
Apps only:
cw dev init -s apps
Specific apps:
cw dev init -s apps -i helm,kubectl,kind
Exclude certain apps:
cw dev init -e orbstack,homebrew
Step 4: Local CKS Cluster
For local Kubernetes development against CKS:
Prerequisites:
- Go installed
- SSH access to appenheimer repo
- Run
cw dev initfirst
Start cluster:
cw dev cks --start
This:
- Clones the appenheimer repository
- Configures direnv
- Starts the local CKS cluster
After starting:
cd appenheimer
source ~/.bashrc # or ~/.zshrc
Stop cluster:
cw dev cks --stop
This runs make clean in the appenheimer directory.
Step 5: Verify Setup
After setup, verify tools are working:
# Check installed tools
kubectl version --client
helm version
kind version
# Check auth
gh auth status
Common Workflows
New Engineer Setup
# 1. Install cw CLI
gh api -H 'Accept: application/vnd.github.v3.raw' \
"repos/coreweave/cw-eng-cli/contents/scripts/install.sh" | bash
# 2. Run full dev setup
cw dev init
# 3. Start local cluster (if needed)
cw dev cks --start
Minimal Setup (Just Kubernetes Tools)
cw dev init -s apps -i kubectl,helm,kind
Reset Authentication
If auth is broken:
rm -rf ~/.cw/cli/gh.json
cw dev init -s auths
Troubleshooting
Tool installation fails:
- Check if Homebrew is working:
brew doctor - Check permissions on install directories
- Try installing individual tools:
cw dev init -s apps -i <tool>
CKS cluster won't start:
- Ensure Go is installed:
go version - Check SSH access to appenheimer
- Verify Docker/OrbStack is running
Auth issues:
rm -rf ~/.cw/cli/gh.json
cw dev init -s auths
View logs:
cat ~/.cw/cli/cli.log
Platform Notes
macOS:
- OrbStack is recommended over Docker Desktop
- Homebrew is used for package management
Linux:
- Some tools may use Nix instead of Homebrew
- OrbStack is macOS-only
CI/CD:
- Set
CI=trueto disable interactive prompts - Use
GITHUB_TOKENenv var for auth
