Home Assistant is open-source and MIT-licensed. Here are links to the source:
For those new to contributing to open source software, make sure you are familiar with all of the tools and concepts used in Home Assistant before you start.
When contributing Home Assistant code:
When contributing 3rd Party code to be used by Home Assistant: