# Self-hosted Truetask for teams, step by step

Set up Truetask for a team that must keep everything on its own server, from install and a locked-down network to local AI models, sign-in and the license.

URL: https://docs.truetask.io/guides/self-hosting-teams

A self-hosted Truetask instance keeps a team's project data, and its AI, on its own server, and this guide walks it from install to a locked-down network, local models, your own sign-in and an activated license.
A self-hosted instance sends no telemetry, makes no update check and leaves the internet switched off until you turn it on, and it is the same workspace where AI agents work alongside people as on Truetask Cloud.

## At a glance

| What | Where it comes from |
| --- | --- |
| A host | Docker Engine 25 or newer and Docker Compose v2 |
| The images | `git.truetask.dev`, pulled when you install and update, with no account |
| TLS | Your own proxy, load balancer or tunnel in front of the bundled Caddy |
| A license | Paid, bought once and perpetual, activated within three days of install |
| Mail | Your SMTP server |
| Sign-in | Passwords and emailed codes, plus OAuth2, OIDC or Active Directory if you want them |
| AI | Local models such as Ollama or LM Studio, or providers you choose |
| Outbound access | Off by default, in **Settings > General > Network** |

## Set it up

1. **Install.**
   Clone the release repository, run the setup wizard and start the stack:

   ```bash
   git clone https://git.truetask.dev/truetask/truetask-releases.git
   cd truetask-releases
   ./build_env.sh
   docker compose up -d
   ```

   The wizard asks for the data directory, the workspace name, the public URL, the proxy port and the admin account, and offers to generate the settings encryption key.
   See [Install](https://docs.truetask.io/self-hosted/install).
2. **Put TLS in front.**
   The bundled Caddy container listens on plain HTTP, so point your own TLS terminator at `<host>:<PROXY_PORT>`, and make `PUBLIC_URL` the address people really reach.
   See [Reverse proxy and TLS](https://docs.truetask.io/self-hosted/install#reverse-proxy-and-tls).
3. **Activate the license.**
   Sign in with the admin account from the wizard and paste your key in **Settings > Site > License**, or on the activation screen.
   The instance runs for three days without one; activation is checked on the instance and needs no internet access.
   See [How Truetask is licensed](https://docs.truetask.io/self-hosted/licensing) and [License](https://docs.truetask.io/self-hosted/license).
4. **Set up mail.**
   Configure your mail server in **Settings > Server > SMTP** and send a test message.
   Sign-in codes, password resets, invitations and client email all depend on it.
   See [SMTP](https://docs.truetask.io/self-hosted/smtp).
5. **Keep the network closed.**
   Leave **Allow features that reach the internet** and **Allow private network targets** off in **Settings > General > Network**.
   Set `HELPER_RELEASE_MANIFEST=off` in `.env`, or point it at your own copy of the release list, so the instance makes no call of its own.
   See [Network policy](https://docs.truetask.io/self-hosted/network) and [What leaves a self-hosted instance](https://docs.truetask.io/self-hosted/outbound-data).
6. **Connect your sign-in.**
   **Settings > Server > Active Directory** lets people sign in with their directory password and syncs accounts, and **Settings > Server > OAuth2** adds OAuth2 and OIDC providers.
   See [Sign-in and identity](https://docs.truetask.io/admin/authentication).
7. **Add a local model.**
   In **Settings > Integrations > AI**, press **Add model**, pick **Ollama**, **LM Studio**, **oMLX**, **vMLX** or **Custom**, set an **API URL** the server can reach, press **Test**, then route each capability to it.
   See [Run AI on local models only](https://docs.truetask.io/self-hosted/outbound-data#run-ai-on-local-models-only).
8. **Choose how agents run.**
   Every agent can answer inside Truetask on that local model.
   A coding agent on a computer runs Claude Code, Codex or the Cursor CLI through [Truetask Helper](https://docs.truetask.io/helper/), and those tools talk to their own vendors from that computer.
   An AI tool on your network that speaks MCP, such as LM Studio, can work in Truetask as an agent you own.
   See [AI agents as first-class teammates](https://docs.truetask.io/agents/) and [MCP](https://docs.truetask.io/agents/mcp).
9. **Keep git inside.**
   Connect a Gitea server on your own network with its **Server URL** on the **Gitea** card in Integrations; it needs neither network switch.
   See [Git integration](https://docs.truetask.io/git/).
10. **Protect the data.**
    Set a backup schedule in **Settings > Server > Backups**, move uploads or archives to your own object storage in **Settings > Server > S3 storage** if you like, and choose retention windows in **Settings > Server > Data retention**.
    See [Backups](https://docs.truetask.io/self-hosted/backups), [S3 storage](https://docs.truetask.io/self-hosted/s3-storage) and [Data retention](https://docs.truetask.io/self-hosted/data-retention).
11. **Run the hardening checklist.**
    [Security](https://docs.truetask.io/self-hosted/security) covers secrets, sessions, the audit log, tokens and public surfaces.

## What a normal week looks like

- **Work** happens on boards, tasks, notes and automations, with agents on your local model or on people's computers, and nothing reads the web.
- **Watching** is in **Settings > Audit & Security**: the audit log records changes across the workspace, and **Active Sessions** lists who is signed in from where.
- **Backups** show their age in **Settings > Server > Backups**, under **Last backup**.
- **Updates** happen when you choose: run `scripts/management/truetask-update.sh` after a backup, and the data directory and `.env` are left alone.
  Versions released within your updates window are included in your license.
  See [Updates](https://docs.truetask.io/self-hosted/updates).
- **Reminders** about the license come from your own instance: seven days before the updates window closes, owners and admins get an email and a notification.

## Frequently asked questions

### Can Truetask run without internet access?

Yes.
With both Network switches off and `HELPER_RELEASE_MANIFEST=off`, Truetask calls nothing you did not connect yourself, and everything about your own workspace keeps working.
The host needs `git.truetask.dev`, or a registry of your own set in `TRUETASK_REGISTRY`, to pull images when you install or update.

### Can Truetask agents work without sending data to an AI provider?

Yes, for agents that answer inside Truetask on a local model, and for an MCP tool on your network that runs its own local model.
Coding agents on people's computers use Claude Code, Codex or the Cursor CLI, which talk to their own vendors from that computer.

### Does self-hosted Truetask need a license per user?

No.
A self-hosted license key holds no count of people, and the instance has no user limit, so agents and clients are never counted either.
See [How Truetask is licensed](https://docs.truetask.io/self-hosted/licensing).

### What keeps working if our Truetask license updates window ends?

Everything.
The license is perpetual and the instance keeps running exactly as it is; only versions released after the window's end date stop being included.

### Where does Truetask keep our data?

In the data directory you chose at install, outside the application directory: the database and uploads in `pb_data`, plus the plugins, logs and MCP configuration.
Uploads and backups can move to your own S3 storage instead.

## Related

- [Self-hosted overview](https://docs.truetask.io/self-hosted/)
- [What leaves a self-hosted instance](https://docs.truetask.io/self-hosted/outbound-data)
- [How Truetask is licensed](https://docs.truetask.io/self-hosted/licensing)
- [Install](https://docs.truetask.io/self-hosted/install)
- [Security](https://docs.truetask.io/self-hosted/security)
- [AI settings](https://docs.truetask.io/admin/ai)
