Williams, Wales' all-time leading try scorer with 57 tries, is looking to replicate fellow British and Irish Lions tourist Rob Howley into the international coaching set-up.
The former Wasps scrum-half made an immediate impact as an attacking coach prior to Wales' 2008 Grand Slam and Williams wants to follow in his footsteps.
He said: "I'd like to do something with Wales in the future as a coach or something else.
"I know it's a tough job but it would be nice to do it one day because I love Welsh rugby and I'll keep loving Welsh rugby even after I finish playing.
"I've had a great time with Wales and the Ospreys, it has been my life and hopefully it stays that way even when I finish playing.
"I'd love to come back and do something like Rob Howley. For Rob to be coaching Wales after finishing rugby not that long ago is incredible.
"If I could do something like that and be as successful as Rob in a few years then great. I'd love to be part of it."