This paper introduces OPSimTool, a set of additions to the Geant4 toolkit that simplify the development of optical photon applications and enhance the flexibility and maintainability of developed applications. The tool also provides interfaces for creating reusable and portable material build code. This tool has been developed according to users' needs and perspectives, considering frequently asked questions, most encountered challenges, and evolving needs over time in the optical category of the Geant4 official forum page. Program summaryProgram title: OPSimToolCPC Library link to program files:https://doi.org/10.17632/6jtbxdnpm4.1Developer's repository link:https://github.com/mkandemirr/OpSimLicensing provisions: GNU General Public License 3Programming language: C++External routines/libraries: Geant4, CMakeNature of problem: Although the toolkit provided by Geant4 is sufficient to perform optical photon simulations, providing additional tools will be highly beneficial for developing more flexible and sustainable applications.Solution method: We have developed a set of C++ classes in the spirit of Geant4 users and made them available to the public.