on cold start,it idles rough to the point of dieing on 1998 Ford Explorer

the check engine light constantly stays on,and cold starts dont wanna idle at all,but once it gets going,it starts and drives fine afterwards,till the next morning cold start,pleaseee help!!

Asked by for the 1998 Ford Explorer
you should get the codes read for the engine, this could be a LOT of different things.
what stands out to me is once its warm it seems OK. I would take a guess at either an O2 or mass airflow sensor or a catalytic converter problem. Until you get the check engine code read by someone its pretty hard to pinpoint your problem. I would start there, if you wait for a long time its possible you may do more expensive damage to the engine.