InertiaRSS Track and read blogs, news, and tech you care about
Read Original Open in InertiaRSS

Recommended Feeds

Google DeepMind News
Google DeepMind News
F
Fortinet All Blogs
阮一峰的网络日志
阮一峰的网络日志
Apple Machine Learning Research
Apple Machine Learning Research
爱范儿
爱范儿
WordPress大学
WordPress大学
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
J
Java Code Geeks
罗磊的独立博客
S
SegmentFault 最新的问题
V
V2EX
V
Visual Studio Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
美团技术团队
博客园 - 三生石上(FineUI控件)
Stack Overflow Blog
Stack Overflow Blog
Y
Y Combinator Blog
MyScale Blog
MyScale Blog
D
Docker
Google DeepMind News
Google DeepMind News
Blog — PlanetScale
Blog — PlanetScale
M
Microsoft Research Blog - Microsoft Research
Martin Fowler
Martin Fowler
S
Secure Thoughts
B
Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Recent Announcements
Recent Announcements
MongoDB | Blog
MongoDB | Blog
C
Cisco Blogs
C
CERT Recently Published Vulnerability Notes
T
True Tiger Recordings
GbyAI
GbyAI
P
Proofpoint News Feed
P
Privacy International News Feed
Jina AI
Jina AI
The Cloudflare Blog
I
Intezer
AWS News Blog
AWS News Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
S
Security Archives - TechRepublic
NISL@THU
NISL@THU
The Register - Security
The Register - Security
Recent Commits to openclaw:main
Recent Commits to openclaw:main
P
Palo Alto Networks Blog
S
Schneier on Security
L
LINUX DO - 热门话题
C
CXSECURITY Database RSS Feed - CXSecurity.com
Security Latest
Security Latest
C
Cybersecurity and Infrastructure Security Agency CISA

V2EX

[生活] [记录]-2026-05-22 藏龙卧虎的邻居 支付中台系统,基于 jeepay 重构了 2 天,目标是做企业部署发行版遇到的问题分享 富途,老虎,长桥被罚,以后买港股美股只能在链上购买了吗? 月底继续卖自家产今年新茶,评论抽奖 [FK Claude] 一个只做 Claude 的中转站 [Apple] 解决新美区 Apple ID 登录后变国区的问题 [分享创造] AI 会员账号店铺导航 [分享创造] vibe 了一个 v 站皮肤,喜欢的老哥可以试试 #员工被骂滚后遭开除获赔近 16 万# IOS 有哪些去广告的方案, quanx 的去广告 微信图片卡的不行 寻找长录音会议音频的总结软件,想要本地化有安全保障的 codex 怎么设置防询问? PHP 全栈(主要是小程序), 二开功能, 需要对接支付和开发商家功能. 有兴趣接活的联系, 有要求 听说裁员又开始了? DeepSeek api 改成永久打折了 openclash 限制不能打开某些网站 [Surge] 6 折转 Surge 车位 用 mac 连接 Windows RDP,没有 udp, windows 却有 [分享发现] vanyosapce.com 跑路了? [自然语言处理] Humanize-Text 4 步把 AI 文本变成人类写作: DeepSeek×2 + Google + Niutrans [☕Vibe Coding🤖] 大家觉得 OpenCode 和 Claude Code 哪个更好用呢 技术岗的领导完全不懂技术,真想跑路 [推广] ai 账号店铺 专营 gpt Claude gemini 成品号 卡密直冲 [西安] 有没有携程常订五星级酒店的大佬,有兴趣可以来免费体验一下小店 [分享创造] 非科班零基础, vibe 了一个基于 telegram 公开群组生成新闻网站的项目 有没有听说过这种买断政策的公司? 前几天看到 V 站老哥的「新闻雷达」,照着试着学做了个微信小程序版 为什么字节 出了 trae 又搞了个 trae cn, 阿里搞了个 qoder 又出了个 qoder cn? 一个软件搞不定吗? [问与答] Mac 和小米手机之间的互联效果咋样? 禁止境外炒股了,兄弟们怎么看 [推广] Codex 新站点 HappyCode 推广,纯 Plus 号池(0.04 倍率)活动送 75 刀额度 [TV|免费] 全功能投屏工具 - AirPlay/电脑/有线镜像/4K/H.265/30ms 极低延迟 每天上班打王者刷视频,手指都受不了了,求推荐兼职,我会开发 作为 Linux 发行版, CachyOS 性能和包丰富度表现堪称完美。 大家用 claude code 是订阅还是买 apikey 来使用啊 [投资] 20260522 大环境不好存量全死了只建议开免费的美国嘉信和盈透了 [生活] 今天我生日,可以薅 V 友一句生日快乐吗? 如果用 AI 写一个小网游,每周玩法的胜利者会直接获得跟 ai 交流的机会,就跟龙珠一样,如此循环往复,有搞头么 我觉得 AI 幻觉可能是避免不了的了,这也许就是人类工程师还存在的理由? 老虎证券的“环球账户”,即古代老虎证券和 ibkr 合作的那个,咋说? 老虎、富途被罚,除了盈透等几家美国券商,身在大陆还有其它投资美股的渠道吗 买美股的路要被彻底堵死了,富途老虎长桥被重罚,大陆存量客户只准卖不准买,怎么办 claude -p 现在到底走什么额度啊 [分享创造] 兄弟们 vibe 了一个很好用的 vim 翻译插件, 分享给大家 证监会拟决定:没收老虎、富途、长桥境内外相关主体全部违法所得,并依法严厉处罚 [分享发现] ESP32-S31 测评 老虎、富途、长桥将被罚 2 年集中整治如何影响跨境炒股投资者 [OpenAI] ChatGPT Pro 额度怎么蹬满? 我发现有了 AI 之后,很多人都在重复造轮子 读"Cursor 的 Debug 模式误删 E 盘???GB 文件"有感
xlings: a universal package manager + OS-like lightweight isolated environment, which can create multiple SubOS environments to run agents without worrying about damaging host data.
Sunrisepeak · 2026-05-17 · via V2EX

