Annual report pursuant to Section 13 and 15(d)

Cover Page

Cover Page - USD ($)
$ in Millions
12 Months Ended
Dec. 31, 2022
Feb. 22, 2023
Jun. 30, 2022
Cover [Abstract]      
Document Type 10-K    
Document Annual Report true    
Document Period End Date Dec. 31, 2022    
Current Fiscal Year End Date --12-31    
Document Transition Report false    
Entity File Number 001-34705    
Entity Registrant Name Codexis, Inc.    
Entity Incorporation, State or Country Code DE    
Entity Tax Identification Number 71-0872999    
Entity Address, Address Line One 200 Penobscot Drive    
Entity Address, City or Town Redwood City    
Entity Address, State or Province CA    
Entity Address, Postal Zip Code 94063    
City Area Code 650    
Local Phone Number 421-8100    
Title of 12(b) Security Common Stock, par value $0.0001 per share    
Trading Symbol CDXS    
Security Exchange Name NASDAQ    
Entity Well-known Seasoned Issuer No    
Entity Voluntary Filers No    
Entity Current Reporting Status Yes    
Entity Interactive Data Current Yes    
Entity Filer Category Accelerated Filer    
Entity Small Business false    
Entity Emerging Growth Company false    
ICFR Auditor Attestation Flag true    
Entity Shell Company false    
Entity Public Float     $ 383.8
Entity Common Stock, Shares Outstanding   65,946,807  
Documents Incorporated by Reference Portions of the registrant’s Definitive Proxy Statement to be filed with the Commission pursuant to Regulation 14A in connection with the registrant’s 2023 Annual Meeting of Stockholders (the "Proxy Statement"), to be filed subsequent to the date hereof, are incorporated by reference into Part III of this Report. Such Definitive Proxy Statement will be filed with the Securities and Exchange Commission not later than 120 days after the conclusion of the registrant’s fiscal year ended December 31, 2022. Except with respect to information specifically incorporated by reference in this Form 10-K, the Proxy Statement is not deemed to be filed as part of this Form 10-K.    
Entity Central Index Key 0001200375    
Amendment Flag false    
Document Fiscal Year Focus 2022    
Document Fiscal Period Focus FY