Package Information
Downloads: 2 weeklyĀ /Ā 47 monthly
Latest Version: 1.0.9
Author: Shaike1
Available Nodes
Documentation
Enhanced Claude Code - n8n Community Node
š An enhanced version of the Claude Code n8n community node with enterprise features!
This project extends the original @holtweb/n8n-nodes-claudecode with powerful enhancements for production use.
⨠Key Features
- ā Native Authentication - Built-in credential management without CLI dependency
- ā Direct API Access - Bypass Claude Code CLI when needed
- ā Latest Models - Access to Claude 3.5 Sonnet, Haiku, and Opus
- ā Enterprise Ready - Advanced error handling, debugging, and monitoring
- ā Backward Compatible - Works with existing workflows
- š Future MCP Support - Native MCP protocol integration (planned)
š„ What's Enhanced
| Feature | Original | Enhanced |
|---|---|---|
| Authentication | CLI-only | Built-in credentials + CLI |
| API Access | CLI wrapper only | Direct API + CLI fallback |
| Model Support | Legacy names | Latest model identifiers |
| Error Handling | Basic | Enterprise-grade recovery |
| Configuration | Static | Dynamic with validation |
| Debugging | Limited | Comprehensive logging |
š Quick Start
Docker (Recommended)
docker run -it --rm \
-p 5678:5678 \
-e N8N_COMMUNITY_NODE_PACKAGES="n8n-nodes-claudecode-enhanced" \
-v ~/.n8n:/home/node/.n8n \
n8nio/n8n
npm
npm install n8n-nodes-claudecode-enhanced
š Documentation
- š Complete Documentation - Detailed setup and usage guide
- šÆ Migration Guide - Upgrade from the original node
- š§ API Reference - All parameters and options
- ā Troubleshooting - Common issues and solutions
šÆ Migration from Original
The enhanced node is 100% backward compatible. Simply:
- Install the enhanced package
- Replace "Claude Code" nodes with "Claude Code Enhanced"
- Optionally configure new authentication method
- Enjoy the new features!
š§ Configuration
Authentication Options
Option 1: API Key (Recommended)
// In n8n Credentials
{
"authMethod": "credentials",
"apiKey": "sk-ant-your-api-key",
"organizationId": "optional-org-id"
}
Option 2: CLI Authentication
// Uses existing Claude Code CLI setup
{
"authMethod": "cli"
}
Operation Modes
Query Mode
Start fresh conversations with full tool access:
{
"operation": "query",
"prompt": "Create a Python web scraper",
"model": "claude-3-5-sonnet-20241022"
}
Continue Mode
Maintain conversation context:
{
"operation": "continue",
"prompt": "Now add error handling"
}
Direct API Mode
Fast text generation without tools:
{
"operation": "direct",
"prompt": "Explain async/await in JavaScript",
"model": "claude-3-5-sonnet-20241022",
"maxTokens": 2000,
"temperature": 0.3
}
šļø Development
Building from Source
git clone https://github.com/shaike1/n8n-claudecode.git
cd n8n-claudecode
npm install
npm run build
Testing Locally
npm link
n8n start
Project Structure
āāā nodes/
ā āāā ClaudeCode/
ā āāā ClaudeCode.node.ts # Original node (maintained)
ā āāā ClaudeCodeEnhanced.node.ts # Enhanced node
āāā credentials/
ā āāā ClaudeCodeApi.credentials.ts # API credential type
ā āāā MCPServer.credentials.ts # MCP server credential (future)
āāā examples/ # Usage examples
āāā workflow-templates/ # Pre-built workflows
āāā docs/ # Additional documentation
š¤ Contributing
Contributions welcome! Please:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
š Roadmap
v1.0.0 ā (Current)
- Native authentication support
- Direct API access capability
- Latest Claude model support
- Enhanced error handling and debugging
v1.1.0 š (In Progress)
- Native MCP protocol support
- Advanced MCP server management
- Streaming response support
- Workflow templates
v1.2.0 š (Planned)
- OAuth2 authentication
- Team/organization management
- Usage analytics and monitoring
- Custom tool development SDK
š Troubleshooting
Common Issues
"Invalid API key" Error
- Verify your Anthropic API key is correct
- Ensure sufficient API credits
- Check base URL if using custom endpoint
"Claude Code CLI not found"
- Install Claude Code CLI:
npm install -g @anthropic-ai/claude-code - Authenticate:
claude auth login - Verify:
claude --version
Timeout Errors
- Increase timeout in Additional Options
- Break complex tasks into smaller steps
- Use Continue operation for multi-step workflows
Node Not Appearing
- Restart n8n after installation
- Check community packages are enabled
- Verify package name:
@shaike1/n8n-nodes-claudecode-enhanced
Debug Mode
Enable detailed logging:
{
"additionalOptions": {
"debug": true
}
}
š License
MIT License - see LICENSE.md for details.
š Acknowledgments
- Built on the excellent work by Adam Holt
- Powered by Anthropic's Claude AI models
- Integrated with n8n workflow automation platform
š Support
- š Issues: GitHub Issues
- š¬ Discussions: GitHub Discussions
- š Documentation: Enhanced Guide
- š Community: n8n Community Forum
ā If this project helps you, please give it a star! ā