Whisk rice vinegar, chili sauce, sesame oil, sugar, and garlic together in a small bowl; season with salt.
Combine cucumber and onion in a separate bowl. Pour vinegar mixture over cucumber and onion mixture and toss to coat. Refrigerate at least 1 hour. Toss before serving.