We develop a search-theoretic model of a dealer-intermediated over-the-counter market. Our key departure from the literature is to assume that, when a customer meets a dealer, the dealer can sell only assets that it already owns. Hence, in equilibrium, dealers choose to hold inventory. We derive the equilibrium relationship between dealers' costs of holding assets on their balance sheets, their optimal inventory holdings, and various measures of liquidity, including bid-ask spreads, trade size, volume, and turnover. Using transaction-level data from the corporate bond market, we calibrate the model to quantitatively assess the impact of post-crisis regulations on dealers' inventory costs, liquidity, and welfare.