Claude Code CLI
AI-powered coding assistant in your devcontainer
Add Claude Code CLI to your project with a single click during creation. Get an AI coding assistant that understands your entire codebase and helps you build faster.
One-Click Integration
Enable Claude Code CLI during project creation - it's automatically installed and configured in your devcontainer with zero manual setup.
Quick Setup
Add Claude to your project in seconds:
Enable During Creation
When creating a new site, toggle "Add Claude Code CLI" in the project creation dialog.
Automatic Installation
DAMP adds Claude Code CLI feature to your devcontainer configuration automatically.
Start Coding
Open project in VS Code - Claude Code CLI is ready to use immediately!
Features
One-Click Install
Enable with a single toggle during project creation
Codebase Aware
Claude understands your entire project structure
Terminal Integration
Use Claude directly from your devcontainer terminal
Zero Config
Pre-configured and ready to use instantly
How It Works
When you enable Claude Code CLI, DAMP adds this to your .devcontainer/devcontainer.json:
{
"features": {
"ghcr.io/anthropics/devcontainer-features/claude-code:1.0": {}
}
}Automatic Integration
The feature is added during project creation and installed when the devcontainer builds. No manual configuration needed!
Using Claude Code CLI
In Terminal
Once your devcontainer is running, use Claude from the terminal:
# Ask Claude for help
claude "How do I add authentication to this Laravel app?"
# Get code suggestions
claude "Write a function to calculate shipping cost"
# Debug issues
claude "Why is this query slow?"
# Learn patterns
claude "Explain this middleware implementation"Common Commands
# General assistance
claude "Explain this file"
claude "How does this feature work?"
# Code generation
claude "Create a user registration controller"
claude "Write tests for this service"
# Refactoring help
claude "How can I improve this code?"
claude "Refactor this function to be more efficient"
# Debugging
claude "Find the bug in this code"
claude "Why am I getting this error?"Integration Points
With Your Codebase
Claude Code CLI has context about your entire project:
- ✅ Reads all project files
- ✅ Understands dependencies
- ✅ Knows your framework (Laravel, etc.)
- ✅ Sees your code structure
This means better, more relevant suggestions!
With DevContainer
Claude runs inside your devcontainer:
┌──────────────────────────────────┐
│ Your DevContainer │
├──────────────────────────────────┤
│ • PHP 8.3 │
│ • Composer │
│ • Node.js │
│ • Claude Code CLI ✨ │
│ • Your Project Code │
└──────────────────────────────────┘Same environment, same context, better assistance!
Use Cases
🚀 Rapid Development
Build features faster with AI assistance:
claude "Create a REST API endpoint for user management"
# Get complete controller code with validation📚 Learning
Understand new concepts and patterns:
claude "Explain Laravel service containers"
# Get clear explanations with examples from your code🐛 Debugging
Find and fix issues quickly:
claude "This query returns empty results, why?"
# Get debugging suggestions based on your code♻️ Refactoring
Improve code quality:
claude "How can I make this controller more testable?"
# Get refactoring suggestions specific to your codeRequirements
API Access
Claude Code CLI requires Claude API access:
- Free tier available for testing
- Usage-based pricing for production
- Sign up at anthropic.com
Authentication
First time using Claude Code CLI:
- Run
claudein terminal - Follow authentication prompts
- Enter API key when requested
- Start using Claude!
One-Time Setup
Authentication is required only once per devcontainer. Your API key is stored securely.
Adding to Existing Projects
Want to add Claude to a project that's already created?
Edit devcontainer.json
Add the Claude feature manually:
{
"features": {
"ghcr.io/anthropics/devcontainer-features/claude-code:1.0": {}
}
}Rebuild Container
Press Ctrl+Shift+P → "Dev Containers: Rebuild Container"
Start Using
Claude Code CLI is now available in your terminal!
Privacy & Security
Data Privacy
- Claude Code CLI sends code to Anthropic's API for processing
- Code is analyzed to provide relevant suggestions
- Don't use with sensitive/proprietary code without reviewing terms
- Consider data handling policies for your use case
Troubleshooting
AI-Powered Development
Enable Claude Code CLI with one click and experience AI-assisted coding directly in your devcontainer!