At first there was Open-Assistant, then appeared OpenChatKit, and the newly announced ColossalChat. Now three projects (that I know of!) aim to give everybody the ability to create their own ChatGPT clone.
The basic components of a ChatGPT clone are:
large language model as its base
instruct dataset for fine-tuning the large language model
tools and pipeline for generating and curating the instruct dataset
tools and pipeline for fine-tuning and alignment of the model
tools for system management (ie user management, pre-prompt management)
tools for operations
content moderation system to identify when the model produced an undesired, unethical, or illegal response
user interface to expose the functionality