Project URL: https://github.com/openxlings/xlings

Note: Currently, the Linux experience is better; adapting gradually on Windows/macOS.


Universal package management infrastructure + OS-like SubOS isolation
Multi-version coexistence · No Root required · Decentralized indexing · Agent-oriented

[Official Website] | [Docs] | [Package Index] | [Community Forum]

Chinese | English

Users: MCPP · Upcoming Luban Linux


Why choose xlings?

Pain point no xlings There is xlings
The system has gcc@11, and also wants to install gcc@16. Please identify the language of the following text and translate it into English: manual compilation, easy to conflict xlings install gcc@16— Two versions coexist
The team needs a consistent project environment. It runs on my machine. .xlings.jsonplusxlings install— Upon entering the project directory, you seamlessly enter the isolated project-level SubOS.
Agent needs its own isolated world to run. Docker daemon + images + cleanup Please identify the language of the following text and translate it into English: Agent runs on SubOSInside — Full permissions, no root required, lightweight, host unaffected

vs other tools

apt / brew nix docker xlings
Multiple version coexistence
No root required ⚠️ ⚠️ ✅(except image mode)
No daemon
Cross-platform Unified Commands ⚠️ ✅ Linux / macOS / Windows
Isolation Granularity FS FS+ 🔒 shell / FS / image three-level
Storage Reuse ✅ store ❌ Image Bloat ✅ Version view + reference counting
Startup overhead ⚡ Instant ⚡ Instant 🐢 Second-level ⚡ Instant / ~10ms (sandbox)
Decentralized indexing ✅ Official + Third-party + Self-built
Agent / JSON interface ⚠️ API xlings interface(NDJSON)
Can be used as an OS-level package manager apt itself is NixOS ✅(Luban Linux, coming soon)

Quick Start

Installation

Linux / macOS

curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash

Windows (PowerShell)

irm https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.ps1 | iex

Let your AI Agent help you install

Copy the following content to your AI agent (Claude / Codex / OpenCode, etc.):

帮我安装 xlings 包管理器。
- Linux/macOS: curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash
- Windows: irm https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.ps1 | iex
项目地址: https://github.com/openxlings/xlings

Try Multi-Version

xlings install gcc@16 node@24 cmake
xlings use gcc@16        # 切换当前版本
gcc --version            # gcc 16.x

Core Concepts

Features

  1. 📦 Universal Package Management Infrastructure — binary / script / config / subos / tutorial are all xpkg
  2. 🔀 Multi-version Coexistence — N versions of the same tool coexist; version view + reference counting (N environments ≈ 1 copy storage)
  3. 🏗️ Three-level SubOS Isolation — shell (env switching) / FS (bwrap/proot, no root required) / image (ext4, root required)
  4. 🌐 Decentralized Package Index — official + third-party + self-hosted repositories; resource server for binary mirror distribution
  5. 🤖 JSON Event Interfacexlings interface(NDJSON protocol) for AI agents, CI, and third-party tools

Scene

🛠 Toolchain — Multi-version without sudo

xlings install gcc@16 gcc@11 cmake node@24
xlings use gcc@16        # 即时切换
xlings use gcc@11        # 切回 11, 互不干扰

📦 Project — Seamlessly Enter Project-level SubOS

When you enter a project directory that contains .xlings.json, xlings automatically and transparently activates the project-level SubOS — You and your team work in an isolated environment without any manual operation. All dependencies are in the project's own SubOS.

{
  "workspace": {
    "xmake": "3.0.7",
    "gcc": { "linux": "16.1.0" },
    "llvm": { "macosx": "20.1.7" }
  }
}
cd my-project/           # 自动进入项目 SubOS
xlings install           # 依赖装进项目级隔离环境
xmake build              # 一切正常运作, 与宿主机隔离

clone → cd → build. The team and CI environments are completely consistent, no manual activation needed.

🤖 Agent — Agent runs in its own lightweight world

xlings lets you put the agent (codex / claude / opencode, etc.)Runs inside SubOS — The agent has full permissions within the isolated environment, and the host machine is completely secure.

