Bankruptcy Law Questions? Ask a Bankruptcy Lawyer.
If you owe money on a credit card at the time you file bankruptcy, you must list the card as a debt. Remember, the schedules are filed under penalty of perjury: perjury in connection with your case can lead to denial of discharge of all of your debts. It is also a federal crime.
If you don't owe anything on the card, you don't have to give the credit card company notice of your bankruptcy. Note, however, that they may find out through other means and cancel the card as a precaution. American Express is notorious for this.
Most credit card companies will allow you to keep their credit card for use after bankruptcy if you agree to reaffirm the balance on the card and enter into a new agreement, signed after the bankruptcy filing. The decision is up to the creditor, but most creditors want to avoid the loss incurred when the debt is discharged, and want your future business.