Iran says it has agreed a shipping route through the Strait of Hormuz with Oman, but warns the waterway will remain unsafe while US naval actions continue.

Iran and Oman have agreed a route for ships transiting the Strait of Hormuz and were finalising arrangements for jointly managing the strategic waterway, Tehran said Wednesday, even as fresh security incidents highlighted continued risks for regional shipping.

The agreement would be a step towards reopening the key energy route, but official sources briefing Iranian media stressed that any easing still hinged on Washington ending its own naval blockade of Iran's ports.

Iran has exercised de facto control of the waterway and threatened any vessels transiting routes it deems unauthorised ever since the United States and Israel launched their war against the country on February 28.

US President Donald Trump has repeatedly insisted Tehran is keen for a deal to reopen Hormuz, but Iran has denied this and said it will instead make arrangements with its neighbour across the strait, Oman.