All tutorials
Getting startedSelf-hosting

Install OtoDock on your own server

Go from an empty server to your own agent platform with one install script and an owner account.

5 min read

OtoDock runs on your own server with Docker Compose. It sets up the server and dashboard, a PostgreSQL database, the document editor and the phone service.

What you need

  • Use a Linux server on x86-64 or arm64, or a Mac with Apple silicon and Docker Desktop.
  • You need Docker Engine 26 and Docker Compose 2.26 or later. The installer checks both versions.
  • Give the server at least 4 GB of memory and about 13 GB of free disk.
  • Bring a Claude or ChatGPT subscription, an API key or a local model server.
  • On Linux, add your user to the docker group, then log out and back in.

1. Run the install script

Run the script as your regular user. It stops if you start it as root. On a fresh server, create a user first and add it to the docker and sudo groups.

Give the install a folder of its own. The script will not install into your home folder itself.

$ mkdir otodock && cd otodock
$ curl -fsSLO https://raw.githubusercontent.com/OtoDock/oto-dock/main/scripts/install.sh
$ bash install.sh

Everything lands in the folder you run it from. The script does fresh installs only and never touches an existing one. It tells you what each step does before it runs it.

  • It checks that Docker and Docker Compose are installed and new enough.
  • On Linux, it checks the free disk where Docker keeps its images.
  • It writes a .env file with a generated database password.
  • On Ubuntu 24.04 and later, it installs a security profile the agent sandbox needs.
  • On Linux, it offers to keep OtoDock out of swap.
  • It downloads the files for the current release and starts OtoDock.

The first start downloads about 11 GB of images. How long that takes depends on your connection. When the script finishes, it prints the address to open. The page can take a few more minutes to answer while the server gets ready.

The disk check

On Linux, the script checks the free space where Docker keeps its images. It wants about 13 GB free there. With less, it stops before it downloads anything. It goes on anyway when the release images are already on the server.

The images take about 11 GB, and the first start adds about 1.5 GB. Docker Desktop on a Mac skips this check. To make room, docker system prune removes unused images and build cache.

To skip the check, run OTODOCK_MIN_FREE_GB=0 bash install.sh instead. Any other number sets the free space it asks for, in GB.

The sudo prompts

On Ubuntu 24.04 and later, the script asks for your sudo password once. It installs a security profile that the agent sandbox needs on those systems. The rest of your system keeps its normal protection.

If you decline, the script stops and prints the one command to run yourself. Run the installer again afterwards, and it picks up where it stopped.

On Linux, the script may ask once more, to keep OtoDock out of swap. It keeps the dashboard responsive when memory runs low. Skipping this one is safe. The install goes on either way. On a Mac, the script asks for neither.

The phone service

The script also downloads the phone service and starts it with the rest. It sits idle until you set up phone calls in the dashboard. Voice conversations in the dashboard use it too. The installation guide explains how to run without it.

2. Create your owner account

Open http://localhost:8400 on the server itself. From another computer, use your server's address on port 8400. A fresh install greets you with the setup wizard.

Create the owner account, the first admin of your platform. OtoDock then installs the Personal Assistant for you, with the tools it needs.

Open Setup, then AI Engines, and connect your Claude or ChatGPT subscription. An API key or a local model works too. Then open the Personal Assistant from the Agents page and send it your first message.

Your address and HTTPS

Your settings live in the .env file in the install folder. If people browse to the server by name or IP, set DASHBOARD_PUBLIC_URL there. Login cookies, OAuth redirects and links in notifications use that address.

Behind a reverse proxy, also tell OtoDock where the proxy connects from. If the proxy runs on the same server, set PROXY_BIND_IP=127.0.0.1. That way nobody can skip the proxy. Then set TRUSTED_PROXY to the gateway of the otodock network. That is 10.200.0.1 by default.

If the proxy runs on another machine, set TRUSTED_PROXY to that machine's IP address.

With an https address, also set COLLABORA_SSL_TERMINATION=true. Without it, the document editor stays blank. Then run these two commands in the install folder.

$ docker compose up -d
$ docker compose restart otodock-proxy

The HTTPS section of the installation guide shows the full proxy setup.

Upgrades and backups

The install script never upgrades. To move to a newer release, run upgrade.sh in the install folder. Download it again for every upgrade.

$ cd otodock
$ curl -fsSLO https://raw.githubusercontent.com/OtoDock/oto-dock/main/scripts/upgrade.sh
$ bash upgrade.sh

Add --dry-run to see every step without changing anything. Before it switches releases, the script backs up the database and your settings.

Where to next

  • First run walks you through the owner account, your AI subscription and your first chat.
  • The installation guide covers the address, HTTPS, the phone service and building from source.
  • Upgrading explains each step of an upgrade.
  • Backup and restore shows how to back up your data and bring it back.

Put your agents to work

Self-host it free for up to 5 users. One script sets it up.

Get started