Although it is not legally necessary for anyone filing bankruptcy to have an attorney or legal representation to do so, it is highly recommended. It is a complex legal filing in federal court with many requirements that may not be readily understandable or easy to figure out for someone not familiar with the process. In addition, local courts may have specific requirements that are difficult to fulfill for a person not familiar with the process.
If you file pro se (without an attorney), the court where you file is not permitted to assist you with legal advice to complete your case. It may be difficult to find representation after you have filed your case on your own, as many attorneys will not take on a case filed pro se.