To install Activepieces self hosted, run the official Docker Compose setup on a Linux server with at least 2 vCPUs, 4 GB of RAM, and 30 GB of disk, generate your own secrets, start the stack with docker compose up -d, and open the app on port 8080. The Community Edition is free under the MIT licence. In our worked example, self-hosting avoids the $240-a-year Plus subscription.
Hosted automation charges you for every run. The more your business automates, the larger the monthly bill grows. When you install Activepieces self hosted, that meter moves to your own server. The Community Edition carries a $0 licence fee, and your flows run on hardware you control.
Quick Answer
To install Activepieces self hosted, run the official Docker Compose setup on a Linux server with at least 2 vCPUs, 4 GB of RAM, and 30 GB of disk, generate your own secrets, start the stack with docker compose up -d, and open the app on port 8080. The Community Edition is free under the MIT licence. In our worked example below, self-hosting avoids the $240-a-year Plus subscription.
In this article
- How we checked this guide
- What Activepieces replaces, and what it does not
- How Activepieces flows and credits work
- Routes: Community Edition, Cloud plans, or Enterprise control
- Requirements before you install Activepieces self hosted
- Step 1: prepare the server and Docker
- Step 2: get the Compose files and generate secrets
- Step 3: start the stack and create the admin account
- Step 4: add your domain, HTTPS, and webhook address
- Step 5: build and test your first flow
- First-login security steps you must not skip
- Backup and update routine
- Common errors and fixes
- Tips and tricks that save money
- The real cost maths
- When not to self-host Activepieces
- Pros and cons
- Our verdict
- FAQ
- Strategic Pivot
- Sources
How we checked this guide
We verified every install step, requirement, and licence fact on the official Activepieces documentation, the official Activepieces GitHub repository, and the official Activepieces Docker setup guide on December 3, 2026. Paid comparison prices come from the official Activepieces pricing page, checked the same day. Nothing here is copied from a roundup.
Where the official pages name a limit — a RAM floor, a credit allowance, a plan price — we say so plainly. If a claim could not be verified on an official page, it stays out of this guide.
What Activepieces replaces, and what it does not
Activepieces replaces the per-run automation bill. Hosted tools meter every workflow run, so a busy month of lead alerts, invoice reminders, and AI replies becomes a bigger invoice. Self-hosted Activepieces runs those same flows on your server. The number of runs is limited by your hardware, not by a monthly credit allowance.

