EX-23.1 4 a2084766zex-23_1.htm EX-23.1
QuickLinks -- Click here to rapidly navigate through this document


Exhibit 23.1

CONSENT OF ERNST & YOUNG LLP, INDEPENDENT AUDITORS

        We consent to the incorporation by reference in this Registration Statement (Form S-8) pertaining to the 1996 Equity Incentive Plan, as amended, and the 1996 Employee Stock Purchase Plan, as amended, of Onyx Pharmaceuticals, Inc. of our report dated February 22, 2002, with respect to the financial statements of Onyx Pharmaceuticals, Inc., included in the Annual Report (Form 10-K) for the year ended December 31, 2001, filed with the Securities and Exchange Commission.

    /s/ Ernst & Young LLP

Palo Alto, California
July 18, 2002




QuickLinks