Home
Login

Anyquery is a SQL query engine that allows you to run SQL queries against almost anything. It supports querying files, databases, and applications (such as Apple Notes, Notion, Chrome, Todoist, etc.). It's built on top of SQLite and uses plugins to extend its functionality.

NOASSERTIONGo 0.9kjulien040 Last Updated: 2025-06-11

AnyQuery Project Introduction

📌 Project Overview

AnyQuery is an extensible, multi-model supported AI query assistant, offering both a web application and a command-line interface (CLI). It allows interaction with multiple large language models (LLMs) through a unified interface. Inspired by ChatGPT and Langchain, its goal is to create an out-of-the-box, easy-to-integrate, and extensible intelligent query platform.

This project is written in TypeScript and based on the Node.js and React technology stack. It is suitable for developers to deploy locally or in private environments and can be seamlessly integrated with custom plugins.


✨ Core Features / Characteristics

🔧 Multi-Model Support

  • Supports various LLMs, such as OpenAI (GPT-4/GPT-3.5), Anthropic Claude, Google Gemini, Mistral, Cohere, etc.
  • Allows configuration of your own API Key or management of model credentials using a pre-set .env file.

💻 Dual-Mode Usage

  • Web Application Interface: Clean and intuitive, supporting multi-turn conversations, model switching, and plugin invocation.
  • CLI Command-Line Interface: Lightweight and suitable for quick invocation by technical users.

🔌 Plugin Mechanism

  • Supports Langchain plugins and tools (e.g., search engines, RAG, etc.).
  • Flexible plugin management, enabling/disabling via configuration files.

🧠 Multi-Agent Support

  • Allows defining multiple Agents simultaneously, each corresponding to different models and purposes, such as summarization, code generation, translation, etc.

📁 Localized and Self-Hostable

  • Does not rely on external platforms (optional).
  • Front-end and back-end are fully open-source, providing autonomous control and customization.

🛠 Technology Stack

  • Front-end: React + TypeScript
  • Back-end: Node.js + Express
  • Model Interface Encapsulation: OpenAI SDK, Langchain, etc.

✅ Installation and Usage

# Clone the repository
git clone https://github.com/julien040/anyquery.git
cd anyquery

# Install dependencies
pnpm install

# Start the Web interface
pnpm dev

# Use CLI mode
pnpm cli "Your question here"

You can set the .env file as needed, filling in the API Keys for various models, for example:

OPENAI_API_KEY=your_key_here
ANTHROPIC_API_KEY=your_key_here

📎 Summary

AnyQuery is a comprehensive AI query platform that supports multi-model interaction, suitable for developers who want to build their own ChatGPT tool or quickly integrate AI functionality. Its plugin mechanism, Agent support, and dual-mode interaction methods make it highly practical in enterprise deployment and localized usage scenarios.


🔗 Project Address

GitHub: https://github.com/julien040/anyquery