It also replaces the fragile chain of one-off scripts. Instead of a cron job here and a webhook script there, you build each automation as a flow: a trigger starts the chain, and action steps move data between your apps. Integrations are called pieces, and anything with an API can also connect through the HTTP piece or a webhook, as the pricing page notes.
What Activepieces does not replace is judgement about what to automate. It will happily run a bad process a thousand times. It also does not replace the apps themselves: your CRM, mailbox, and spreadsheets stay where they are. Activepieces is the conveyor belt between them. If you are still choosing an automation platform, read our n8n on a VPS guide and our Zapier alternatives for small business automation before you commit.
Think of Activepieces as a switchboard in your office. Calls come in from one app, and the board routes them to the right desk. The board does not do the work. It makes sure the work reaches the right place.
Best for: owners and operators who run automations every day and want the automation core on their own server under a permissive MIT licence. Skip if: nobody on your team can secure and update a server — the hosted Cloud plans will feel easier and safer.
How Activepieces flows and credits work
An Activepieces flow is a chain of steps. A trigger decides when the chain starts: a schedule, a webhook from another app, or an event in a connected tool. Action steps then move data along the chain. Each complete run of the flow is one run.
On the hosted Cloud plans, usage is metered in credits. The pricing page explains the unit plainly: a run is one credit however many steps it has, and AI sits on top. An AI step costs what the model call actually cost, turned into credits, so a short call on a small model costs little and a long one on a large model costs more. Each agent tool call is 1 credit. On Plus and above you can connect your own AI provider keys, which makes every AI step 1 credit and moves the model cost to your provider bill instead.
That credit definition matters for cost. On Cloud, every plan includes a monthly credit allowance, and what happens when you run out depends on the plan. On Free, runs past your quota do not go through until credits refresh next month. On Plus and Team, runs keep going and you pay for the extra at $0.007 per credit. On your own server, there is no vendor credit meter. Your ceiling is CPU, memory, and how well you designed the flow.
One honest limit belongs here, not in a footnote. The pricing page states that the Community Edition is the automation core on its own. Paying adds the layer you need once more than a couple of people depend on it: controlling who has access, seeing who changed what, keeping teams separate, and running Agents and Chat. The free self-hosted route is powerful, and it is not the whole product.
Routes: Community Edition, Cloud plans, or Enterprise control
Activepieces offers three practical routes. Choosing well matters more than any single setting.
| Route | Licence / price anchor | Best for | Skip if |
|---|---|---|---|
| Community Edition (self-hosted) | $0 licence, MIT | Teams who want uncapped runs on their own server | Nobody can maintain a Linux server |
| Cloud Free | $0, 1,000 credits a month | Testing one real workflow before you commit | Your volume passes 1,000 credits a month |
| Cloud Plus | $20 flat per month | Daily builders who need more credits with zero server work | You need SSO or more than 5 users |
| Cloud Team | $200 flat per month | Growing teams needing SSO and 25 users | You only need the core automation engine |
| Enterprise control | Custom, quoted by sales | Data that must stay on your own servers with enterprise controls | You have no enterprise requirement |
The Community Edition is the route this guide installs. It is free under the MIT licence, which the official Docker guide notes carries no per-seat fee. The Cloud plans trade money for convenience: Activepieces runs the servers, and you stay inside a credit allowance. Enterprise control runs Activepieces on your own servers, or fully air-gapped, on your security team’s terms, at a price set by sales rather than a public list.
Requirements before you install Activepieces self hosted
Start with the server. The official Docker setup guide names the minimum plainly: 2 vCPUs, 4 GB of RAM, and 30 GB of disk. Treat that as a floor, not a target. A server at half the required memory is the one most likely to have containers killed under load.

The official Docker Compose setup runs four containers. The app container serves the API and UI on port 8080. The worker container runs your flows. The postgres container holds flows, runs, and connections. The redis container holds the job queue. Your data lives in the postgres_data Docker volume, not in the project folder, so backing up the folder alone does not back up your flows.
Plan the network before you install anything. The app listens on port 8080. Your reverse proxy should be the only public door, serving your domain over HTTPS. PostgreSQL and Redis stay private behind it. Webhook addresses and OAuth callbacks are built from your public URL, so that address must be correct before you register any webhook with a third party.
Finally, check the licence position for your use. The Community Edition is free under the MIT licence. In its own words, MIT grants permission to use, copy, modify, merge, publish, distribute, sublicense, and sell the software without restriction, and the software is provided as is, without warranty. For a small business automating its own work, the free route is permitted. SSO beyond the Team plan, audit logs, and embedding sit behind paid or sales-led arrangements.
Step 1: prepare the server and Docker
Choose a Linux server that clears the minimum: at least 2 vCPUs, 4 GB of RAM, and 30 GB of disk. Create a normal user account for daily work. Keep root login for emergencies only.
Install Docker Engine and the Compose plugin from Docker’s own repository rather than your distribution’s older package. Then confirm both tools respond:
docker --version
docker compose versionEach command should print a version number. If the second command fails, the Compose plugin is missing. Fix that first, because every later step depends on it.
Point a subdomain at the server now. A name such as flows.example.com needs a DNS record that resolves to your server. You will use that hostname for the builder, for webhooks, and for the TLS certificate. Doing DNS early saves waiting later, because certificates cannot be issued until the name resolves.
Set the server timezone to your business timezone. Scheduled flows read the clock you give them. A server left on a default timezone will fire your morning report at the wrong hour, and you will blame Activepieces for your own setting.
Step 2: get the Compose files and generate secrets
The documentation offers two routes to the same four containers. The recommended route installs with one command: one line writes the config, generates your secrets, and starts everything, run in the folder where you want Activepieces to live. The manual route suits anyone who would rather not pipe a remote script into a shell, or whose change process needs the compose file in front of it before anything starts.

