SelfHost HubSelfHost Hub
中文
← Back to all services

GitHub repository information

Fetched · November 27, 2026
★ 2,784Latest: v0.1.89Updated: November 26, 2026
README
# <img src="assets/icon.png" alt="drawing" width="45"/>Donetick 



**Simplify Tasks & Chores, Together!**

Donetick is an open-source, user-friendly app designed to help you organize tasks and chores effectively. featuring customizable options to help you and others stay organized

![Screenshot](assets/screenshot.png)


![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/donetick/donetick/go-release.yml)
![GitHub release (latest by date)](https://img.shields.io/github/v/release/donetick/donetick)
![Docker Pulls](https://img.shields.io/docker/pulls/donetick/donetick)


[![Discord](https://img.shields.io/discord/1272383484509421639)](https://discord.gg/6hSH6F33q7)
[![Reddit](https://img.shields.io/reddit/subreddit-subscribers/donetick)](https://www.reddit.com/r/donetick)

---

## Features

### Task & Chore Management
**Collaborative**: Create and manage tasks either solo or with family and friends. You can create a group and share or assign some of the tasks or chores with others.

**Natural Language Task Creation**: Describe what you need to do in plain English. Donetick automatically extracts dates, times, and recurrence patterns from phrases like “Change water filter every 6 months” or “Take the trash out every Monday and Tuesday at 6:15 pm.”

**Task Advanced Scheduling**: 
- Supports flexible scheduling: daily, weekly, monthly, yearly, specific months, specific days of the week, or even adaptive scheduling — where Donetick learns from historical completions to suggest due dates automatically.
- Due Date vs Completion Date Based Recurrence: Choose whether recurring tasks should be scheduled from the previous due date (ideal for a consistent cadence) or from the actual completion date (useful when tasks are often delayed).
- Assignee Rotation: Automatically rotate task assignments based on who has completed the fewest tasks, randomly, or in turns(round-robin) order.
- Time Tracking & Session Insights: Track how much time you spend on a task whether in a single session or across multiple.
  
**Subtasks with Smart Reset**: Break tasks into smaller steps with subtasks, each trackable on its own. For recurring tasks, subtasks automatically reset when the main task is completed. subtasks can be nested as well!

**Organize with Priorities and Labels**: Organize everything using custom labels and priorities. Labels can be shared across your group, making it easy to filter and sort tasks by category. Priorities help you stay focused  Donetick supports five levels: P1, P2, P3, P4, and No Priority.

**Add Photos**: Attach photos directly to tasks. Supports local storage (WIP) or cloud providers including AWS S3, Cloudflare R2, MinIO, and other S3-compatible services.

**Things**: A unique feature in Donetick. “Things” let you track data that isn’t a task. A Thing can be a number, boolean (true/false), or plain text. You can also mark tasks as done automatically when a Thing changes to a certain value.

**NFC Tag Support**: Create physical triggers by writing NFC tags that instantly mark tasks as complete when scanned.

### Gamification & Progress
**Points System**: Built-in points system that rewards task completion and tracks your progress over time.

**Completion Restrictions** : You can restrict task completion until a certain time, for example, make a task completable only within the last X hours before its due date. This helps prevent marking tasks as "done" too early.

**Comprehensive Analytics**: See task breakdowns by label, completion status, and other helpful graphs.

### Security & Authentication
**Multi-Factor Authentication**: Supports TOTP-based MFA.

**Multiple Sign-In Options**: Choose from local accounts or any OAuth2 provider that supports OIDC, like Keycloak, Authentik, Authelia, etc. (Tested with Authentik.)

### Notifications & Integrations

**Dashboard View**: If you’re on a larger screen (like a laptop or tablet) and logged in as an admin, Donetick shows a mount-friendly dashboard layout. a full task list, calendar, and recent activity all in one place. Perfect for wall-mounted displays or shared tablets. With the ability for any user to pick their account and complete a task on the go!

**Realtime Sync**: Enable realtime sync to instantly reflect task changes across all connected devices and users.  whether you are adding, editing, or completing a task. It reflects immediately on enabled devices!

**Offline Support**: You can access donetick if you lose connection and navigate some areas, but this is very limited functionality at the moment. 

**Multi-Platform Notifications**: Get reminders through the mobile app (we have an alpha iOS app on TestFlight, and the Android APK is available in releases), as well as via Telegram, Discord, or Pushover.

**Home Assistant Integration**: Manage and view tasks directly within Home Assistant using the official integration. It creates separate to-do lists for each Donetick user. Donetick Home Assistant Integration

### Developer & API Features
**REST API**: Full access to Donetick’s features through a REST API, great for custom automations and integrations. (For external use, we recommend using the eAPI, which offers limited access intended for long-lived access tokens.)

Reward and redemption endpoints under `/api/v1/rewards` accept either a JWT or an API token in the `secretkey` header. API tokens act as their owner: members can request rewards for themselves and view their own redemption history; admins and managers can also manage rewards and approve or reject redemptions within their circle.

**Webhook System**: Connect Donetick to external systems using flexible webhook support good for custom notification flows or automations.

**MCP Server**: Let AI assistants manage your tasks through a built-in [Model Context Protocol](https://modelcontextprotocol.io) server. It works through the REST API, with the same access tokens and permissions. See [MCP Server](#mcp-server).

---

## Quick Start
> [!NOTE]
> On first startup with `DT_ENV=selfhosted`, Donetick automatically generates a `config/selfhosted.yaml` from [this template](https://github.com/donetick/donetick/blob/main/config/selfhosted.yaml.example) with a random JWT secret. To customize settings, edit the generated file and restart the application. You can also override any setting via environment variables (e.g. `DT_JWT_SECRET`, `DT_DATABASE_TYPE`).



### Using Docker
1. **Pull the latest image:**
   ```bash
   docker pull donetick/donetick
   ```
2. **Run the container:** Replace `/path/to/host/data` and `/path/to/host/config`:
   ```bash
   docker run \
     -v /path/to/host/data:/donetick-data \
     -v /path/to/host/config:/config \
     -p 2021:2021 \
     -e DT_ENV=selfhosted \
     -e DT_SQLITE_PATH=/donetick-data/donetick.db \
     -e TZ=Etc/UTC \
     --health-cmd "wget --no-verbose --tries=1 --spider http://localhost:2021/api/v1/health || exit 1" \
     --health-start-period 1m \
     --health-timeout 5s \
     --health-interval 1m \
     --health-retries 3 \
     donetick/donetick
   ```

### Using Docker Compose
Use this template to set up Donetick with Docker Compose:
```yaml
services:
  donetick:
    image: donetick/donetick
    container_name: donetick
    restart: unless-stopped
    ports:
      - 2021:2021
    volumes:
      - ./data:/donetick-data
      - ./config:/config
    environment:
      - DT_ENV=selfhosted
      - DT_SQLITE_PATH=/donetick-data/donetick.db
      - TZ=Etc/UTC
    healthcheck:
      test: wget --no-verbose --tries=1 --spider http://localhost:2021/api/v1/health || exit 1
      start_period: 1m
      timeout: 5s
      interval: 1m
      retries: 3
      
```


### Using the Binary
1. **Download the latest release** from the [Releases](https://github.com/donetick/donetick/releases) page.
2. **Extract the file** and navigate to the folder:
   ```bash
   cd path/to/extracted-folder
   ```
3. **Run Donetick:**
   ```bash
   DT_ENV=selfhosted ./donetick 
   ```

---



## Development Environment

### Build the frontend

1. Clone the frontend repository:
   ```bash
   git clone https://github.com/donetick/frontend.git donetick-frontend
   ```
2. Navigate to the frontend directory:
   ```bash
   cd donetick-frontend
   ```
3. Install dependencies:
   ```bash
   npm install
   ```
4. Build the frontend:
   ```bash
   npm run build-selfhosted
   ```
5. If you want to work on the frontend you can run:
   ```bash
   npm start
   ```


### Build the application

1. Clone the repository:
   ```bash
   git clone https://github.com/donetick/donetick.git
   ```
2. Navigate to the project directory:
   ```bash
   cd donetick
   ```
3. Install dependencies:
   ```bash
   go mod download
   ```
4. Copy the frontend build to the application:
   ```bash
   rm -rf ./frontend/dist
   cp -r ../donetick-frontend/dist ./frontend
   ```
5. Run the app locally (a `config/selfhosted.yaml` with a secure JWT secret is generated automatically on first startup):
   ```bash
   go run .
   ```
   Or build the application:
   ```bash
   go build -o donetick .
   ```

### Build the development Docker image

> Make sure to build the frontend and the app first before building the Docker image.

1. Build the Docker image:
   ```bash
   docker build -t donetick/donetick -f Dockerfile.dev .
   ```

---

## Single-Circle Instance Mode & OIDC Group-Based Roles

These features are designed for self-hosted single-household deployments where circle management should be hidden from end users and roles should be managed via your OIDC identity provider.

### Environment Variables

| Variable | Type | Default | Description |
|---|---|---|---|
| `DT_SINGLE_CIRCLE_INSTANCE` | bool | `false` | Hides circle-management UI and disables join/leave/delete-member/accept-request endpoints. New OIDC users are added to a shared household circle (ID 1) instead of getting a personal circle. |
| `DT_OAUTH2_ADMIN_GROUPS` | comma-separated strings | *(empty)* | OIDC group names that grant the `admin` role. |
| `DT_OAUTH2_MANAGER_GROUPS` | comma-separated strings | *(empty)* | OIDC group names that grant the `manager` role. |
| `DT_DISABLE_PASSWORD_AUTH` | bool | `false` | SSO-only: disables password login. |

### Role Resolution Rules

Role sync runs **on every OIDC login** (not just first-time user creation), so your IdP is the source of truth. Removing someone from the admin group in your IdP will demote them on their next login.

- If user is in any **admin group** -> `admin` (admin takes priority over manager)
- Else if user is in any **manager group** -> `manager`
- Else -> `member`
- If **neither** `DT_OAUTH2_ADMIN_GROUPS` **nor** `DT_OAUTH2_MANAGER_GROUPS` is configured, roles are not modified at all (preserves existing behavior).

Group matching is **exact-string and case-sensitive**.

### Example: Authentik Configuration

1. Create groups in Authentik (e.g., `donetick-admins`, `donetick-managers`).
2. Ensure your Authentik OAuth2 provider includes the `groups` scope and that the `groups` claim is returned in the userinfo endpoint.
3. Set the environment variables:
   ```yaml
   environment:
     - DT_SINGLE_CIRCLE_INSTANCE=true
     - DT_OAUTH2_ADMIN_GROUPS=donetick-admins
     - DT_OAUTH2_MANAGER_GROUPS=donetick-managers
     - DT_DISABLE_PASSWORD_AUTH=true
   ```

---

## MCP Server

Donetick includes a [Model Context Protocol](https://modelcontextprotocol.io) (MCP) server, so AI assistants and other MCP clients can read and manage your tasks. Donetick serves it itself at `/mcp`; there is nothing extra to run.

It is off by default. Turn it on with the `DT_MCP_ENABLED=true` environment variable, or in the config file:

```yaml
mcp:
  enabled: true
```

Then give your MCP client the URL `https://<your-donetick-host>/mcp` (Streamable HTTP transport) and a Donetick API token (a long-lived access token) as a bearer token. For example, with Claude Code:

```bash
claude mcp add --transport http donetick https://<your-donetick-host>/mcp --header "Authorization: Bearer <api token>"
```

The token can also be sent in the `secretkey` header, as with the rest of the API.

### Tools

| Area | Tools |
|---|---|
| Tasks | `list_chores`, `get_chore`, `create_chore`, `update_chore`, `complete_chore`, `skip_chore`, `archive_chore`, `unarchive_chore`, `delete_chore`, `get_chore_history`, `list_recent_activity` |
| Labels | `list_labels`, `create_label`, `update_label`, `delete_label` |
| Projects | `list_projects`, `create_project`, `update_project`, `delete_project` |
| Filters | `list_filters`, `create_filter`, `update_filter`, `delete_filter` |
| Things | `list_things`, `create_thing`, `update_thing`, `set_thing_state`, `delete_thing` |

### Good to know

- Every tool goes through the REST API (`/api/v1`) as the owner of the token. The API's own permission checks and validation apply, and webhooks and notifications fire as usual.
- Nothing that manages users, circles or API tokens is available through MCP.
- The `update_*` tools change only the fields they are given; everything else keeps its current value.
- A task triggered by a Thing can only be updated by the owner of that Thing.
- People appear as numeric user ids, the same ids the API uses.
- Requests sent by web pages (those with an `Origin` header) are refused unless the origin is the Donetick host itself or is listed in `server.cors_allow_origins`.
- Both the stateless MCP revision (`2026-07-28`) and the earlier handshake-based revisions (`2025-03-26` to `2025-11-25`) are supported. The server keeps no session state.

---

## Contributing
Contributions are welcome! If you want to work on something that is not already listed as an open, tagged issue, please open a [Discussion](https://github.com/donetick/donetick/discussions)  or reach out on [Discord](https://discord.gg/yyRDcwd3) first to ensure it aligns with our goals and to avoid any unnecessary effort.

**Please note:** Pull Requests that are submitted without prior discussion or do not address an existing tagged issue will be deprioritized in the review queue.

## Code Formatting and Linting

We use `golangci-lint` and `ruleguard` for linting and formatting. CI enforces lint checks on all pull requests.

To run lint checks locally, install the pinned version:
```
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.64.8
go install github.com/quasilyte/go-ruleguard/cmd/ruleguard@v0.4.5
```

Run lint checks:
```
golangci-lint run
```

Apply safe fixes:
```
golangci-lint run --fix
```

---

## License

This project is licensed under the **AGPLv3**. See the [LICENSE](LICENSE.md) file for more details.

---

## Join the Discussion
For ideas or feature requests, please use GitHub Discussions. We also have a Discord server and a subreddit for those who prefer those platforms!


[![Discord](https://img.shields.io/discord/1272383484509421639)](https://discord.gg/6hSH6F33q7)
[![Reddit](https://img.shields.io/reddit/subreddit-subscribers/donetick)](https://www.reddit.com/r/donetick)

[![Github Discussion](https://img.shields.io/github/discussions/donetick/donetick)](https://github.com/donetick/donetick/discussions)

---

## Support Donetick

 If you find it helpful, consider supporting us by starring the repository, contributing code, or sharing feedback!  

---

Discover more