In this paper we study the coordination between biogas producers who can either use the biogas themselves, exchange biogas with their neighbors, or deliver it to the various energy grids, such as the low pressure gas grid or the power grid. These producers are called prosumers. In this setting gas storage, fuel cells, micro combined heat power systems, and heat buffers are all part of the prosumers' node. We aim to optimize the imbalance, profit, and comfort levels per prosumer, while taking the constraints of the energy grids into account, and while allowing prosumers to exchange energy with each other. This results in a two-layer optimization problem formulation. In addition, in practice, communication between prosumers among each other and with grid operators is done in an asynchronous manner. In this paper we study the problem of two-layer optimization for biogas prosumers embedded in multiple energy grids, while the (bidirectional) communication between the various partners is done asynchronously. We prove the convergence of the asynchronous coordination algorithm that uses both the inputs and the states. We conduct simulations for the biogas prosumer setting, using realistic data to illustrate the convergence of the algorithm and to study its practical implementation. Note to Practitioners-This paper is motivated and supported by a smart gas grid project of the Energy Delta Gas Research (EDGaR) consortium in the Netherlands. The project deals with investigating the capacity of smart grid technologies to facilitate the introduction of new gases into the distribution grids, with diverse gas qualities and multiple injection points. The gas distribution grid will have to move from a passive to an active distribution system that dynamically control bidirectional flows between end-users and the grid operators. As the endusers may be equipped with energy converters, other energy distribution grids also need to transform to active distribution systems. Existing approaches are distributed, where each enduser and energy grid operator can locally solve their optimal control problem. In this paper, we consider the fact that both endusers and grid operators do not have access to a common clock when solving their problem and when sharing their information. The information includes some of their states and controllable inputs. The asynchronous information exchange problem was pointed out by DNV GL Netherlands, Gasunie, and Gasterra which are companies we collaborate with within the EDGaR consortium. It is highly relevant for practical implementation of our distributed algorithms. In future research, we will include practical control considerations due to on-off constraints of