Bioluminescent imaging of bacteria in vivo generally requires the use of engineered bacteria. Here the authors take advantage of bacteria specific ATP-binding cassette sugar transporters to enable selective delivery of bioluminescent nanoprobes into bacteria for visualisation, including in deep tissues.