1. Home
  2. Guide
  3. KoboToolbox Install

KoboToolbox Install: self-hosting with kobo-install

Self-hosting gives you full control over where data lives and how much you can collect. It also makes you the administrator of a multi-service application. This guide shows what that involves.

Guide 05 / 089 min readUpdated 2026-11-10
Grid of KoboToolbox Docker services next to a terminal showing kobo-install status

Most organisations never need to install KoboToolbox. The hosted Global and EU servers handle everything, and new users can start collecting data within minutes. But there are good reasons to run your own instance: national law that requires data to remain in-country, an institutional policy that sensitive health or protection data never leave your infrastructure, integration with internal systems, or simply volumes that exceed hosted plan limits.

For those cases, the KoboToolbox team maintains kobo-install, a command-line tool that configures and launches the full platform using Docker. This guide covers the KoboToolbox install process from requirements to maintenance.

What you are installing

KoboToolbox is not a single program. A complete installation runs several cooperating services, each in its own container:

Service Role
KPI The main web application: form builder, projects, permissions, data table, reports and API
Enketo Express Web forms that run in browsers, online and offline
OpenRosa endpoint Receives submissions from KoboCollect and other ODK-compatible clients
PostgreSQL Main relational database
MongoDB Stores submission documents for fast querying
Redis Caching, sessions and background task queues
Workers Background jobs such as exports and processing
NGINX Web server and reverse proxy in front of everything

kobo-install hides most of this complexity, but understanding the pieces helps enormously when something needs troubleshooting.

Requirements

According to the kobo-install documentation, you need:

  • Operating system: Linux or macOS. Ubuntu 22.04 and 24.04 are the tested Linux releases. Docker on macOS works but is slower, and first boot can take a long time.
  • Docker with Docker Compose V2. Compose V1 is no longer supported.
  • Python 3.12 or newer to run the installer.
  • Git to fetch the installer.
  • Free ports: 80 for NGINX, and 443 if you use Let's Encrypt for HTTPS.

The documentation does not prescribe exact hardware figures. In practice, several databases and application services run side by side, so plan generously: a machine with at least 8 GB of RAM, several CPU cores and fast SSD storage is a reasonable starting point for a small production instance. Size disk space according to the media you expect; photos and audio grow quickly.

Choosing the installation mode

The setup wizard asks how the instance will be used:

  • Workstation mode makes KoboToolbox reachable only from the local computer. No DNS records are needed. This is ideal for evaluating the software, training, or developing forms offline.
  • Server mode makes the instance reachable from a local network or the internet. DNS records are required, and you will normally configure HTTPS.

Start in workstation mode on a laptop if you simply want to explore. Use server mode on a dedicated machine for anything that will hold real data.

Step-by-step installation

1. Prepare the host

Update the operating system, install Docker following Docker's official instructions for your distribution, and confirm Compose V2 is available:

docker --version
docker compose version
python3 --version

Make sure the user that will run the installer can run Docker commands.

2. Fetch kobo-install

Prepare the official kobo-install source folder, open a terminal in that folder, and continue with the setup commands below.

3. Run the setup wizard

python3 run.py

The first run starts an interactive setup. Typical questions include:

  • Installation mode: workstation or server.
  • Local IP address, or public domain names for server mode. By convention the web interface, collection endpoint and Enketo use subdomains such as kf., kc. and ee. under your main domain.
  • Whether to use HTTPS, and whether to obtain certificates automatically with Let's Encrypt or to place KoboToolbox behind an existing reverse proxy.
  • The super-user username and password for the first administrator account.
  • Optional settings for e-mail delivery, backups and advanced options.

Your answers are stored in a configuration directory next to the installer, so later commands reuse them.

4. Wait for first boot

After setup, kobo-install pulls the Docker images and starts the containers. The first start builds databases and prepares static files, which can take several minutes. The installer reports when the platform responds. If it reports that KoboToolbox has not started yet, that can be normal on modest hardware; give it time before assuming failure.

5. Sign in and secure the instance

Open the kf. address (or the local address in workstation mode) and sign in with the super-user account. Then:

  • Create normal accounts for staff rather than using the super-user day to day.
  • Decide whether public registration should be allowed.
  • Configure outgoing e-mail so password resets work.
  • Test KoboCollect against the kc. address and an Enketo link before inviting users.

Everyday commands

kobo-install is also the management tool for the life of the instance:

Command What it does
python3 run.py Starts the containers using the saved configuration
python3 run.py --setup Re-runs setup to change configuration
python3 run.py --update Updates KoboToolbox to the latest release (optionally a named branch or tag)
python3 run.py --stop Stops all KoboToolbox services
python3 run.py --logs Shows the Docker logs
python3 run.py --info Shows information about the installation
python3 run.py --help Lists all options

Updating safely

Updates bring security fixes and new features, so schedule them regularly. Follow a simple routine:

  1. Read the release notes. Some releases require extra steps, such as database upgrades, before the application will start correctly. The kobo-install documentation warns, for example, that upgrades from older releases may require upgrading MongoDB first.
  2. Back up databases and media before every update.
  3. Update outside data collection peaks, when few devices are submitting.
  4. Run python3 run.py --update, then watch the logs until all services are healthy.
  5. Test login, form deployment, a KoboCollect submission and an export.

Backups: the part people skip

A self-hosted server is only as safe as its backups. Protect three things:

  • PostgreSQL databases, which hold users, projects and form definitions.
  • MongoDB, which holds submission data.
  • Media files: photos, audio, video and attachments.

