# Install Devin on Your Own Server

## Update Your System (Linux only)

{% tabs %}
{% tab title="Linux" %}
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
```

&#x20;Ensure that the unzip utility is installed by running:

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

{% endtab %}
{% endtabs %}

## Download and Install Devin Server

{% tabs %}
{% 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.

### Download and prepare the installer script

Navigate to the tmp directory:

```bash
cd /tmp
```

Download the installler:

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

Unzip the installer:

```bash
unzip install_devin_unix.zip
```

Navigate to the installer folder:

```bash
cd install_devin
```

Change the permissions for the install script

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

### Install Devin Server interactivily (recommended method)

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 {fmsadmin username} \ 
--password {fmsadmin password} \
--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" %}
[Download](https://www.devin.fm/product/download) the latest Devin Server installer for macOS.

Run the macOS `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](/jp/gaido/servers/add-a-server.md).


---

# 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.devin.fm/jp/gaido/installation/install-devin-server/install-devin-on-your-own-server.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.
