# Installation Client

The [source code ](https://github.com/Adaptix-Framework/AdaptixC2)of AdaptixС2 is available on github. The `main` branch is a stable version and does not contain the latest changes.

```bash
git clone https://github.com/Adaptix-Framework/AdaptixC2.git
cd AdaptixC2
```

***

## Linux

{% hint style="info" %}
Requires **QT > 6.8.0**, otherwise use docker.
{% endhint %}

### Preinstall

To build Client, you need to install additional dependencies

{% tabs %}
{% tab title="Auto" %}
For Linux (no Arch), you can use a specially prepared script that will install and configure the necessary packages for both the server and client parts. ([pre\_install\_linux\_all.sh](https://raw.githubusercontent.com/Adaptix-Framework/AdaptixC2/refs/heads/main/pre_install_linux_all.sh))

<figure><img src="/files/KX7OmhxtbfZVid0EsL3k" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Manual" %}
**Debian**

```bash
sudo apt install gcc g++ build-essential make cmake mingw-w64 g++-mingw-w64 libssl-dev qt6-base-dev qt6-base-private-dev libxkbcommon-dev qt6-websockets-dev qt6-declarative-dev qt6-svg-dev 
```

**Arch**

```bash
sudo pacman -S --needed make cmake openssl libxkbcommon qt6-base qt6-websockets qt6-declarative
```

{% endtab %}
{% endtabs %}

### Build on Host

The AdaptixClient is compiled from the cmake configuration. For fast builds in multithreaded mode, use `make client-fast`.

```bash
make client
```

AdaptixClient file will be located in the dist directory.

### Build in Docker

The compiled static AppImage will be located in the `AdaptixClient/client-dist` directory.

```bash
make docker-build-client
```

***

## MacOS

To build Client, you need to install additional dependencies. You need use [Brew](https://brew.sh/).

```bash
brew install make cmake openssl qt@6
```

The AdaptixClient is compiled from the cmake configuration. For fast builds in multithreaded mode, use `make client-fast`.

```bash
make client
```

***

## Windows

### Preinstall

Install MSYS2 from [github](https://github.com/msys2/msys2-installer/releases/tag/nightly-x86_64) to `C:\msys64`.

<figure><img src="/files/lhgibWC2nf8apjSph1Ea" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/8wqHVI3xcB8pr9CCm6I6" alt=""><figcaption></figcaption></figure>

Run `C:\msys64\ucrt64.exe` and install QT modules.

```bash
pacman -Syu
pacman -S base-devel mingw-w64-x86_64-toolchain mingw-w64-x86_64-cmake mingw-w64-x86_64-qt6
```

<figure><img src="/files/dpLsPFwCxfCZ4dz1UE9o" alt=""><figcaption></figcaption></figure>

### Build

AdaptixClient is compiled from a CMake configuration. For a quick build, run the [BAT file](https://raw.githubusercontent.com/Adaptix-Framework/AdaptixC2/refs/heads/main/AdaptixClient/build.bat). AdaptixClient.exe file will be located in the `AdaptixClient\dist` directory.&#x20;

The directory with the application and dependencies can be transferred to any computer.


---

# 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://adaptix-framework.gitbook.io/adaptix-framework/adaptix-c2/getting-starting/installation-client.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.
