In family law, you would each sign the agreement and file it with the court. If the judge approves it, then it will become part of the judgment of divorce, and may be enforced jus t like any other court judgment.
Must a judge approve a marital settlement agreement?
A judge must approve a marital settlement agreement. The judge has the authority to reject it, but if the judge believes that you and your spouse understood what you were agreeing to, it is highly unlikely that she would reject the agreement. There is great deference given to the will and intent of the divorcing parties.
If there are children and the agreement fails to provide for child support, then it is quite possible that the judge will not accept it.