Arkloop Documentation
repository·main·Indexed 18 days ago
https://github.com/qqqqqf-q/arkloopAn open-source, design-focused AI Agent platform featuring multi-model routing, sandboxed code execution via Firecracker or Docker, and persistent memory. Arkloop provides a desktop application, CLI, and web-based runtime, supporting Model Context Protocol (MCP), Agent Communication Protocol (ACP), and custom personas with Lua scripting.
What's inside Arkloop
- Arkloop Web is the user-facing chat interface for the Arkloop ecosystem. It is a web application built using React 19, TypeScript, and Tailwind CSS.
Overview of Arkloop features
mainArkloop is an AI Agent platform providing several core capabilities:
- Multi-Model Routing: Supports OpenAI, Anthropic, and compatible APIs with priority-based automatic routing and rate limit handling.
- Sandboxed Execution: Runs code in Firecracker microVMs or Docker containers with strict resource limits.
- Persistent Memory: Preserves system constraints, long-term facts, and session context.
- Prompt Injection Protection: Uses semantic-level scanning to block injection attacks.
- Channel Integration: Supports Telegram with media handling and group context.
- Custom Personas: Supports independent system prompts, tool sets, and Lua scripting for behavior configuration.
- MCP / ACP: Supports Model Context Protocol and Agent Communication Protocol.
- Skill Ecosystem: Import skills from ClawHub (compatible with OpenClaw
SKILL.mdformat).
Overview of Arkloop Settings categories
mainArkloop settings are organized into focused categories accessible via the
Settingssidebar. Most categories operate independently, allowing you to configure specific subsystems without affecting others.Available Settings Categories
Category Description General Configure language, timezone, startup behavior, and notifications. Appearance Customize theme, fonts, color schemes, and backgrounds. Providers Manage LLM provider connections and model management. Channels Set up integrations for Telegram, Discord, Feishu, QQ, and WeChat. Plugins Manage installed plugins and access the marketplace. Skills Configure skill packages from ClawHub or local sources. MCP Configure Model Context Protocol (MCP) servers. Notebook Manage manual notes that are injected into every conversation. Memory Configure auto-organized semantic memory. Chat Adjust auto-compaction settings and execution modes. Tools Configure web search and fetch provider settings. Advanced Handle data import/export, network settings, usage stats, logs, and modules. Getting Started with Arkloop
mainArkloop is a desktop application designed for building conversational AI agents. It provides built-in capabilities for personas, memory, and tool execution, allowing you to start building agents immediately once an API key is configured.
To begin using Arkloop, you can follow these paths:
- Installation: Download and install the application for macOS, Windows, or Linux.
- Quick Start: Follow the first-launch setup wizard to configure your environment.
- Interface Overview: Familiarize yourself with the application layout, including the sidebar, chat area, and settings.
What is Arkloop
mainArkloop is an open-source platform designed for conversational AI Agents. It provides a managed runtime that integrates several core capabilities:
- Multi-model routing: Support for OpenAI, Anthropic, and compatible APIs with priority-based routing and rate limiting.
- Tool execution: Integration with tools and extensions.
- Sandbox code execution: Isolated environments for running code (e.g., Firecracker on Linux for production, or Docker containers for development/desktop).
- Persistent memory: Long-term facts and constraints that persist across sessions, implemented via OpenViking semantic memory and Notebook structured notes.
- Prompt injection protection: Security constraints like semantic-level scanning.
- Persona-based agents: Each agent can have independent system prompts, tool allowlists, and budgets.
- Extensibility: Support for MCP (Model Context Protocol) and Skills (compatible with OpenClaw
SKILL.mdformat, importable from ClawHub).
Overview of Arkloop Worker (Go)
mainThe Arkloop Worker is a Go-based service that implements the core execution loop of the system. Its primary responsibilities include:
- Job Consumption: Consuming
run.executetasks from the Postgresjobsqueue. - Execution: Running the native RunEngine, which handles Provider routing, the Agent Loop, Tools, Personas, and MCP (Model Context Protocol).
- Event Logging: Writing execution events to the
run_eventstable, which the API uses for SSE (Server-Sent Events) playback.
- Job Consumption: Consuming
Explore Arkloop Features
mainArkloop provides several core capabilities for managing conversational AI, including:
- Chat: Interactive interfaces for agent communication.
- Agents: Built-in and customizable AI agents.
- Memory: Persistent state and context management for conversations.
- Tools: Execution capabilities for agents to interact with external systems.
- Channels: Support for various communication channels.
Detailed information on each feature can be found in the Features documentation.
Manage Tool Providers and Credentials
mainTool Providers allow you to manage backend providers, credentials, and base URLs for built-in Tool Groups (such as
web_searchorweb_fetch).Configuration is managed at two layers:
scope=platform: Global defaults for the entire platform. Requiresplatform_adminpermissions.scope=org: Organization-specific overrides. Requiresdata.secretspermission within the organization to manage sensitive credentials.
Manage Entitlement Overrides
mainThe entitlement system controls functional access and resource quotas for organizations. Managing entitlements requiresplatform_adminpermission. You can list, create, or delete overrides to modify specific quotas or access levels for an organization.Review Arkloop third-party licenses
mainArkloop uses 154 direct third-party dependencies. All dependencies use permissive licenses (MIT, Apache-2.0, BSD, ISC, MPL-2.0). There are no copyleft (GPL/AGPL/LGPL) dependencies present in the project.
License Summary
- MIT: 71
- Apache-2.0: 40
- BSD-3-Clause: 32
- ISC: 5
- BSD-2-Clause: 5
- MPL-2.0: 1
Manage multi-language UI text
mainWhen updating UI copy, you must update both the Chinese (zh) and English (en) locale files simultaneously. Do not update only one language.Design principles for Generative UI tools
mainWhen building Generative UI components (widgets/tools) for Arkloop, follow these core philosophy principles to ensure a seamless user experience:
- Seamless Integration: Design widgets so they blend into the host UI. Avoid decorative effects like gradients, mesh backgrounds, or noise textures; use clean, flat surfaces.
- Compactness: Show only essential information inline. Use the tool for visuals (diagrams, charts, interactive widgets) and keep explanatory text in the main chat response.
- Separation of Concerns: Text goes in your response, visuals go in the tool. Never put paragraphs of explanation, section headings, or descriptive prose inside the HTML/SVG tool output. If a user asks to "explain X", provide the explanation in the chat text and use the tool only for the accompanying visual.
- Streaming Optimization: Structure code so useful content appears early.
- HTML:
<style>(short) $\rightarrow$ content HTML $\rightarrow$<script>(last). - SVG:
<defs>(markers) $\rightarrow$ visual elements immediately. - Use inline
style="..."for inputs/controls so they look correct mid-stream. Keep<style>blocks under ~15 lines to avoid bloat.
- HTML: