# Quickstart

<figure><img src="https://2659888727-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnMzjqteyjRQVvzh8VUQx%2Fuploads%2FQKexfEUeH49lW9szrYFz%2Fprivateghandi_brainrot_chrome_3d_black_background_--v_6.1_6c30b2a1-48ca-4163-b43d-199d194ed294_0.png?alt=media&#x26;token=939939e1-e2c3-4151-81bb-f8924e1dd761" alt=""><figcaption></figcaption></figure>

To use X Clone, you’ll need:

* **Rust** installed on your machine (v1.65+ recommended).
* A **Twitter Developer Account** for API access.
* An **OpenAI API Key** for persona cloning magic.

***

#### **Installation**

1. **Clone the Repository:**

   ```bash
   bashCopy codegit clone https://github.com/yourusername/clone-x.git
   cd clone-x
   ```
2. **Install Dependencies:**

   ```bash
   bashCopy codecargo build
   ```
3. **Set Up Environment Variables:**\
   Copy the `.env.example` file to `.env` and fill in your credentials:

   ```plaintext
   plaintextCopy codeTWITTER_API_KEY=your_twitter_api_key
   TWITTER_API_SECRET=your_twitter_api_secret
   TWITTER_ACCESS_TOKEN=your_twitter_access_token
   TWITTER_ACCESS_SECRET=your_twitter_access_secret
   OPENAI_API_KEY=your_openai_api_key
   ```
4. **Run the Application:**

   ```bash
   bashCopy codecargo run
   ```
