One rate-limiting factor in the fight against illegal logging is the lack of powerful, affordable, scalable wood identification tools for field screening. Computer vision wood identification using smartphones fitted with customized imaging peripherals offers a potential solution, but to date, such peripherals suffer from one or more weaknesses: low image quality, lack of lighting control, uncontrolled magnification, unknown distortion, and spherical aberration, and/or no access to or publication of the system design. To address cost, optical concerns, and open access to designs and parameters, I present the XyloPhone, a 3D printed research quality macroscopic imaging attachment adaptable to virtually any smartphone. It provides a fixed focal distance, exclusion of ambient light, selection of visible light or UV illumination, uses the lens from a commercially available loupe, is powered by a rechargeable external battery, is fully open-sourced, at a price point of less than USD 110 is a highly affordable tool for the laboratory or the field, and can serve as the foundational hardware for a scalable field-deployable computer vision wood identification system.