Peter Doherty was arrested in Gloucester after a gig on Wednesday
Singer Peter Doherty has been released on £50,000 bail to await trial accused of driving dangerously after a gig.
The Babyshambles frontman was stopped in the early hours of Thursday after police saw a car being driven erratically in Gloucester.
The 30-year-old has appeared at Stroud Magistrates' Court and pleaded guilty to possessing heroin and to having no licence or insurance.
He pleaded not guilty to dangerous driving and is due in court in August.
His barrister entered no plea to a drink-driving allegation.
Some 0.02oz (0.6g) of heroin, worth £35, was found in his vehicle and 15 wraps of the drug, worth £300, were later discovered in a search of his home near Marlborough, Wiltshire.
Doherty had played a gig in Gloucester's guildhall on Wednesday night.
He was issued with several bail conditions, including a 1900 BST curfew, except when gigging.
He also must not travel in the front seat of any car and must have a medical implant fitted to prevent further drug abuse.
He also must attend Narcotics Anonymous meetings weekly.
A 30-year-old London woman, who was arrested in the car with Mr Doherty on suspicion of drug possession, was released without charge.
Doherty is due to reappear before Cheltenham Magistrates' Court on 11 August.
On his last album he referred to himself as Peter Doherty, rather than Pete, as he had been widely known.