# TimeWren > TimeWren is open-source time tracking with prepaid hours, clients, projects, tasks and invoicing. It is self-hosted with Docker (one image, PostgreSQL, a small cron container) and has a REST API and an MCP server. Every page below is plain Markdown. The whole English documentation in one file: https://timewren.com/llms-full.txt. Source code: https://github.com/timewren/timewren. The docs are also available in Danish (https://timewren.com/da/docs), German (https://timewren.com/de/docs) and Spanish (https://timewren.com/es/docs). ## Docs - [TimeWren documentation](https://timewren.com/docs.md): Install, configure, run and integrate TimeWren, the open-source time tracker with prepaid hours and invoicing. - [Quickstart](https://timewren.com/docs/quickstart.md): From an empty Linux server to your first tracked hour: install TimeWren, create the admin account and log time against a prepaid package. - [Use these docs with your LLM](https://timewren.com/docs/llm.md): Give the TimeWren docs to Claude Code, Cursor, Codex or ChatGPT, with ready-made prompts to install, upgrade, debug and integrate. - [Contributing](https://timewren.com/docs/contributing.md): Set up a development environment, run the checks, sign off your commits and find your way around the code and docs. ## Concepts - [Prepaid hours](https://timewren.com/docs/concepts/prepaid-hours.md): How prepaid hour packages (klippekort) work in TimeWren: balance, deductions, overdraft, alerts, renewal and the rate hierarchy. ## Install - [One-line install](https://timewren.com/docs/install/quick.md): Install TimeWren on a Linux server with Docker using one command: it generates secrets, starts the stack and waits until the app is healthy. - [Docker Compose](https://timewren.com/docs/install/docker-compose.md): Run TimeWren with the prebuilt image, PostgreSQL and a scheduler using Docker Compose, with optional Valkey and automatic HTTPS. - [Coolify](https://timewren.com/docs/install/coolify.md): Deploy TimeWren on Coolify as a Docker Compose resource with generated secrets, PostgreSQL and a scheduler. - [Dokploy](https://timewren.com/docs/install/dokploy.md): Deploy TimeWren on Dokploy from a custom template with a generated domain, four generated secrets and named volumes. - [Railway](https://timewren.com/docs/install/railway.md): Deploy TimeWren on Railway with a web service, PostgreSQL, a storage volume and a separate scheduler service. - [Render](https://timewren.com/docs/install/render.md): Deploy TimeWren on Render from the repository Blueprint: a web service with a disk, a scheduler worker and managed PostgreSQL 18. - [Kubernetes](https://timewren.com/docs/install/kubernetes.md): Install TimeWren on Kubernetes with the Helm chart: optional bundled PostgreSQL and Valkey, a persistent volume, Ingress and one CronJob per scheduled endpoint. - [From source](https://timewren.com/docs/install/from-source.md): Build the TimeWren image yourself from a clone with Docker Compose, or run the development server with Node.js and PostgreSQL. ## Configuration - [Environment variables](https://timewren.com/docs/configuration/environment.md): Complete reference of every TimeWren environment variable: defaults, which ones are required, which are baked in at build time, and what each one does. - [Email](https://timewren.com/docs/configuration/email.md): Send mail from TimeWren with SMTP or Resend, choose the transport, set sender addresses and check that delivery works. - [File storage](https://timewren.com/docs/configuration/storage.md): Where TimeWren keeps uploads, attachments and exports: a local Docker volume or an S3-compatible bucket. - [Authentication](https://timewren.com/docs/configuration/authentication.md): Sign-in methods in TimeWren: email and password, magic link, passkeys, 2FA, SMS, OAuth providers, the first admin account and secret rotation. - [AI](https://timewren.com/docs/configuration/ai.md): Run TimeWren's AI features on a local model with Ollama, an EU provider or your own key, and control what is sent. ## Operations - [Upgrading](https://timewren.com/docs/operations/upgrading.md): Update a self-hosted TimeWren instance safely: back up, pull, restart, pin versions and recover from a failed migration. - [Backup and restore](https://timewren.com/docs/operations/backup-restore.md): Back up the database, the storage volume and your encryption key, restore them into a fresh stack and verify the result. - [Reverse proxy and TLS](https://timewren.com/docs/operations/reverse-proxy.md): Put TimeWren behind Caddy, Traefik or nginx with HTTPS, and set the public URL and trusted origins correctly. - [Troubleshooting](https://timewren.com/docs/operations/troubleshooting.md): Fix common problems with a self-hosted TimeWren instance: startup, sign-in, mail, uploads, cron jobs and migrations. ## Integrations - [Billy](https://timewren.com/docs/integrations/billy.md): Connect Billy, the Danish accounting system, to TimeWren: import contacts, export clients and invoices, and sync payment status. - [Dinero](https://timewren.com/docs/integrations/dinero.md): Connect Dinero, the Danish accounting system, to TimeWren via Visma Connect OAuth: import contacts, export invoices and sync payments. - [e-conomic](https://timewren.com/docs/integrations/e-conomic.md): Connect e-conomic to TimeWren with an app you register yourself: import customers, export clients and invoices, and sync payment status. - [Calendar](https://timewren.com/docs/integrations/calendar.md): Connect Google Calendar, Outlook or iCloud to TimeWren to see meetings, plan time blocks and turn events into time entries. - [CVR lookup](https://timewren.com/docs/integrations/cvr.md): Fill in Danish company details from the CVR register when you create a client. Works without configuration through cvrapi.dk. - [E-invoice (OIOUBL and Peppol)](https://timewren.com/docs/integrations/einvoice.md): Download an issued invoice as Peppol BIS Billing 3.0 or OIOUBL 2.1 XML, with the client details and VAT rules an e-invoice needs. - [Automation (Zapier, Make, n8n)](https://timewren.com/docs/integrations/automation.md): Connect TimeWren to Zapier, Make, n8n or any HTTP tool with an API key and outgoing webhooks. ## Apps - [Desktop app](https://timewren.com/docs/apps/desktop.md): The TimeWren desktop app tracks activity automatically and syncs with your server. What the server provides, how devices sign in, and how to offer your own builds. - [Mobile app](https://timewren.com/docs/apps/mobile.md): The TimeWren mobile app and what your self-hosted server provides for it: device login, push notifications and minimum versions. - [Browser extension](https://timewren.com/docs/apps/browser-extension.md): The TimeWren browser extension for Chrome and Firefox: timer, quick entries and prepaid balance in the toolbar. Connects to TimeWren Cloud or your own server. ## API - [REST API](https://timewren.com/docs/api/rest.md): Authenticate with an API key and manage clients, projects, time entries, the timer, invoices and prepaid packages over JSON. - [Webhooks](https://timewren.com/docs/api/webhooks.md): Subscribe to TimeWren events with signed outgoing webhooks, manage them through the REST API and verify the HMAC signature. - [MCP server](https://timewren.com/docs/api/mcp.md): Connect Claude, Cursor, Codex and other MCP clients to TimeWren to log time, check prepaid hours and prepare invoices. ## Optional - [Full documentation](https://timewren.com/llms-full.txt): every page above in one Markdown file