In most cases, you will need to apply to the Swiss representation in your country. This could be a Swiss embassy or consulate. However, not all countries have their own Swiss embassy or consulate.
In those cases, you need to find out which other Schengen-area country’s embassy or consulate Switzerland has outsourced visa applications to. It may even be that you need to travel to a neighboring country.