Lexicon: AI-powered terminal dictionary you’ll actually enjoy using A developer built Lexicon, an AI-powered Python CLI dictionary that provides instant word definitions, examples, synonyms, and AI explanations directly from the terminal. The tool aims to eliminate context switching by offering local and web-based lookups with an optional AI mode using OpenAI's API. The project is open source and available on GitHub. Ever found yourself breaking your flow just to Google a word? As a developer, I spend most of my day in the terminal. Jumping to a browser just to look up a definition always felt like an unnecessary context switch. I wanted a dictionary that lived where I already work — fast, clean, and optionally powered by AI. That's why I built Lexicon . Lexicon is a Python CLI dictionary that provides instant word definitions, examples, synonyms, and AI-powered explanations directly from your terminal. --ai flag --web flag pip install lexicon-cli lexicon "ephemeral" lexicon --ai "quantum entanglement" For AI-powered explanations, set your OPENAI API KEY environment variable. Example of the core lookup flow: python def lookup word, use ai=False, use web=False : if use ai: return ai explain word if use web: return web scrape word return local dictionary.get word Most dictionary tools are either too minimal, require a browser, or depend entirely on an internet connection. Lexicon aims to combine: Whether you're reading documentation, learning a new concept, or exploring unfamiliar terminology, Lexicon keeps you focused without leaving your workflow. Planned features include: The project is open source and contributions are welcome. GitHub: https://github.com/Nersisiian/Lexicon https://github.com/Nersisiian/Lexicon If you find it useful, consider giving the repository a star. What terminal tools help you stay productive and avoid context switching?