Thank you for your interest in contributing to opencode2api!
Please be respectful and professional. We follow the Contributor Covenant.
- Check if the issue already exists
- Create a detailed issue with:
- Clear title and description
- Steps to reproduce
- Environment details
- Relevant logs
- Open an issue with
[Feature Request]prefix - Describe the use case
- Propose a solution or API design
- Fork the repository
- Create a feature branch:
git checkout -b feature/your-feature - Make your changes
- Run tests:
npm test - Commit with clear messages (see Commit Style below)
- Push to your fork
- Submit a Pull Request
We follow Conventional Commits:
<type>(<scope>): <description>
[optional body]
[optional footer]
Types:
feat: New featurefix: Bug fixdocs: Documentationstyle: Code style (formatting)refactor: Code refactoringtest: Testschore: Build/ci updates
Examples:
feat(api): add streaming support for Responses API
fix(proxy): resolve memory leak in long-running sessions
docs: update configuration documentation
# Clone and install
git clone https://github.com/TiaraBasori/opencode2api.git
cd opencode2api
npm install
# Run tests
npm test
# Start locally
npm start- Unit tests:
npm run test:unit - Integration tests:
npm run test:integration - All tests:
npm test -- --runInBand
- All submissions require review
- Address feedback promptly
- Squash commits before merge
By contributing, you agree that your contributions will be licensed under the MIT License.