# Install Devin on Your Own Server

## Download and Install Devin Server

{% tabs %}
{% tab title="Windows Server" %}
[Download](https://www.devin.fm/product/download) the latest Devin Server installer for Windows Server.

Run the `Devin-Server-<version>.exe` installer and follow the on-screen instructions.

The installer will prompt for:

* Credentials for the FileMaker Admin Console account
* Devin Server Type (Development or Staging/Production)

### For Staging/Production Server Installations

#### Save the API Key

After installing a non-development server, the graphical installer will show an API key in a pop-up window. Save this key, as you will need this when adding the server in the Devin App.&#x20;

If you loose the API Key, it can be located in `/Program Files/Devin/info.json` on the server.
{% endtab %}

{% tab title="Linux" %}
On Linux, you have two options for installing Devin: interactively or unattended. The interactive is the recommended method and involves manual installation steps, suitable for individual installations. Unattended installation is ideal for setting up Devin on multiple servers simultaneously, as it requires no manual input during the process.

### Update Your System

Ensure that your system is up to date by running:

<pre class="language-bash"><code class="lang-bash"><strong>sudo apt-get update -y
</strong></code></pre>

```bash
sudo apt-get upgrade -y
```

Ensure that the unzip utility is installed by running:

```bash
sudo apt-get install unzip -y
```

### Download and prepare the installer script

1. Navigate to the tmp directory:

```bash
cd /tmp
```

2. Download the installler:

```sh
wget https://download.devin.fm/downloads/server/public/latest/linux/install_devin_unix.zip
```

3. Unzip the installer:

```bash
unzip install_devin_unix.zip
```

4. Navigate to the installer folder:

```bash
cd install_devin
```

5. Change the permissions for the install script

```bash
chmod 755 install_devin_unix.sh
```

### Install Devin Server interactivily (recommended method)

6. Start the interactive installer by running the following commands in your terminal:

```bash
sudo ./install_devin_unix.sh
```

The installer will prompt for:

* Credentials for the FileMaker Admin Console account
* Devin Server Type (Development or Staging/Production)

### Install Devin Server unattended

Alternativily, you can install Devin Server unattended by running the following in your terminal:

```bash
sudo ./install_devin_unix.sh --username {fms user} --password {fms pass} --type {prod / dev}
```

### For Staging/Production Server Installations

#### Save the API Key

After installing a non-development server, save the API Key that gets output in the terminal. You will need this when adding the server in the Devin App.&#x20;

For unattended installs, or if you loose the API Key, it can be located in `/opt/Devin/info.json` on the server.
{% endtab %}

{% tab title="macOS" %}
{% hint style="danger" %}
Devin Server 1.1.1 for macOS is unstable and may not install correctly.

Please contact us for interest in releasing our newest features to macOS.
{% endhint %}

[Download](https://www.devin.fm/product/download) the latest Devin Server installer for macOS.

Run the `Devin-Server-<version>.pkg` installer and follow the on-screen instructions.

The installer will prompt for:

* Credentials for the FileMaker Admin Console account
* Devin Server Type (Development or Staging/Production)

### For Staging/Production Server Installations

#### Save the API Key

After installing a non-development server, the graphical installer will show an API key in a pop-up window. Save this key, as you will need this when adding the server in the Devin App.&#x20;

If you loose the API Key, it can be located in `/Library/Devin/info.json` on the server.
{% endtab %}
{% endtabs %}

{% hint style="info" %}
**INSTALLER LOGS:** If you run into issues installing Devin, please open a ticket [here](https://feedback.devin.fm/bugs). The Devin installer produces a log file named devin\_installer\_{Date}\_{Time}.log. Please include the output from the log in your ticket.
{% endhint %}

## Connect the Server in your App

To add a server in the Devin app, see [add-a-server](https://docs.devin.fm/guides/servers/add-a-server "mention").
