Skip to content

License

ComponentLicenseCovers
Brain (z4j-brain)AGPL-3.0-or-laterDashboard, REST API, WebSocket server, Postgres models
Umbrella (z4j)AGPL-3.0-or-laterMeta-package; pip install z4j pulls in z4j-brain and therefore carries the same licence
Agent packages (every other z4j-*)Apache 2.0z4j-core, z4j-bare, z4j-django, z4j-flask, z4j-fastapi, z4j-celery, z4j-rq, z4j-dramatiq, z4j-huey, z4j-arq, z4j-taskiq, and all six scheduler adapters

Three install paths, three licence outcomes

Section titled “Three install paths, three licence outcomes”
CommandWhat you installLicence you end up with
pip install z4j or pip install "z4j[...]"Brain + core + optional adaptersAGPL-3.0-or-later
pip install z4j-<framework> z4j-<engine>Agents onlyApache 2.0
docker run z4jdev/z4jBrain in a container; your app venv untouchedBrain AGPL-3.0 (isolated); app agents Apache 2.0

The umbrella is AGPL because it installs AGPL code by default, not because its own __init__.py contains anything substantive. If AGPL is incompatible with your environment, install the individual agent packages directly — they are all Apache 2.0 and carry no copyleft obligation.

Free. Forever. You can run z4j-brain for your own organization without any obligation beyond AGPL compliance (which, for internal use, means nothing extra — AGPL triggers on network distribution, not internal deployment).

Apache 2.0. Your application code is not AGPL-tainted. You can use z4j agents in proprietary software with no license concern — as long as you install the agent packages directly (not via the z4j umbrella, which pulls in the AGPL brain transitively).

If you take z4j-brain and serve it to other companies over a network (i.e., you build a hosted z4j as a SaaS), AGPL requires you to publish your modifications. This is by design - we want a level playing field.

If your organization can’t use AGPL (legal policy, compliance, whatever), contact licensing@z4j.com for a commercial license. No gotchas.

  • Every released version keeps its license permanently. We never retroactively re-license.
  • Security fixes always ship in the open-source release on the same day as any commercial release.
  • The roadmap is public. We announce commercial direction openly.

MIT-everywhere enables SaaS competitors to wrap your project without contributing back. We want:

  1. Agents in your app → no friction → Apache 2.0.
  2. Brain as infrastructure → contribute back if you SaaS-ify → AGPL.

This is the same pattern PostHog, Plausible, Minio, and others use.

We make no “free forever” pledge because we’ve seen other projects make that claim then walk it back. What we commit to:

  • License stability on shipped releases.
  • Open roadmap.
  • Honest communication.
  • Security parity between open-source and any future commercial offering.

Contributors sign off with DCO (Developer Certificate of Origin). No CLA. See CONTRIBUTING.md in the repo.