Under the background that multi-domain collaborative tasks with complex constraints executed by heterogeneous unmanned systems, based on a consensus-based bundle algorithm, a consensus-based synergy algorithm is proposed to solve the distributed multi-domain collaborative task planning problem. First, a multi-domain collaborative task allocation model and score evaluation system are established by considering task resource requirement constraints, task timing constraints, and path threat constraints. Second, the time sequence constraints of collaborative tasks are transformed into elastic time window constraints. The bidding method based on collaborative constraints is used for task allocation, and the improved consistency conflict resolution principle is adopted to realize distributed multi-domain collaborative task allocation conflict resolution. Finally, the path planning is coupled to the task allocation process by using the Bezier curve path, and the results of multi-domain collaborative task allocation and path planning are obtained synchronously. Simulation results show that the proposed algorithm can effectively solve the problem of multi-domain collaborative task planning for heterogeneous unmanned systems.