Cook pasta in a large pot of boiling water until done. Drain.
Meanwhile, combine oil and onions in a small frypan. Saute over low heat until tender. Add ginger; cook and stir for 1 to 2 minutes. Mix in peanut butter, soy sauce, water, vinegar, sugar and chilli flakes. Remove from heat.