Schedule automated backups, copy them to a different physical location, and, most importantly, test a restore on a separate machine at least once. A backup that has never been restored is a hope, not a plan.

Security essentials

  • Serve everything over HTTPS. Browsers will not share location with Enketo forms over plain HTTP, and credentials must not travel unencrypted.
  • Keep the host operating system and Docker up to date.
  • Expose only ports 80 and 443 to the internet. Database ports should remain internal unless you have a specific reason and a firewall rule to restrict them.
  • Use strong, unique passwords for the super-user and enable two-step verification for administrators.
  • Monitor disk space; a full disk is a common cause of failed submissions.

Developing against a local install

Developers who want to modify the platform can combine kobo-install with a local copy of the KPI source code. Download or clone the KPI repository, then follow the developer instructions in the kobo-install documentation to run the stack with your local code mounted in the container. This gives a full working environment for testing changes to the form builder or API.

Troubleshooting the install

Symptom Likely cause What to check
Setup fails immediately Old Python or Compose V1 python3 --version (3.12+), docker compose version
"Has not started yet" for a long time First boot on modest hardware, or a failing container Wait, then python3 run.py --logs
Let's Encrypt fails DNS not pointing to server, or port 80 blocked DNS A records for all subdomains; firewall
Port already in use Another web server running Stop it or reconfigure ports
KoboCollect cannot connect Wrong address or certificate problem Use the kc. address; check HTTPS certificate
Exports never finish Worker container stopped or low memory Logs for workers; add RAM

Is self-hosting right for you?

Self-hosting is a responsibility, not just an installation. It suits organisations with:

  • A clear legal or policy requirement for local hosting.
  • A system administrator who can maintain Linux servers, Docker, DNS and certificates.
  • Budget for hardware or cloud hosting, monitoring and backups.

If those conditions are not met, the hosted EU or Global servers are usually safer, because Kobo's own team handles updates, backups and security around the clock.

Planning domains and DNS

In server mode, plan the domain names before running setup. A typical layout uses three subdomains:

Subdomain Purpose
your configured server Main web application and API
your configured server KoboCollect submissions
your configured server Enketo web forms

Create DNS A records for each subdomain pointing to the server's public IP address and wait for them to propagate before running setup with Let's Encrypt. Certificate requests fail if the names do not resolve to your server yet. If you place KoboToolbox behind an existing load balancer or reverse proxy that terminates HTTPS, tell the setup wizard so it configures NGINX accordingly.

Sizing for growth

A server sized for a pilot can struggle a year later. Think about growth across three dimensions:

  • Users and concurrent sessions. Many analysts filtering large tables at once need memory and CPU.
  • Submissions. MongoDB and PostgreSQL grow with every record; exports of very large projects need memory and time.
  • Media. Usually the fastest-growing component. Ten thousand submissions with three photos each can occupy many gigabytes.

Monitor disk usage, memory and CPU from the start, set alerts well before limits are reached, and review capacity before each major survey round. Moving to a larger machine is straightforward when it is planned, and stressful when it happens because a disk is full during fieldwork.

An operating routine for administrators

Running KoboToolbox reliably is mostly about routine. A simple schedule keeps the instance healthy:

Daily - Confirm that the web interface, KoboCollect endpoint and Enketo respond. - Check that the previous night's backup completed. - Glance at disk space.

Weekly - Review logs for repeated errors with python3 run.py --logs. - Apply operating system security updates. - Check certificate expiry dates if not renewed automatically.

Monthly - Review release notes for new KoboToolbox versions and plan updates. - Review user accounts and remove those no longer needed. - Test restoring a backup to a separate machine at least once per quarter.

Documenting this routine, and who is responsible for each task, matters as much as the technical setup. Servers outlive the tenure of the person who installed them.

Workstation mode for training and offline design

Workstation mode is often overlooked, yet it solves several practical problems. Trainers can run a complete KoboToolbox instance on a laptop in a classroom without internet access, letting participants practise building forms, collecting data on phones connected to the same local network, and exploring the data table. Form designers can prototype complex questionnaires during travel. Developers can test integrations without touching production data.

Because workstation mode is meant for a single machine and local use, do not treat it as a production server. Data on a laptop is exposed to loss and theft, and the instance is not configured for public access. When the training or prototype is finished, export the forms as XLSForm and deploy them on the production server.

Questions administrators often ask

Can I install KoboToolbox on Windows? kobo-install supports Linux and macOS. On Windows, use a Linux virtual machine or a Linux server.

Can I move from the hosted servers to my own instance? Yes. Upload the XLSForms to your instance and, if needed, transfer submissions with API-based scripts. Plan the switch between collection rounds.

Logging and monitoring

Docker logs are the first place to look when something misbehaves, but they are not a monitoring system. Add simple external checks that request the login page, the KoboCollect endpoint and an Enketo address every few minutes and alert an administrator if any of them fail. Track disk space, memory and CPU with the monitoring tool your organisation already uses. Keep a short incident log noting the date, symptom, cause and fix; over time it becomes the most valuable troubleshooting document for your instance, and it helps new administrators understand how the server has behaved.

Key takeaways

kobo-install makes a KoboToolbox install achievable for any competent administrator: prepare a Linux host with Docker, Compose V2 and Python 3.12+, run python3 run.py, answer the setup questions and wait for the services to start. The real work comes after: HTTPS, regular updates with release notes in hand, tested backups and careful access control. Treat those as part of the installation, and your self-hosted instance will serve field teams reliably for years.