For the manual route, download the compose file and the example environment file from the project repository into an empty directory, and copy the example to .env. Everything that makes the instance yours lives in that file, so treat it like a credentials store and keep it out of version control.
Generate your secrets next. The documented helper copies .env.example to .env and fills in the passwords and keys. It needs openssl. If openssl is missing, it can still report success while leaving the values blank, so check every value before you continue. If any is empty, install openssl and run the helper again.
Replace every placeholder secret before the first start. Set your own random values for AP_ENCRYPTION_KEY and AP_JWT_SECRET, and set the database password in the same pass. Give each variable its own value. Stored connection credentials are encrypted with a key only you hold, and changing the encryption key after connections exist leaves those saved connections unreadable. Copy the encryption key into a password manager now, not after the first outage.
Set the edition deliberately. The documentation warns that without the edition setting you get the Community edition, and you will not be able to activate a license key later. Decide now whether this instance stays Community or may later carry a paid licence, and set the file accordingly. Also note the documented trap: the example file ships an execution-mode value that the server rejects at startup on the enterprise edition, so follow the edition notes in the guide rather than copying values blindly.
Point the worker at the app. In docker-compose.yml, give the worker service its own AP_FRONTEND_URL. Both services share .env, where AP_FRONTEND_URL is your public URL. That address means the app to a browser but myself to the worker container, so without this override the worker cannot open its socket and the Workers page stays empty.
Step 3: start the stack and create the admin account
From the directory holding both files, start the stack in the background:
docker compose up -d
docker compose psEvery service should show as running, not restarting. A service stuck restarting usually means a missing or malformed value in .env, and docker compose logs names the variable. All four containers should be Up, and the health endpoint should respond.
Open the app in your browser at the server address on port 8080, or at http://localhost:8080 on a local install. The first account you create becomes the platform administrator. There is no default username or password. Do this immediately, before the address has been shared with anyone. Use a strong password and an email address you control. This account is the keys to every credential you will store, so treat it that way.
Confirm the worker is alive. Sign in and open Platform Admin, then Operations, then Workers. You should see at least one worker. If the list is empty, the worker override from Step 2 is the first place to check.
Do not connect real business accounts yet. First confirm the builder loads, and run a manual test flow. A two-step test — a manual trigger and a simple action — proves the engine works before you trust it with customer data.
Step 4: add your domain, HTTPS, and webhook address
A public Activepieces needs a proper front door. Put a reverse proxy in front of the app container to terminate TLS, with a certificate for your subdomain. The official guide names Caddy, which obtains and renews certificates by itself, and nginx with Certbot, which does the same with more manual wiring. Port 8080 stays private behind the proxy.
Set the public address before you build anything that depends on it. Point AP_FRONTEND_URL at the full HTTPS address your users will type, for example https://flows.example.com, then restart the containers. Webhook addresses and OAuth callbacks then show that domain, not localhost. Left at its default, the instance builds links around an internal address, and external services post to an address that does not exist.
Webhooks and app triggers need an address third parties can reach. If your server already has a public URL, skip the tunnel. On a personal machine, expose the app with a tunnel such as ngrok, set AP_FRONTEND_URL to the tunnel URL, and restart.
Test from outside your own network. Open the address in a browser and confirm the padlock. If the certificate is self-signed, many senders will refuse to deliver, so you will find out at the worst moment. Confirm the plain port is not reachable from the internet. If both checks pass, your front door is doing its job.
Step 5: build and test your first flow
Start with one flow that earns its keep. A good first candidate is a lead alert: a form submission triggers a message to your team chat and a row in a spreadsheet. It is small, visible, and easy to verify.
Build it in stages. Create a flow, choose the webhook trigger, and keep the second step simple, such as a row append or a message. Copy the address the trigger displays, check that it begins with your public hostname, and send a request from a machine outside your network:
curl -X POST "$WEBHOOK_URL"
-H "Content-Type: application/json"
-d '{"invoice": "test", "status": "unpaid"}'Then return to the trigger and load the sample data. The JSON you sent should appear as the trigger’s output, and later steps can reference its fields. If it does not, read the failure literally. A connection error points at DNS, the proxy, or the firewall. A certificate error points at TLS. A response from the proxy that never reaches the app points at the forwarding rule.
Connect credentials one at a time. Each connected app asks for an API key or an OAuth sign-in. Create those keys with the narrowest permissions the flow needs. A flow that only reads a spreadsheet should not hold a key that can delete your drive.
Run the test once more after restarting the containers. A flow that only works until the first restart is not reliable, and this is the cheapest moment to learn that. Then send one real event through it and watch the run history. A flow that ran once by hand and once for real is ready. A flow that has only ever run by hand is a hope, not a system.
Add error handling before you scale up. Decide what happens when an app is down: retry, log, or alert a human. Silent failure is the worst outcome, because the business believes the automation ran. A simple error notification turns a hidden outage into a five-minute fix.
First-login security steps you must not skip
The admin account you created is the master key. Protect it first. Use a long, unique password. Store it in a password manager, not in a note on the server.
Keep the encryption key safe and consistent. Every credential stored in your connections is protected by this key, and the instance cannot recover them if you lose it. Back the key up away from the server. A backup of the database without the key cannot restore your credentials.
Keep the private ports private. Only your reverse proxy should reach port 8080. PostgreSQL and Redis should never face the internet. Publish only the web port behind the proxy, and firewall the rest. Anyone who finds an exposed queue service can read and alter whatever your queue holds.
Review who can build flows. Anyone who can edit a flow can reach the credentials it uses. Invite only the people who need that power. A small team with clear ownership beats a long user list nobody audits. Remember the boundary from the pricing page: the Community Edition is the automation core on its own, and the team access layer sits in paid arrangements.
Backup and update routine
Back up the right things. Your flows, runs, and connections live in the postgres_data Docker volume. The .env file holds your secrets and configuration. The compose file holds the stack definition. A backup missing any one of the three is a partial rescue, and backing up the project folder alone does not back up your flows.
Copy backups off the server. A backup on the same disk dies with the disk. Schedule the copy, then test a restore into a scratch instance before you trust it. A backup you have never restored is a hope, not a control. A tested restore is a plan.
Update on a rhythm, not on impulse. The documented routine starts with a backup, then upgrades the stack. Your .env, your data, and any edits to docker-compose.yml are left alone by the upgrade. Read the release notes before every upgrade, because pulling the newest image is a change to production, not housekeeping. If the upgrade fails, the backup is your rollback.
Update during a quiet hour, then run your most important flow once by hand. If it passes, the update is done. If it fails, your backup turns a bad evening into a short rollback. Never delete volumes during an update. Stopping containers is routine. Deleting the data volume is a rebuild.
Common errors and fixes
A service keeps restarting. Check the container state first with docker compose ps. If a service is restarting, read its logs with docker compose logs. Most first-boot failures are a missing or malformed value in .env, and the logs name the variable.
Secret values are blank after setup. The secrets helper needs openssl. Without it, the helper can report success while leaving values empty. Install openssl, run the helper again, and confirm every value is filled before starting.
The Workers page is empty. The worker cannot reach the app. Give the worker service its own AP_FRONTEND_URL override in docker-compose.yml, as Step 2 describes, then restart and check Platform Admin, Operations, Workers again.
Webhooks never fire. The public URL is probably wrong. Confirm AP_FRONTEND_URL matches your real HTTPS domain, and confirm the domain resolves to the server. A flow can be perfect and still receive nothing if callers are knocking on the wrong address.
Saved connections stop working. The encryption key changed. A regenerated key cannot decrypt the old connections, and you will re-enter every credential by hand. Restore the original key from your secrets store. This is why the key is generated once, stored safely, and never regenerated casually.
Runs time out and the UI crawls. The server is undersized. Add memory and CPU until you clear the 2 vCPU and 4 GB floor with headroom, then watch usage under real load. Size the server against your busiest flow rather than your average one.
The instance starts empty after a rebuild. The data volume was not persisted or not restored. Your flows live in the postgres_data volume, not the project folder. Restore the volume backup and the matching .env, including the original encryption key.
Tips and tricks that save money
Prototype before you operate. The Cloud Free plan costs $0 with no card, gives 1,000 credits a month and unlimited flows, and lets you learn whether a flow is worth running before you commit server time to it. Prove the idea hosted, then self-host the flows that earn their keep.
Batch where you can. A flow that processes one item per run spends server time on overhead. A flow that gathers items and processes them together finishes faster and leaves more headroom for everything else.
Watch run history growth. Every run writes history to the database. Prune old history on a schedule so the database stays lean. A bloated database slows the builder long before it fills the disk.
Reuse shared steps. When three flows all send the same alert format, build that alert once and call it. One fix then repairs three flows. Copy-pasted steps drift apart, and drift becomes bugs.
Keep test and production apart. Build changes in a copied flow, test with sample data, then move the change into the live flow. Editing a live automation during business hours is how a small fix becomes an outage.
Name flows like you mean it. “Lead alert — website form to team chat” tells the next person what breaks if it stops. “Flow 47” tells them nothing. Six months from now, that next person is you.
The real cost maths
Here is the comparison with real numbers. Activepieces Cloud Free costs $0 with 1,000 credits a month, unlimited flows, and up to 5 users. Plus costs $20 flat per month with 10 times the Free plan. Team costs $200 flat per month with 25 users, SSO and standard roles, and unlimited projects. Extra credits on Plus and Team cost $0.007 each. Those figures come from the official pricing page, checked on December 3, 2026.

