🚀 Claude Proxy
A secure HTTP API proxy for Anthropic Claude with comprehensive safety controls, permission management, and seamless integration with VS Code AI assistants.
⚡ Quick Start (One Command)
That's it! The API proxy starts automatically when you open VS Code.
🎯 Features
🔒 Enterprise-Grade Safety
- Permission Management: Interactive approval for dangerous operations
- Dangerous Pattern Detection: Blocks
rm -rf
,format
,delete
, etc. - Tool Restrictions: Configurable allowlists for Claude tools
- Request Monitoring: Complete logging of all API interactions
🌐 Universal API Compatibility
- OpenAI API Format:
/v1/chat/completions
endpoint - Claude API Format:
/v1/messages
endpoint - Model Mapping: Automatic translation between API formats
- Standards Compliant: Works with any OpenAI-compatible tool
🛠️ VS Code Integration
- Automatic Startup: Server starts when you open workspace
- Pre-configured Extensions: Cline, Continue, Roo Code ready to use
- Background Tasks: Start/stop/restart through VS Code commands
- Real-time Monitoring: Permission prompts and request logs
🚀 Supported AI Assistants
✅ Cline - Pre-configured, zero setup
✅ Continue - Pre-configured, zero setup
✅ Roo Code - Environment variables set
✅ Cursor IDE - Manual configuration (5 minutes)
✅ Any OpenAI-compatible tool - Just point to http://localhost:8081/v1
🏗️ Architecture
📋 Manual Setup (5 Minutes)
1. Install and Start
2. Configure Your AI Assistant
For Cline Extension
For Continue Extension
For Roo Code
For Cursor IDE
- Settings → Models → Custom API Base:
http://localhost:8081/v1
- Model:
gpt-4
- API Key:
dummy-key-not-needed
🔍 Verify It's Working
🛡️ Safety in Action
When an AI assistant tries to use dangerous tools, you'll see:
⚙️ Configuration
Default Config (claude-proxy.json
)
VS Code Workspace Settings
The automated setup creates .vscode/settings.json
with:
- Extension configurations for Cline, Continue
- Environment variables for terminals
- Auto-start task configuration
🧪 Testing & Quality
- 60 comprehensive tests - All passing
- 78.62% code coverage - Production ready
- API Server: 76.51% coverage
- Safety Proxy: 98.22% coverage
- Zero lint errors - Clean codebase
📚 Documentation
- VSCODE_SETUP_GUIDE.md - Complete VS Code setup
- API_PROXY_GUIDE.md - API documentation
- TEST_COVERAGE_REPORT.md - Testing details
🔧 Commands
🚨 Troubleshooting
Port Already in Use
VS Code Extensions Can't Connect
- Check server status:
curl http://localhost:8081/health
- Verify extension settings in VS Code
- Restart VS Code or reload window
🔄 Updates
🤝 Contributing
- Fork the repository
- Create a feature branch
- Make your changes with tests
- Run
npm test
andnpm run lint
- Submit a pull request
📝 License
MIT - see LICENSE file for details.
🙏 Acknowledgments
- Anthropic for Claude and the Claude CLI
- VS Code extension developers for Cline, Continue, and other AI assistants
- Open source community for tools and libraries
🔗 Ready to get started?
Run the one-line setup: git clone https://github.com/saxyguy81/claude-proxy.git && cd claude-proxy && ./install.sh && code .
Your AI coding assistant will be running securely through the proxy in under 2 minutes! 🎉
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
A secure MCP wrapper for Anthropic Claude Code that eliminates the need for permission flags while preserving full CLI functionality and working seamlessly with MCP-compatible IDEs.
Related MCP Servers
- AsecurityAlicenseAqualityThis project aims to build a Claude Code MCP server and implement its associated tools (explain\_code, review\_code, fix\_code, edit\_code, test\_code, simulate\_command, your\_own\_query). The server is implemented using Node.js and the MCP SDK. It receives tool requests from clients via Stdio, dynamicallyLast updated -73018JavaScriptMIT License
- -securityAlicense-qualityAn MCP server that implements Claude Code-like functionality, allowing the AI to analyze codebases, modify files, execute commands, and manage projects through direct file system interactions.Last updated -174PythonMIT License
- -securityFlicense-qualityAn MCP tool that synchronizes user preferences, personal details, and code standards across multiple Claude interfaces, allowing users to maintain consistent personalized AI interactions without repeating themselves.Last updated -2TypeScript
- -securityAlicense-qualityA tool that helps easily register Anthropic's Model Context Protocol (MCP) in Claude Desktop and Cursor, providing RAG functionality, Dify integration, and web search capabilities.Last updated -36PythonMIT License