This research paper presents a novel approach to running mobile agents on diverse devices, from mobile phones to powerful PCs, addressing issues like limited resources and network challenges. It outlines a mobile agent architecture and middleware allowing clients to specify their capabilities, enabling tailored execution of mobile agents according to device limitations. The study emphasizes the importance of mobile agents in optimizing battery usage and computational efficiency in heterogeneous mobile computing environments.