The Sensex opened with a positive gap of 145 points at 15,840. The index is now up 161 points at 15,856.The NSE Nifty is up 51 points at 4,784.