Why this matters:

  • 🔓 The agent has greater permissions inside SubOS — installing packages, modifying files, running arbitrary code — without harming the host.
  • 🔁 The same agent tool, multiple instances on one machine — each SubOS has its own independent configuration (normally, a single Codex/Claude account can only run one instance).
  • ⚡ Lightweight — not a heavyweight VM or container, only namespace isolation.

Running agents in SubOS:

# 创建 SubOS(从 base 环境 fork,或自己从零配置)
xlings subos new claude-workspace --from subos:dev-env@latest

# 进入 SubOS — Agent 在这里面运行,拥有完全控制权
xlings subos use claude-workspace --sandbox
# → 现在你在 agent 的世界里
# → 在这里启动 claude / codex / opencode
# → 它们可以自由安装、修改、实验 — 宿主机不受影响

# 同一台机器上运行多个隔离的 agent 实例
xlings subos new claude-workspace-1 --from subos:dev-env@latest
xlings subos new claude-workspace-2 --from subos:dev-env@latest
xlings subos new codex-workspace --from subos:dev-env@latest

One-off tasks can also use --cmd:

xlings subos use claude-workspace --sandbox --cmd "python analyze.py"

No root required, no daemon, no image bloat.Every Agent has its own world.


SubOS Detailed Explanation

Three-Level Isolation

Level Mechanism Require Root? Isolation Scope Applicable Scenarios
🟢 Shell env/PATH switching No Tool Version Daily development, version locking
🔵 FS bwrap / proot sandbox No File System (HOME, /tmp private) Agent, Experiment, Untrusted Code
🟠 Image ext4 Sparse Image Mount Yes Full Block Device Isolation Heavy Workload, Persistent Sandbox

Key Capability

  • Fork from basexlings subos new <name> --from <local|subos:pkg@ver>(0s under shared storage)
  • Non-interactive Executionxlings subos use <name> --cmd "<command>" (exit code passthrough)
  • sandbox mode --sandbox flag; bwrap preferred (setuid, xim self-managed), proot fallback
  • storage mode --storage shared|tmpfs|image, select when forking
  • project-level SubOS .xlings.json declared, automatically and transparently activated when entering the project directory
  • Keeper (optional) --keep keep mount namespace active, high-frequency exec optimization; xlings subos stop release

package index ecosystem

graph TD
    subgraph 来源
        S1["🏛️ 官方 - openxlings/xim-pkgindex"]
        S2["🌍 第三方 - 社区仓库"]
        S3["🏠 自建 - 团队 Git / 本地路径"]
    end

    subgraph "资源服务器 (二进制镜像)"
        R1[GLOBAL]
        R2[CN]
        R3[自建 OSS]
    end

    S1 & S2 & S3 -->|"xpkg 包描述"| X[xlings install]
    X -->|"下载二进制"| R1 & R2 & R3

    style X fill:#e8f5e9

One line to add custom index:

{
  "index_repos": [
    { "name": "xim", "url": "https://github.com/openxlings/xim-pkgindex.git" },
    { "name": "my-team", "url": "[email protected]:devtools/pkgs.git" }
  ]
}

ecosystem

project role link
MCPP Modern C++ build tool ecosystem - distributed via xlings github.com/mcpp-community/mcpp
Luban Linux An upcoming Linux distribution that uses xlings as a system-level package manager (Link will be updated upon release)
xim-pkgindex Official package index - 60+ packages and growing openxlings/xim-pkgindex

Agent Integration

Agent runs inside SubOS

Unlike the traditional "agent calls tools" pattern, xlings lets the agent itself run inside SubOS. The agent has a fully isolated environment — it can install packages, write files, run services — all without affecting the host machine.

Scenario Implementation method
Safely give the agent full permissions The agent runs inside --sandbox SubOS
Multiple instances of the same agent tool (codex/claude) on one machine One SubOS per instance
Agent requires a specific environment (Python + CUDA + custom libraries) From subos:ml-env@latestfork
temporary task execution --storage tmpfs + --cmd

programmatic interface

xlings interface provides NDJSON protocol (stdio communication) — programmatic control for AI Agents, CI systems and third-party tools:

xlings interface
# → {"protocol":"1.0","capabilities":[...]}
# ← {"action":"install","target":"subos:py-ds@latest"}
# → {"kind":"progress","phase":"downloading","percent":45,...}
# → {"kind":"data","dataKind":"installed","payload":{...}}

Development & test environment

Besides Agent, SubOS is also suitable for development and testing:

# 不同场景不同环境
xlings subos new rust-nightly --storage shared
xlings subos new legacy-gcc11 --storage shared

# 或使用项目级模式:进入项目目录即自动进入隔离环境
cd my-project/           # 无感进入项目 SubOS

Building from source

# 1. 安装 xlings(见上方"快速开始")
# 2. 在仓库根目录安装构建依赖:
xlings install           # 读取 .xlings.json → xmake, cmake, ninja, 工具链

# 3. 切换到开发工具链:
xlings use [email protected]    # 确保 xrepo 缓存用 glibc 链接

# 4. 构建:
xmake f -y && xmake build xlings
xmake build xlings_tests && xmake run xlings_tests

.xlings.json also drives CI and release pipelines.


Community