At least 6 extraterrestrial environments may have contributed organic compounds to meteorites and comets: solar nebula, giant-planet subnebulae, asteroid interiors containing liquid water, carbon star atmospheres, and diffuse or dark interstellar clouds. The record in meteorites is partly obscured by pervasive reheating that transformed much of the organic matter to kerogen; nonetheless, it seems that all 6 formation sites contributed. For comets, the large abundance of HCHO, HCN, and unsaturated hydrocarbons suggests an interstellar component of less-than-or-equal-to 50%, but the contributions of various interstellar processes, and of a solar-nebula component, are hard to quantify. A research program is outlined that may help reduce these uncertainties.