Thank you for your interest in contributing to Claude Code Proxy! This document provides guidelines and instructions for contributing.
-
Fork and clone the repository:
git clone https://github.com/your-username/claude-code-proxy.git cd claude-code-proxy -
Install dependencies:
npm install
-
Build the project:
npm run build
-
Create a new branch for your feature or bugfix:
git checkout -b feature/your-feature-name # or git checkout -b fix/your-bugfix-name -
Make your changes and ensure they follow the existing code style.
-
Build and test your changes:
npm run build npm test
- Use TypeScript for all new code
- Follow the existing code structure and naming conventions
- Add comments for complex logic
- Update the README if you're adding new features
- Add tests for new functionality
- Ensure all tests pass before submitting a pull request
- Test your changes manually if applicable
Use clear, descriptive commit messages:
feat: add support for custom model mapping
fix: resolve streaming response parsing issue
docs: update API documentation
test: add unit tests for request cleaning
-
Push your changes:
git push origin feature/your-feature-name
-
Create a Pull Request:
- Go to the repository on GitHub
- Click "New Pull Request"
- Provide a clear description of your changes
- Reference any related issues
-
Respond to feedback:
- Address any review comments
- Make requested changes
- Keep the conversation constructive
claude-code-proxy/
├── src/ # Source code
│ ├── index.ts # Main proxy server
│ └── types.ts # TypeScript type definitions
├── examples/ # Usage examples
├── tests/ # Test files
├── docs/ # Documentation
├── dist/ # Compiled output (generated)
└── package.json # Project configuration
If you need help:
- Check existing issues and pull requests
- Read the documentation
- Ask questions in an issue
By contributing, you agree that your contributions will be licensed under the MIT License.