AB
AiBoss
project

Onit - An open-source AI chat assistant for Mac desktop

Onit is an AI chat assistant designed for Mac that can be docked to any application. Onit supports automatic loading of highlighted text; users simply select the text, and Onit will automatically open it as context, eliminating the need for copying and pasting.

What is Onit?

Onit is an AI chat assistant designed for Mac that can be docked to any application. Onit supports automatic loading of highlighted text; users simply select the text, and Onit automatically opens it as context, eliminating the need for copying and pasting. Onit can load the current window's content as context, allowing users to quickly access AI assistance. Onit supports multiple AI models, which users can switch freely between. Onit provides users with a more efficient and convenient interaction method, greatly improving user productivity and user experience.

Onit's main functions

  • Automatic loading of highlighted textOnit allows users to highlight selected text in any application, and the text is automatically loaded into the chat window without the need for manual copying and pasting.
  • Automatic Context ExtractionOnit can automatically read the content of the currently active window and load it into the chat window as context, making it easy for users to quickly get help from AI.
  • Free switching modelIt allows users to freely switch between different AI models (such as OpenAI, Anthropic, xAI, etc.) and choose the most suitable model according to their needs.
  • Local modeOnit supports local mode, where all processing is completed locally without an internet connection, ensuring data security and privacy protection.
  • Customizable shortcut keysUsers can customize the shortcut key to launch the Onit chat window. The default shortcut key is Command+0, and the local mode shortcut key is Command+Shift+0.
  • File uploadIt supports drag-and-drop or file upload from computer, allowing users to easily use file content as context.
  • Code block supportIt makes it easier for users to write, edit, and explore code.

Onit's technical principles

  • Local and remote modesOnit supports integration with local model management tools such as Ollama. Users can run AI models locally, with all data processing completed locally without an internet connection, ensuring data privacy and security. Onit also supports connecting to remote AI model providers (such as OpenAI and Anthropic). Users can interact directly with the provider's models via API to gain access to more powerful AI capabilities.
  • Automatic Context ExtractionThis feature automatically extracts highlighted text or window content from the system clipboard or the currently active window and loads it into the chat window as context. Utilizing system-level hooks and APIs, it ensures users don't need to manually input context.
  • Multi-model supportOnit offers a flexible model switching mechanism, allowing users to switch between different AI models through a simple interface. Onit integrates APIs for various models, supporting seamless switching between local and remote models.

Onit's project address

Application scenarios of Onit

  • Code assistanceDevelopers can quickly obtain code optimization suggestions and bug troubleshooting assistance.
  • Content creationCreators receive writing advice and language polishing to improve content quality.
  • Technical SupportTechnical staff quickly resolve user feedback and system errors.
  • Study and ResearchStudents and researchers gain knowledge interpretation and analysis, deepening their understanding.
  • Daily officeUsers can efficiently organize information, reduce manual operations, and improve work efficiency.