CodeOpt is a Chrome extension for JupyterLab and Jupyter Notebook that seamlessly integrates ChatGPT directly into your coding environment. This tool allows users to quickly send code and outputs to ChatGPT with a single toolbar button click, providing AI-powered assistance for debugging, refactoring, and code optimization. Users can customize AI prompts for both code and error messages. With an automatic integration feature, the ChatGPT button appears in new JupyterLab cells. The extension is privacy-focused, ensuring that only user-chosen code and outputs are sent.