See Federal Rules of Criminal Procedure

Appointment by court, rule 44.

Accused to be informed of right to counsel, rules 5 and 44.