Claude Code¶
Claude Code is Anthropic's AI coding assistant.
Prerequisites¶
Install Claude Code CLI¶
Login¶
This creates credentials at ~/.claude/ which Cloud Agent transfers to the VM.
Usage¶
Deploy with Claude Code:
On the VM¶
After SSHing into your VM:
Common Commands¶
# Interactive mode
claude
# Single task
claude "Review this codebase and suggest improvements"
# With specific focus
claude "Write comprehensive tests for the auth module"
Credentials¶
| Location | Path |
|---|---|
| Local | ~/.claude/ |
| VM | ~/.claude/ |
Best Practices¶
Long-Running Tasks¶
Claude excels at complex, long-running tasks:
# Start a big task
claude "Migrate this Express app to Fastify, updating all routes and middleware"
# Detach from tmux
# Press Ctrl+B then D
# Check back later
ca ssh
Code Review¶
Documentation¶
Troubleshooting¶
"Claude not logged in"¶
"Claude CLI not found" on VM¶
Session Expired¶
Claude sessions may expire. Re-login on the VM:
Or re-deploy to transfer fresh credentials: