返回全部资讯
蚂蚁 inclusionAI 官方仓库T1·智能体与协同

AKernel 开源分布式内核 把数据中心变成智能体可编程底座

作者:inclusionAI原标题:⭐ inclusionAI/AKernel (47 stars)
58AI 研判分

inclusionAI 开源 AKernel,一个融合 AFaaS 性能与 openYuanrong 架构的分布式内核,目标是让 AI Agent 把整个数据中心当作可编程资源使用。项目提供单一 Python SDK 统一调度算力、网络与存储,替代 YAML 与手工编排,面向 RL 训练与数据管道的运行时弹性需求。目前项目处于早期阶段,仅 47 星,多语言支持仍在规划中。

报道正文

本文目录12 个章节

AKernel: Programmable Datacenter-Scale Infrastructure for Agents

Overview

AKernel (Agent Kernel) is a distributed kernel that combines the performance of AFaaS with the architecture of openYuanrong, enabling true "datacenter use" — treating the entire datacenter as a programmable extension of your AI Agent.

Traditional infrastructure tools (IaC, Kubernetes-native platforms, multi-cloud Terraform, and vendor-specific CDKs) are designed for provisioning infrastructure, not operating it. They fall short for AI agents, RL training, and data pipelines that require runtime elasticity, dynamic workflows, and programmatic access to datacenter capabilities.

AKernel solves this with five key advantages:

Datacenter Use: Unified Programming Interface

A single Python SDK (akernel_sdk) to programmatically control compute, networking, and storage — no YAML, no manual orchestration. Multi-language support is planned.

PYTHON
from akernel_sdk import Sandbox

with Sandbox(cpu=2000, memory=4096) as sb:
    result = sb.commands.run("echo 'hello from AKernel'")
    print(result.stdout)

One-Click Deployment: From Laptop to Multi-Cloud

One all-in-one image, multiple deployment targets — deploy in under 10 minutes:

ModeTargetScaleDeploy Time
StandaloneSingle machine1 node~1 min
Private K8sOn-premise cluster100 nodes~5 min
Multi-CloudAlibaba Cloud, Huawei Cloud, etc.100 nodes~10 min

Secure Isolation with Extreme Performance

  • 40 ms cold start*: Fork-based launch with lazy loading for near-zero startup latency
  • Sandbox isolation: gVisor by default, with Kata Containers and Firecracker available on KVM-capable nodes
  • Same-node recovery: Checkpoint runsc and Firecracker workloads and reload the same logical sandbox

* Planned for an open-source release and not available in AKernel v0.1.0.

AI-Native Development and Operations

  • AI-contributed codebase: Significant portions of AKernel code are authored by AI, enabling rapid iteration
  • AI-driven operations: Cluster deployment, day-2 operations, and troubleshooting powered by AI agents
  • Agent-friendly: Built as infrastructure that AI agents can programmatically control and reason about

Full-Stack Observability

Built-in OpenTelemetry (OTEL) integration provides complete observability out of the box — not just resource management, but the full picture:

  • Metrics: Prometheus-based collection for compute, networking, and sandbox performance
  • Dashboards: Pre-configured Grafana dashboards for real-time cluster monitoring
  • Tracing & Logging: End-to-end request tracing and centralized log aggregation

Quick Start

Quick Navigation

  • 💡 Examples - AKernel SDK examples and use cases
  • 🏗️ Architecture - System design and components
  • 🚀 Deployment - Installation and configuration guide

Run Locally from Source

On Linux with native AMD64/ARM64 Docker, or Apple Silicon Mac with OrbStack, run from the source checkout:

BASH
make standalone
source .akernel/standalone/data/sdk-env.sh

This builds and starts a runsc standalone instance. Use make standalone-status to inspect it and make standalone-stop after releasing its sandboxes. See the Standalone Guide for prerequisites, SDK setup, and optional runtimes.

Bootstrap a Cluster

AKernel provides guided Terraform deployment for Alibaba Cloud ACK and Huawei Cloud CCE. Clone the repository and prepare the cloud credentials before selecting one of the image options below.

The workflow requires Terraform, Docker, Helm, kubectl, Python 3, GNU Make, and cloud credentials with permission to create the required infrastructure. For Alibaba Cloud, export the credentials and region first:

BASH
git clone --recurse-submodules https://github.com/akernel-dev/akernel.git
cd akernel

export ALICLOUD_ACCESS_KEY="<your-access-key-id>"
export ALICLOUD_SECRET_KEY="<your-access-key-secret>"
export ALICLOUD_REGION="cn-hangzhou"

Option 1: Use the Official Image

Use the public AKernel image from Docker Hub:

BASH
make config VENDOR=aliyun \
  IMAGE_REPOSITORY=akerneldev/all-in-one \
  IMAGE_TAG=latest
make deploy

Option 2: Build from Source

Configure a registry that your cluster can access, then build and push the all-in-one image before deployment:

BASH
make config VENDOR=aliyun \
  IMAGE_REPOSITORY=registry.example.com/akernel/all-in-one \
  IMAGE_TAG=your-release-tag
docker login registry.example.com
make build
make push
make deploy

See the Deployment Guide for prerequisites, cloud-specific configuration, deployment verification, and cluster cleanup, and the Build Guide for development details.

(注:更多技术实现细节与完整 API 文档请查阅原项目 README)