Proof of concept for the in vivo bacterial production of a polyester resin displaying various customizable affinity protein binding domains is provided. This was achieved by engineering various protein binding domains into a bacterial polyester-synthesizing enzyme. Affinity binding domains based on various structural folds and derived from molecular libraries were used to demonstrate the potential of this technique. Designed ankyrin repeat proteins (DARPins), engineered OB-fold domains (OBodies), and VHH domains from camelid antibodies (nanobodies) were employed. The respective resins were produced in a single bacterial fermentation step, and a simple purification protocol was developed. Purified resins were suitable for most lab-scale affinity chromatography purposes. All of the affinity domains tested produced polyester beads with specific affinity for the target protein. The binding capacity of these affinity resins ranged from 90 to 600 nmol of protein per wet gram of polyester affinity resin, enabling purification of a recombinant protein target from a complex bacterial cell lysate up to a purity level of 96 in one step. The polyester resin was efficiently produced by conventional lab-scale shake flask fermentation, resulting in bacteria accumulating up to 55 of their cellular dry weight as polyester. A further proof of concept demonstrating the practicality of this technique was obtained through the intracellular coproduction of a specific affinity resin and its target. This enables in vivo binding and purification of the coproduced target protein. Overall, this study provides evidence for the use of molecular engineering of polyester synthases toward the microbial production of specific bioseparation resins implementing previously selected binding domains.