Exhibit 23.1

Consent of Independent Registered Public Accounting Firm

We hereby consent to the incorporation by reference in the Registration Statement of our reports dated February 28, 2024, relating to the consolidated financial statements and the effectiveness of internal control over financial reporting, of Codexis, Inc. (the Company) appearing in the Company’s Annual Report on Form 10-K for the year ended December 31, 2023.

/s/ BDO USA, P.C.

BDO USA, P.C.

San Francisco, California

August 9, 2024

BDO USA, P.C., a Virginia professional corporation, is the U.S. member of BDO International Limited, a UK company limited by guarantee, and forms part of the international BDO network of independent member firms.

BDO is the brand name for the BDO network and for each of the BDO Member Firms.