> ## Documentation Index
> Fetch the complete documentation index at: https://trickest.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Using Self-Hosted Machines

> Create a self-hosted fleet and attach your own machines to run workflows on your infrastructure.

## Overview

Self-hosted machines are servers, virtual machines, or cloud instances that you connect to the platform to execute workflows on your own infrastructure. They are organized into **fleets**, and any fleet you create can be selected as the execution target when running a workflow.

Trickest supports the following machine types:

* Virtual machines
* Cloud instances
* Bare-metal machines
* macOS devices

## Creating a Self-Hosted Fleet

Navigate to **Settings > Infrastructure > Fleet** and open the **Self-Hosted** tab. Click **Create Self-Hosted Fleet** to create a new fleet. It is ready to have machines assigned to it immediately.

## Adding a Machine to a Fleet

Once a fleet exists, open it and click **Add Machine** to launch the machine connection wizard.

<Steps>
  <Step title="Name the machine">
    Enter a unique, recognizable name for the machine. This name identifies it within the fleet.
  </Step>

  <Step title="Copy the connection credentials">
    The wizard generates a **Client ID** and **Client Secret** for this machine, along with the commands to run on the target machine to install and start the Trickest Agent.

    <Warning>
      The Client ID and Client Secret are shown only once. Copy and store them securely before proceeding.
    </Warning>
  </Step>

  <Step title="Run the agent on your machine">
    Execute the provided commands on your external machine. The agent will install, authenticate using the credentials, and establish a connection to the platform.
  </Step>

  <Step title="Confirm the connection">
    Once the agent is running, the machine appears as **Active** in the fleet. It is now available for workflow execution.
  </Step>
</Steps>

<Note>
  If you lose the Client ID or Client Secret, delete the machine entry and create a new one. There is no limit on how many times machines can be created or deleted.
</Note>
