Historians generally identify the song collection "Kurfürsten-Kantante" (Elector Cantata), composed between 1790 and 1791, as Beethoven's earliest surviving work. He was 19–20 years old, still in Bonn, studying with Christian Gottlob Neefe.
Earlier pieces (piano variations, small chamber works) may have existed but are lost or unverified. The "Kurfürsten-Kantante" (WoO 87) is the first documented, attributable composition in his catalog.
His official Opus 1 (three piano trios) wouldn't appear until 1795, after moving to Vienna.