> For the complete documentation index, see [llms.txt](https://supernet.gitbook.io/supernet/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://supernet.gitbook.io/supernet/distributed-network/ai-operating-system.md).

# AI Operating System

<figure><img src="/files/VDHxbkknBSknfziCHeFD" alt=""><figcaption><p>An overview of the AIOS architecture where responsibilities are isolated across different layers.</p></figcaption></figure>

### **Challenges of LLM-based Intelligent Agents**

Current LLM-based intelligent agents face significant challenges in resource management, particularly with unrestricted access to LLMs or tool resources, which can lead to inefficient resource utilization and even system failures.\
The lack of proper scheduling and resource management mechanisms restricts parallel processing and affects overall system efficiency.\
As agent systems become more diverse and complex, effectively managing resources is becoming increasingly important.

### **Proposed AIOS Architecture**

To address these issues, the paper proposes the AIOS architecture, which isolates LLMs and other tool resources from agent applications, creating an AIOS kernel.\
The AIOS kernel provides fundamental services such as scheduling, context management, memory management, storage management, and access control, and efficiently manages resources like LLMs and external tools.\
AIOS also includes the AIOS-Agent SDK, a comprehensive suite of APIs designed to help developers utilize the functionalities provided by the AIOS kernel.

### **Core Design of AIOS**

The design of the AIOS kernel involves breaking down LLM-related queries into sub-execution units to enhance concurrency, which are then scheduled and dispatched by an agent scheduler.\
Memory, storage, and tool managers handle the execution of these dispatched units, while a context manager is designed to handle long-context requests and interruptions in the LLM core.\
An access manager verifies the access rights of agents to ensure secure operation execution.

### Development

Extensive evaluations of AIOS on agents developed using various agent frameworks demonstrate that AIOS significantly improves execution efficiency, particularly when agents run concurrently. AIOS can achieve up to a 2.1x speedup in execution.\
These experimental results validate the effectiveness of AIOS in optimizing both agent performance and execution speed, especially in resource-constrained environments, while maintaining high performance.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://supernet.gitbook.io/supernet/distributed-network/ai-operating-system.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
