An anastomosis device includes a stapler and an anvil. The stapler includes a clamp head with opposing first and second clamp jaws and a clamp actuator and clamp lock. Staple magazines are connected to the clamp jaws for retaining a plurality of staples in an array, and drivers are provided for moving the plurality of staples in the array out of the staple magazine. An anvil includes a clamp head with opposing first and second clamp jaws, a clamp actuator and a clamp lock. Anvil portions are connected to the clamp jaws. The stapler detachably engages to the anvil, and aligns the staple magazines with the anvils. The drivers are operated to move the staples from the staple magazines into contact with the anvil portions. A method for performing anastomosis is also disclosed.