This paper presents SEAMS (Solar Energy Aggregator Management System), an optimization-based framework for managing solar energy trading in smart communities under Thailand’s regulatory constraints. A major challenge is the prohibition of residential grid feed-in, which limits the use of conventional peer-to-peer energy models. Additionally, fixed pricing is required to ensure simplicity and trust among users. SEAMS coordinates prosumer and consumer households, a shared battery energy storage system (BESS), and a centralized aggregator (AGG) to minimize total electricity costs while maintaining financial neutrality for the aggregator. A mixed-integer linear programming (MILP) model is developed to jointly optimize PV sizing, BESS capacity, and internal buying price, accounting for Time-of-Use (TOU) tariffs and local policy limitations. Simulation results show that a 6 kW PV system and a 70–75 kWh shared BESS offer optimal performance. A 60:40 prosumer-to-consumer ratio yields the lowest total cost, with up to 49 percent savings compared to grid-only systems. SEAMS demonstrates a scalable and policy-aligned approach to support Thailand’s transition toward decentralized solar energy adoption and improved energy affordability.