Individual life histories are strongly influenced by early environmental conditions and experiences. They shape morphology as well as behaviour and can promote adaptive divergence and phenotypic plasticity with regard to different habitat types. The fire salamander (Salamandra salamandra) in the Kottenforst forest in Bonn, Germany, exhibits two genetically distinct ecotypes occurring in two larval habitats, either ponds or streams. In this study, we investigated whether both ecotypes differ in risk-taking behaviour, measured as the behavioural response during a shelter-emergence test and a shelter-seeking test, and whether larval habitat type and size impact these behaviours. Our results revealed an influence of size as well as habitat type. Larger larvae of both habitats appear to be more risk-prone, as they spent more time outside the starting shelter in the shelter-emergence test. Irrespective of size, pond larvae sought shelter more often in the shelter-seeking test and are thus considered to be less risk-prone. These results indicate that larvae conform to a given niche by adjusting their behaviour. Future studies are needed to disentangle the role of genetic adaptation or phenotypic plasticity and to investigate long-term consequences of the larval habitat for the adult phenotype. Thereby, efforts should be made to create a concise set of multiple tests assessing behavioural patterns.