Exhibit 23.1

Consent of Independent Registered Public Accounting Firm

Codexis, Inc.

Redwood City, California

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


/s/ BDO USA, P.A.

San Francisco, California

August 3, 2023