Now run a realistic small-business scenario. A service business runs lead alerts, invoice reminders, review requests, and AI-drafted replies. The team is small, but the automations run all day, well past 1,000 credits a month. On Cloud, that profile fits Plus: $20 a month, which is $240 a year.
Self-hosted, the same business pays $0 in Activepieces licence fees. The cost that remains is the server. If the business already runs a server with spare capacity, the marginal cost of Activepieces is close to zero, and the full $240 a year stays in the business. If a new server is needed, subtract its real monthly price from the $240. The saving shrinks, but the credit meter disappears either way.
The full stack tells the other half of the story. Team at $200 a month is $2,400 a year. That tier buys SSO, standard roles, and 25 users — the team access layer the Community Edition does not include. The lean choice is Community Edition on your own server. The expensive mistake is buying team controls before you have a team that needs them. The honest mistake in the other direction is expecting Community Edition to replace Team when SSO is a hard requirement.
Two costs sit outside both routes. AI model usage is billed by the model provider when you bring your own keys, whichever route you choose. And your time has a price: self-hosting trades a subscription for maintenance. The maths favours self-hosting when runs are frequent and someone competent owns the server.
When not to self-host Activepieces
Do not self-host if nobody will maintain the server. Updates, backups, and security patches are now your job. An unpatched automation server holding business credentials is a liability, not an asset. When nobody on your team wants to own uptime, cloud is the better choice: if the vendor’s cloud goes down, their team restores it.
Do not self-host if you need enterprise identity features today. SSO beyond the Team plan, audit logs, and embedding sit behind paid or sales-led arrangements. If your compliance rules require them, budget for Team or Enterprise control instead of fighting the Community Edition.
Do not self-host for a handful of monthly runs. At low volume, the Free plan’s 1,000 credits a month cost $0 with no server work at all. Self-hosting wins when volume is steady and the server already exists.
Do self-host when data must stay on infrastructure you control. That is the case where the $0 MIT core, your own PostgreSQL volume, and your own encryption key beat any hosted convenience.
Pros and cons
Pros
- $0 licence fee for the Community Edition under MIT, with no per-seat fee.
- Your flows, credentials, and run history stay on your own server.
- No vendor credit meter on your own hardware; limits are CPU and memory.
- Docker Compose setup with PostgreSQL and Redis in four containers.
- A permissive licence you can run and modify for your business.
Cons
- You maintain the server, updates, backups, and security yourself.
- The Community Edition is the automation core only; team controls sit in paid tiers.
- SSO beyond Team, audit logs, and embedding need paid or sales-led arrangements.
- Losing the encryption key makes saved connections unreadable.
- No vendor support desk or uptime guarantee on the free route.
Our verdict
Install Activepieces self hosted when automations run every day and someone competent owns the server. The maths is clear: $0 in licence fees against $240 a year for Plus, with no credit meter on your own hardware. Choose Cloud when volume is low, maintenance capacity is zero, or your team needs SSO and vendor-run infrastructure. Either way, decide with your real run volume in hand, not with a guess.
FAQ
Is Activepieces free to self-host for a business?
Yes. The Community Edition is free under the MIT licence, which carries no per-seat fee and permits use, modification, and distribution without restriction. The software is provided as is, without warranty. SSO beyond the Team plan, audit logs, and embedding sit behind paid or sales-led arrangements.
What server size does Activepieces need?
The official Docker setup guide names a minimum of 2 vCPUs, 4 GB of RAM, and 30 GB of disk. The Compose stack runs four containers: app, worker, PostgreSQL, and Redis. Heavier AI flows need more headroom than the floor.
Does self-hosted Activepieces limit runs?
No vendor credit meter applies on your own server. Your limits are CPU, memory, and flow design. On Cloud, credits are capped by plan: Free runs past the quota wait for the monthly refresh, while Plus and Team charge $0.007 per extra credit. That difference is the core of the cost comparison.
Where does Activepieces store my data?
Flows, runs, and connections live in PostgreSQL, in the postgres_data Docker volume. The project folder alone is not a backup. Back up the volume, the .env file with your encryption key, and the compose file, then test a restore.
How do I update self-hosted Activepieces?
Back up first. Then follow the documented upgrade routine for the Compose stack. Your .env, your data, and your compose edits are left alone. Read the release notes, upgrade in a quiet hour, and test your most important flow after the restart.
Strategic Pivot
Self-hosting removes the credit meter, but your full automation stack still has model usage and server lines to budget. Before you commit to a route, run your own run volume through our AI Cost Calculator and compare the Cloud bill against the self-hosted habit with your real numbers, not ours.
Sources
- Official Activepieces GitHub repository: activepieces/activepieces
- Official Activepieces documentation: install with Docker Compose page.
- Official Activepieces Docker setup guide: requirements, secrets, and common mistakes.
- Official Activepieces pricing page: Free, Plus, Team, Ultimate, Embed, and Enterprise control details.
Price note — updated December 3, 2026: Prices in this post were checked on December 3, 2026. When you are reading this, the price may be lower or higher. Check the official Activepieces pricing page before you buy.
Pros
- $0 licence fee for the Community Edition under MIT with no per-seat fee
- your flows, credentials, and run history stay on your own server
- no vendor credit meter on your own hardware
- Docker Compose setup with PostgreSQL and Redis
- a permissive licence you can run and modify
Cons
- You maintain the server, updates, backups, and security yourself
- the Community Edition is the automation core only and team controls sit in paid tiers
- SSO beyond Team, audit logs, and embedding need paid arrangements
- losing the encryption key makes saved connections unreadable
- no vendor support desk or uptime guarantee on the free route
Install Activepieces self hosted when automations run every day and someone competent owns the server. The maths is clear: $0 in licence fees against $240 a year for Plus, with no credit meter on your own hardware. Choose Cloud when volume is low, maintenance capacity is zero, or your team needs SSO and vendor-run infrastructure.
