Before your bankruptcy attorney can file your bankruptcy petition, you must complete a credit counseling session. A typical counseling session takes about an hour and can be done online, over the phone, or in person.
Once you complete the class, you must get a certificate of completion, which your attorney will include with your bankruptcy petition.
You can find a list of approved credit counseling providers here.