Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

Ailoy

Comprehensive library for building intelligent AI agents

PyPI npm node npm web

Documentation Documentation Discord X


🚀 Quick Start

See how easy to use Ailoy through below examples.

Get your agent just in a single line of code

Check out the simplest python example to build your agent with local models.

pip install ailoy-py
import ailoy as ai # Create an agent with a local model in a single line of code. agent = ai.Agent(ai.LangModel.new_local_sync("Qwen/Qwen3-8B")) # Get the response from the agent simply by calling the `run` method. response = agent.run("Explain quantum computing in one sentence") print(response.contents[0].text)

Easy to integrate LLM APIs

Here's the simple javascript example with LLM APIs.

npm install ailoy-node
import * as ai from "ailoy-node"; async function main() { const lm = await ai.LangModel.newStreamAPI( "OpenAI", // spec "gpt-5", // modelName "YOUR_OPENAI_API_KEY" // apiKey ); const agent = new ai.Agent(lm); for await (const resp of agent.run("Please give me a short poem about AI")) { if (resp.message.contents[0].type === "text") { console.log(resp.message.contents[0].text); } } } main().catch((err) => { console.error("Error:", err); });

Browser-Native AI (WebAssembly)

You can build your agent entirely in the browser using WebAssembly just in a few lines of code.

npm install ailoy-web
import * as ai from "ailoy-web"; // Check WebGPU support const { supported } = await ai.isWebGPUSupported(); // Run AI entirely in the browser - no server needed! const agent = new ai.Agent(await ai.LangModel.newLocal("Qwen/Qwen3-0.6B"));

Quick-customizable Web Agent UI Template

Just Clone to build your own web agent in minutes.


🔥 Key Features

Simple Framework and Powerful Features for AI Agents

  • No boilerplate, no complex setup
  • Reasoning: Extend thinking effortlessly
  • Multi-Modal Inputs: Process both text and images
  • Extensible Tool Calling: User-defined functions and Model Context Protocol (MCP) tools
  • Retrieval-Augmented Generation (RAG): Integrates external knowledge bases without boilerplate

Cross-Platform & Multi-Language APIs

  • Provide Python and JavaScript APIs

  • Support Windows, Linux, and macOS

  • Support Synchronous and Asynchronous APIs

Support Web-browser Native AI (WebAssembly)

  • Run AI entirely in the browser - no server needed!

Flexible Model Adoption

  • Supports both local AI execution and cloud AI providers
  • Effortlessly switch between open-source and AI services
  • Minimal software dependencies — deploy anywhere, from cloud to edge

Rust-Powered

  • Fast, memory-safe, minimal dependencies
  • Best choice for edge computing and low-resource devices

Documentation & Community


Example Projects

ProjectDescription
Gradio ChatbotWeb UI chatbot with tool integration
Web AssistantBrowser-based AI assistant (WASM)
RAG Electron AppDesktop app with document Q&A
MCP IntegrationGitHub & Playwright tools via MCP

Installation

[!WARNING] Ailoy is under active development. APIs may change with version updates.

Python

pip install ailoy-py

Node.js

npm install ailoy-node

Browser (WebAssembly)

npm install ailoy-web

Support Specifications

Supported AI Models

TypeProvider & Models
Local Model Qwen3 (0.6B, 1.7B, 4B, 8B, 14B, 32B, 30B-A3B)
Cloud API OpenAI (GPT)
Cloud API Anthropic (Claude)
Cloud API Google (Gemini)
Cloud API xAI (Grok)

Supported Languags

LanguageVersion
Python3.10+
JavaScriptES5+, Node.js 20+

Supported Platforms

Supported PlatformSystem Requirements (for Local AI)
WindowsVulkan 1.4 compatible GPU
LinuxVulkan 1.4 compatible GPU
macOSApple Silicon with Metal
Web BrowserWebGPU with shader-f16 support

关于 About

A comprehensive library for building intelligent AI agents and applications

语言 Languages

Rust67.9%
TypeScript17.5%
Python7.7%
JavaScript4.2%
C++1.7%
Dockerfile0.5%
Shell0.4%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
299
Total Commits
峰值: 30次/周
Less
More

核心贡献者 Contributors