Car lease buyout

My lease is up on my 2023 Toyota tundra. Wanting to buy it out but wondering if people are going through the dealership or through a separate entity?