Environment Doctor
devx doctor is a built-in environment health check that audits, installs, and configures all prerequisites. New developers should run it before anything else.
Quick Overview
devx doctor # full audit — tools, credentials, feature readiness
devx doctor install # install missing tools
devx doctor auth # guided credential setupdevx doctor
Runs a full environment audit with four sections:
System Info
Detects your OS, architecture, and package manager.
CLI Tools
Checks all tools that devx depends on. Each tool displays its feature area inline, so you immediately know why it's needed:
| Tool | Feature Area | Purpose |
|---|---|---|
podman, docker, orb, limactl, colima | Core VM | VM backend providers |
cloudflared | Tunnels | Cloudflare tunnel daemon |
butane | VM Init | Ignition config compiler |
gh | Sites, Preview | GitHub CLI |
aws | State Replication | S3 state sharing |
gcloud | Vault, State Replication | GCP secrets + GCS state sharing |
nerdctl | Container Runtime | Container CLI for Lima/Colima |
op, bw | Vault | Secret manager CLIs |
mutagen | File Sync | Hot reloading engine |
kubectl | Bridge | Hybrid K8s bridge |
Credentials
Verifies all authentication sessions and API tokens:
- Cloudflare API Token — checks
.envforCLOUDFLARE_API_TOKENorCF_API_TOKEN - cloudflared login — checks for
~/.cloudflared/cert.pem - GitHub CLI — runs
gh auth statusand checks foradmin:orgscope - Tailscale — detects if a VM exists (Tailscale is configured inside it during
vm init) - CF Tunnel Token — checks
.envforCF_TUNNEL_TOKEN - Vault credentials — checks
op,bw, orgcloudauth status (only if installed)
AI Landscape
Verifies local AI inference providers, cloud API keys, and installed coding agents:
- Local Providers — checks if Ollama or LM Studio are installed and running
- Cloud Providers — checks if
OPENAI_API_KEY,ANTHROPIC_API_KEY, orGEMINI_API_KEYare exported - Coding Agents — detects installed CLI agents like Claude Code (
claude), OpenCode (opencode), or Codex (codex) - Actionable Tips — provides contextual tips (e.g., suggesting
ollama launch claudeif you have local compute but no cloud API key)
Feature Readiness
Maps tool + credential requirements to devx commands, telling you exactly which features are operational:
✓ devx vm init ready
✓ devx tunnel expose ready
✓ devx sites init ready
✓ devx db spawn ready
⚠️ devx config pull needs: op, bw, or gclouddevx doctor install
Detects missing tools and installs them using your system's package manager.
devx doctor install # install missing core tools only
devx doctor install --all # include tools for optional features too
devx doctor install -y # auto-confirm (no prompts)The command shows you the exact install plan before executing:
📦 Install Plan
Package Manager: brew
→ Butane VM Init
brew install butane
→ GitHub CLI Sites, Preview
brew install gh
Install 2 tool(s)? [y/N]Supported Package Managers
| OS | Package Manager |
|---|---|
| macOS | Homebrew (brew) |
| Linux | apt, dnf, pacman, yum, apk, nix |
devx doctor auth
Walks through authenticating each required service interactively. Steps that are already configured are automatically skipped.
devx doctor auth🔑 devx doctor auth — Credential Setup
[1/3] cloudflared login ✅ ~/.cloudflared/cert.pem
[2/3] GitHub CLI ✅ authenticated (admin:org ✓)
[3/3] Cloudflare API Token ❌ not found
Prompts for token and saves to .env
Create an API token at: https://dash.cloudflare.com/profile/api-tokens
Required permissions: Zone:DNS:Edit, Zone:Zone:Read
Paste your Cloudflare API Token: _Auth Steps
| Step | What It Does | When Needed |
|---|---|---|
cloudflared login | Opens browser to authenticate with Cloudflare | vm init, tunnel creation |
gh auth login | Authenticates GitHub CLI with admin:org scope | sites init/status |
| Cloudflare API Token | Prompts for token and saves to .env | sites init, DNS operations |
JSON Output
All doctor commands support --json for AI agent consumption:
devx doctor --json # full audit report
devx doctor install --json # install plan (without executing)
devx doctor auth --json # auth step status