How do you establish custody if you were never married?

File a motion with the courts in the county in which you live to determine custody. You will probably need an attorney or mediator to help you put together a custody agreement. Both parents will need to agree to all the terms of the agreement and then you are both bound to the agreement unless you choose to amend it.