Discover the full power of Claude Code with comprehensive feature coverage, usage examples, and advanced capabilities for 2025.
Claude 4 Models
Commands Reference
Different Workflows
Editor Support
Choose the right Claude model for your specific coding needs and performance requirements.
The world's best coding model for complex, long-running tasks and agent workflows. Handles sophisticated multi-file changes with precision.
claude --model claude-opus-4
Premium Model: Higher cost but unmatched capability for complex tasks.
Perfect balance of capability and speed. Superior coding and reasoning while responding precisely to instructions. Default model for most users.
claude --model claude-sonnet-4
# Or simply (default model)
claude
Recommended: Best balance of performance, speed, and cost for most developers.
Lightning-fast responses for simple tasks and rapid iteration cycles. Most cost-effective option for basic coding assistance.
claude --model claude-haiku-3.5
Cost-Effective: Lowest cost per request, perfect for high-frequency usage.
Compare Claude models across different dimensions to choose the right one for your needs.
Feature | Claude Opus 4 | Claude Sonnet 4 | Claude Haiku 3.5 |
---|---|---|---|
Capability | ★★★★★ | ★★★★☆ | ★★★☆☆ |
Speed | ★★★☆☆ | ★★★★☆ | ★★★★★ |
Cost | ★☆☆☆☆ | ★★★☆☆ | ★★★★★ |
Context Window | 200K tokens | 200K tokens | 200K tokens |
Best Use Cases | Complex architecture, large refactoring | General development, code reviews | Quick fixes, simple tasks |
Claude Code offers multiple interaction modes for different development scenarios and workflows.
Conversational coding assistance with full context awareness. Perfect for normal development workflow.
# Start interactive session
claude
# Example conversation
> "Add error handling to this function"
> "Explain how this algorithm works"
> "Refactor this code for better performance"
Execute single commands quickly without entering interactive mode. Ideal for automation and quick fixes.
# Single command execution
claude -p "fix all TypeScript errors"
claude -p "add tests for the auth module"
claude -p "optimize this component for performance"
claude -p "generate documentation for this API"
Structured output for CI/CD pipelines and automation systems. Machine-readable responses for integration.
# Headless mode with JSON output
claude -p "analyze code quality" --output-format stream-json
# For CI/CD integration
claude -p "run security audit" --headless --json
Plan changes without executing them. Review proposed modifications before applying to your codebase.
# Enter planning mode
# Press Shift+Tab Shift+Tab in interactive mode
# Or use planning flag
claude -p "refactor this module" --plan-only
Choose the right mode for your specific use case and workflow requirements.
Mode | Command | Use Case | Output | Best For |
---|---|---|---|---|
Interactive | claude |
Normal development | Conversational | Daily coding tasks |
One-shot | claude -p "task" |
Quick tasks | Direct response | Automation scripts |
Headless | claude -p "task" --json |
CI/CD integration | Structured JSON | Pipeline automation |
Planning | Shift+Tab Shift+Tab |
Review changes | Change proposals | Safe refactoring |
Master Claude Code with our comprehensive command reference. Access pre-terminal setup commands and interactive terminal commands.
Commands you run before launching Claude Code interactive mode.
Commands available inside Claude Code's interactive terminal.
Seamlessly integrate Claude Code with your favorite development environments for enhanced productivity.
New beta extension with inline edit suggestions and visual diffs. Claude's proposed edits appear directly in your files.
# Install VS Code extension
code --install-extension anthropic.claude-code
# Connect Claude Code to VS Code
claude /ide
claude /ide
in terminalBeta extension for IntelliJ IDEA, PyCharm, WebStorm, and other JetBrains IDEs. Streamlined review and tracking within the familiar editor interface.
# Install from JetBrains Marketplace
# Search for "Claude Code" in plugin settings
# Or install via Claude Code
claude /ide
Cursor provides excellent native integration with Claude Code through its built-in terminal. Optimized for AI-powered development workflows.
# Launch Cursor in project
cursor .
# Use integrated terminal
# Run claude in terminal
claude
Works with any terminal or editor that supports terminal integration. Universal compatibility across all development environments.
# Optimize terminal for Claude Code
claude /terminal-setup
# This enables:
# - Shift+Enter for newlines
# - Bell notifications
# - Optimized settings
Compare different IDE integration options to choose the best fit for your workflow.
IDE/Editor | Integration Type | Features | Status | Best For |
---|---|---|---|---|
VS Code | Beta Extension | Inline edits, visual diffs | Beta | Web development, TypeScript |
JetBrains IDEs | Beta Extension | Integrated diff viewer | Beta | Java, Python, enterprise |
Cursor | Native Support | Terminal integration | Stable | AI-first development |
Terminal | Universal | Full functionality | Stable | Any editor, universal |
Vim/Neovim | Terminal + Vim mode | Vim keybindings | Stable | Terminal-based workflow |
Explore powerful advanced features for professional development workflows and enterprise use cases.
Fine-grained control over what Claude Code can and cannot do in your environment.
# Allow specific tools
/permissions add Edit
/permissions add "Bash(git commit:*)"
# Deny dangerous operations
/permissions deny "Bash(rm*)"
# View current permissions
/permissions
# Session-specific permissions
claude --allowedTools Edit,Bash
# Dangerous mode (skip all prompts)
claude --dangerously-skip-permissions
Efficiently manage conversation context and memory to optimize token usage and performance.
# Clear context between major tasks
/clear
# Keep summary, reduce context
/compact
# Resume previous conversation
/resume session_id
# Edit memory files
/memory
# Add directory to context
/add-dir ~/important-project
Seamless integration with GitHub for pull request reviews and repository management.
# Review pull request
/review 123
# Get PR comments
/pr-comments 123
# Setup GitHub Actions
/install-github-app
Enterprise-grade features for large organizations and production deployments.
# Amazon Bedrock
claude --provider bedrock --model anthropic.claude-3-5-sonnet
# Google Vertex AI
claude --provider vertex --model claude-3-5-sonnet
Claude Code offers enterprise-grade features for teams and organizations, including advanced security, compliance, and deployment options.
Enterprise-grade security features including SSO integration, audit logging, and compliance with SOC 2, GDPR, and HIPAA standards.
Comprehensive team management tools for administrators, including user provisioning, role-based access control, and usage analytics.
Contact our enterprise team to learn more about Claude Code for your organization.