# Self-hosted project management with AI agents

Run Truetask on your own server, with AI agents, no telemetry, offline by default, your own or local models, and a perpetual license bought once.

URL: https://docs.truetask.io/self-hosted/

Self-hosted only.

Self-hosted Truetask is project management with AI agents on your own server: the workspace where agents work alongside people, with no telemetry, offline by default, and AI from your own or local models.
You run the stack and own the data directory, and it is the same product as [Truetask Cloud](https://docs.truetask.io/cloud/), with every feature unlocked and a few extra settings panes for the parts of the server you now control.

| | On a self-hosted instance |
| --- | --- |
| Telemetry | None, and no update check. See [What leaves a self-hosted instance](https://docs.truetask.io/self-hosted/outbound-data). |
| Internet access | Features that read the web stay off until an admin turns them on in [Network](https://docs.truetask.io/self-hosted/network) |
| AI | Your own providers, or local models such as Ollama and LM Studio. See [AI settings](https://docs.truetask.io/admin/ai). |
| [AI agents](https://docs.truetask.io/agents/) | The same as on Cloud, with coding agents on your own computers through [Truetask Helper](https://docs.truetask.io/helper/) |
| Features | Every feature, with no plan gating and no numeric limits |
| License | Paid, bought once and perpetual. See [How Truetask is licensed](https://docs.truetask.io/self-hosted/licensing). |

> **A paid license is required**
>
> A self-hosted instance needs a paid license to activate.
> You buy it once: the license is perpetual, not a subscription.
> It comes with an updates window, and renewing that window is optional and only affects which new versions you may install.
> You can install and try the instance first: it runs without a key for a 3-day grace period, then locks until you activate one.
> See [License](https://docs.truetask.io/self-hosted/license).

## What you get

Every feature is available.
There is no plan gating on a self-hosted instance: the entitlement check returns true for every feature when the instance runs in self-hosted mode, so teams, audit, sessions, API tokens, MCP, webhooks, S3 storage, time tracking, agent runs, plugins, client sharing and database API keys are all on, with no numeric limits.

The one exception is Truetask AI, the managed model, which is a Cloud service.
A self-hosted instance connects its own AI providers instead, local runtimes such as Ollama, LM Studio, oMLX and vMLX included.
See [AI settings](https://docs.truetask.io/admin/ai) and [Run AI on local models only](https://docs.truetask.io/self-hosted/outbound-data#run-ai-on-local-models-only).

One thing exists only here: the server settings panes below.

## Settings panes you only see here

| Pane | Where | What it covers |
| --- | --- | --- |
| License | **Settings > Site > License** | [Your license key, type and updates window](https://docs.truetask.io/self-hosted/license) |
| Network | **Settings > General > Network** | [Whether Truetask may reach the internet at all](https://docs.truetask.io/self-hosted/network) |
| SMTP | **Settings > Server > SMTP** | [Outgoing mail](https://docs.truetask.io/self-hosted/smtp) |
| Backups | **Settings > Server > Backups** | [The backup schedule and the archive list](https://docs.truetask.io/self-hosted/backups) |
| S3 storage | **Settings > Server > S3 storage** | [Uploads and backups on object storage](https://docs.truetask.io/self-hosted/s3-storage) |
| Data retention | **Settings > Server > Data retention** | [How long logs, sessions and trashed tasks are kept](https://docs.truetask.io/self-hosted/data-retention) |

Truetask Cloud has one pane you will not see: **Plan**, which handles billing.
On a self-hosted instance that slot is taken by **License** instead.
The two are mutually exclusive.

![Truetask self-hosted License settings pane](https://docs.truetask.io/screenshots/settings-license.webp)

## The stack

A self-hosted instance is five containers on one Docker network.

| Container | Image | What it does |
| --- | --- | --- |
| `<workspace>-caddy` | `caddy:2-alpine` | Reverse proxy. Routes every path to the right service and is the only container with a published port |
| `<workspace>-pb` | `truetask-pb` | PocketBase. Database, authentication, realtime, file storage, scheduled jobs, and it serves the web app |
| `<workspace>-api` | `truetask-api` | FastAPI. The REST API at `/v1`, the automation engine, agent runs and push notifications |
| `<workspace>-mcp` | `truetask-mcp` | The [MCP server](https://docs.truetask.io/agents/mcp) that AI tools connect to |
| `<workspace>-yjs` | `truetask-yjs` | The collaboration server behind live note editing |

The four Truetask images are pulled from the registry at `git.truetask.dev`, never built on your host.
The compose project is named after your `WORKSPACE` value, so several instances can run side by side on one server.

Everything persistent lives under the data directory you choose at install time: `pb_data` for the database and uploads, `plugins` for the installed plugins, `logs` for the API's log files, and `mcp_config`.
That directory sits outside the application directory on purpose, so an update can replace the application directory without touching your data.

## Offline by design

Truetask does not phone home.
There is no telemetry, no automatic update check for the instance itself and no license re-validation over the network after activation.

Outbound access is off until you turn it on.
**Allow features that reach the internet** in [Network](https://docs.truetask.io/self-hosted/network) is off by default, which blocks link previews for covers, Unsplash, the plugin catalog and the pages your agents read with `fetch_url`.
A second switch, **Allow private network targets**, controls whether automations, webhooks and agent fetches may reach addresses on your own network.
It is off too.

One read happens without the switch: when a Truetask Helper on one of your computers checks for an update, or someone opens its download list, the instance reads the Helper release list from `truetask.io`.
Set `HELPER_RELEASE_MANIFEST=off` to stop it.
See [Network policy](https://docs.truetask.io/self-hosted/network#hosts-truetask-itself-may-need), and [What leaves a self-hosted instance](https://docs.truetask.io/self-hosted/outbound-data) for every outbound call the instance can make and the switch for each.

## What you need

- Docker Engine 25 or newer, and Docker Compose v2.
  The setup wizard checks for both, tells you which is missing, and warns about an older engine.
- Outbound HTTPS to `git.truetask.dev`, the public registry the images are pulled from.
  No account and no registry login are needed.
- OpenSSL, if you want the wizard to generate your push-notification keys and settings encryption key for you.
  It falls back to `/dev/urandom` for the encryption key and skips push notifications when OpenSSL is absent.
- A hostname and a TLS terminator in front, unless you are only running this on `localhost`.
  The bundled Caddy container does not terminate TLS itself.

A paid license key, bought once.
It is not needed to start: a fresh instance runs for a 3-day grace period, then every page redirects to the activation screen until a key is activated.
See [License](https://docs.truetask.io/self-hosted/license).

## Native desktop bundles

There are native macOS and Windows bundles that package the same services for a single machine, without Docker.
They are still moving and are not documented here.
Contact support if you want one.

The [Truetask Desktop](https://docs.truetask.io/desktop/) app is a different thing: it is a wrapper around a workspace you already run, and it works against Cloud and self-hosted alike.

## Next

- [Install](https://docs.truetask.io/self-hosted/install) walks the setup wizard prompt by prompt.
- [How Truetask is licensed](https://docs.truetask.io/self-hosted/licensing) explains the perpetual license, the updates window and how it compares with Cloud plans.
- [License](https://docs.truetask.io/self-hosted/license) explains activation, the grace period and the License pane.
- [What leaves a self-hosted instance](https://docs.truetask.io/self-hosted/outbound-data) lists every outbound call and how to run AI on local models only.
- [Teams that keep everything on their own server](https://docs.truetask.io/guides/self-hosting-teams) is the setup path from install to a locked-down instance.
- [Updates](https://docs.truetask.io/self-hosted/updates) covers moving to a new version.
- [Security](https://docs.truetask.io/self-hosted/security) is the hardening checklist for a production instance.

## Frequently asked questions

### What do I need to self-host Truetask?

A host with Docker Engine 25 or newer and Docker Compose v2 that can reach `git.truetask.dev` over HTTPS.
No account is needed to clone the release repository or pull the images.
Clone the release repository, run `./build_env.sh`, then `docker compose up -d`.
See [Install](https://docs.truetask.io/self-hosted/install).

### Do I need a license to run Truetask on my own server?

Yes, a paid one.
It is a one-time purchase: the license is perpetual, and only its updates window can be renewed.
Without a key the instance runs for a 3-day grace period, then every page redirects to the Activate license page.
Keys arrive by email and are pasted in **Settings > Site > License** with no restart.
See [License](https://docs.truetask.io/self-hosted/license).

### Is anything missing compared with Truetask Cloud?

Only Truetask AI, the managed model; you connect your own AI providers instead.
Every other feature is available and nothing is plan-gated.
A self-hosted instance adds the License, Network, SMTP, Backups, S3 storage and Data retention panes.

### Does self-hosted Truetask phone home or send telemetry?

No.
Truetask sends no telemetry and never checks for a new version of itself.
Outbound fetching by features, plugins and agents stays off until an admin turns it on in the [Network](https://docs.truetask.io/self-hosted/network) pane.
The one exception is the Truetask Helper release list, read from `truetask.io` when a Helper checks for an update, which `HELPER_RELEASE_MANIFEST=off` turns off.
See [What leaves a self-hosted instance](https://docs.truetask.io/self-hosted/outbound-data).

### Can self-hosted Truetask run with no 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: boards, tasks, notes, forms, automations and agents on a local model.
The host still needs `git.truetask.dev` to pull images when you install or update.
See [What stops working fully offline](https://docs.truetask.io/self-hosted/outbound-data#what-stops-working-fully-offline).

### Can Truetask use local AI models such as Ollama?

Yes.
Add the model in **Settings > Integrations > AI** with the provider **Ollama**, **LM Studio**, **oMLX**, **vMLX** or **Custom** for any OpenAI-compatible endpoint, then route Truetask's AI jobs to it.
See [Run AI on local models only](https://docs.truetask.io/self-hosted/outbound-data#run-ai-on-local-models-only).

### What happens when my Truetask updates window ends?

The instance keeps running exactly as it is, because the license is perpetual.
Only versions released after the date on the key stop being included, and renewing the window is optional.
See [How Truetask is licensed](https://docs.truetask.io/self-hosted/licensing).

### Can I run several Truetask instances on one server?

Yes.
The compose project is named after the `WORKSPACE` value you give the setup wizard, so give each instance its own name, data directory and proxy port.
See [Install](https://docs.truetask.io/self-hosted/install#basic-configuration).

### How do updates work?

Run `truetask-update.sh` in the release repository: it pulls the new compose file, pulls the images and restarts the stack.
Your data directory and `.env` are untouched and migrations run at start.
See [Updates](https://docs.truetask.io/self-hosted/updates).

## Related

- [How Truetask is licensed](https://docs.truetask.io/self-hosted/licensing)
- [What leaves a self-hosted instance](https://docs.truetask.io/self-hosted/outbound-data)
- [Settings overview](https://docs.truetask.io/admin/)
- [Sign-in and identity](https://docs.truetask.io/admin/authentication)
- [Truetask Cloud](https://docs.truetask.io/cloud/)
- [Troubleshooting](https://docs.truetask.io/reference/troubleshooting)
