The invention relates to a pharmaceutical formulation for sustained delivery of a therapeutic agent, preferably a protein, polypeptide, an antibody or an antibody fragment, comprising one or more gel forming peptides wherein the formulation exhibits sustained delivery for at least two weeks, three weeks, four weeks, five weeks, six weeks, seven weeks, eight weeks, nine weeks, ten weeks, eleven weeks, twelve weeks or more. In one embodiment, the invention relates to a formulation comprising self-assembling peptides that undergo sol-gel transition in the presence of an electrolyte solution such as biological fluids and salts. The formulation can provide sustained release of antibody and antibody fragments, in particular, IgG. Antibody diffusivities can be decreased with increasing hydrogel nanofiber density, providing a means to control the release kinetics.