Quickstart
Run Knotworking on your own server with Docker Compose, claim the workspace, pick General Business or Food Manufacturing and invite your team.
Install with an AI agent
Copy this prompt into a coding agent that has terminal access to the machine where you want to install Knotworking. You can also read the Markdown install guide.
Set up Knotworking ERP using the instructions in this Markdown file.
https://knotworking.dev/docs/agent-install.md
Requirements
- A machine with Docker and the Compose plugin: a server in the office, a NAS or a small cloud VM.
- Git, to fetch the source. Knotworking is a source release, so Compose builds the images on your machine.
- For a team of around 30 with light use, 1 vCPU and 1 to 2 GB of RAM is plenty.
- For HTTPS, a domain that points at the server. On a local network, plain HTTP is fine.
Configure
Get the code from the public repository and copy the example settings.
git clone https://github.com/knotworking-oss/knotworking.git
cd knotworking
cp deploy/env.example deploy/.env
Open deploy/.env and set three values. Everything else is optional, and Configuration covers it.
| Setting | What to put |
|---|---|
APP_URL | The exact address your team will type, such as http://192.168.1.20:3000 or https://knot.example.com. Sign-in cookies and email links depend on it. |
BETTER_AUTH_SECRET | The output of openssl rand -base64 32, at least 32 characters. Back it up: losing it signs everyone out. |
POSTGRES_PASSWORD | The output of openssl rand -hex 24. Use letters and digits only, because it goes into the database URL as it is. |
Start
docker compose --env-file deploy/.env up -d --build
This builds the images from the source in your checkout, then starts Caddy, the web app, the API, Postgres and the MCP server. The first build takes a few minutes. Database migrations run each time the API container starts.
Only Caddy publishes a port, HTTP_PORT (3000 by default). The other services talk to each other on the private Compose network and can't be reached from outside. Leave it that way, and don't add ports: to them. Why the API stays private.
Claim the workspace
A fresh installation has no users. The API prints a one-time setup link in its log. Open it to create the workspace and its owner.
docker compose --env-file deploy/.env logs api | grep setup
# Finish setting up Knotworking: http://192.168.1.20:3000/setup?token=…
Because the code comes from the log, nobody else on the network can claim the installation before you do. Setup only works while there are no users. To get a new link, run docker compose restart api, or set your own code with SETUP_TOKEN.
Choose a workspace setup
The setup form asks which Workspace setup to start from, and General Business is selected for you.
| Setup | Starts with |
|---|---|
| General Business | Projects, documents, assets, people operations, purchase approvals, client services and health and safety. |
| Food Manufacturing | Every module the server offers, adding production, stock, purchasing, traceability and food safety. |
- The server decides what is on offer.
KNOTWORKING_MODULESindeploy/.envis unset by default, which offers everything except Calendar, Dashboards, Invoicing and Accounting. Name those in it, or useall, if you want them. - Change the choice later under Workspace settings, Modules. Hiding a module deletes nothing.
- Add Maintenance or Checklists if you need recurring asset work or routine checks. Maintenance requires Assets; Site programmes uses Checklists for its food checks.
- Choosing a setup doesn't give anyone access. Grant each person their modules under Members, Module access. Modules explains the three switches.
Invite your team
Go to Members, then Invite people. Knotworking is invite-only: there is no public sign-up, and only invited addresses can create an account.
- With email set up (SMTP), invitations are sent for you.
- Without email, the invite dialog shows a link and a QR code to share. Each link works once and expires after seven days.
Once people are in, try Projects, Use template to start from one of ten templates, such as Employee onboarding or Client kickoff, or open Operations, Purchase requests to send a first approval.
Next steps
- Put it on a domain with HTTPS. Calendar sync needs it.
- Connect an agent with a personal API token.
- Schedule backups before the team relies on it.