 This paper proposes a local flexibility market framework which enables multiple participants to buy and sell flexibility services such as presumer of community self-balancing, congestion management and time of use optimization. The local market operator supervises these transactions within the local energy community with the distribution system operator, balance responsible party and end-users participating voluntarily. The local market can be used to sell or buy flexibility through loads, generators, storage units and electric vehicles. The paper also discusses the interactions between the various stakeholders, the inputs and outputs of the local market algorithm, and a case study to illustrate how the local flexibility market can help reduce energy costs and increase hosting capacity of distribution grids. This article was authored by Paul Olivelle Roselle, Paul Loer Diego, Ingrid Moncolado and others.