█

AI/TLDR

मुझे पिलाएं कॉफ़ी
मुझे एक कॉफ़ी पिलाएँ

Astrid

एक क्षमता-सुरक्षित WebAssembly रनटाइम, जहाँ एजेंट कंपोनेंट्स को कोई निहित अधिकार नहीं मिलता

Code Sandboxes & Isolationओपन सोर्स
भाषा
Rust
लाइसेंस
MIT OR Apache-2.0
$brew tap astrid-runtime/tap
संक्षेप में

Astrid क्या है?

Astrid एक क्षमता-सुरक्षित WebAssembly रनटाइम, जहाँ एजेंट कंपोनेंट्स को कोई निहित अधिकार नहीं मिलता. यह Agents & Automation टूल्स की Code Sandboxes & Isolation श्रेणी में आता है; ओपन सोर्स है, Rust में लिखा गया है और MIT OR Apache-2.0 लाइसेंस के तहत है। शुरू करने के लिए: homebrew से install करें.

सारांश

Astrid एक ऑपरेटिंग-सिस्टम प्रोजेक्ट है, जो WebAssembly components से बने सॉफ़्टवेयर के लिए है, जिन्हें वह capsules कहता है। आज यह macOS और Linux के लिए एक portable user-space runtime के रूप में आता है, यानी एक daemon और एक CLI, कोई bootable OS image नहीं। लंबी अवधि में इसकी दिशा एक स्वतंत्र ऑपरेटिंग सिस्टम है। Capsules एक Wasmtime sandbox में चलते हैं, versioned typed interfaces के ज़रिए event bus पर एक-दूसरे से बात करते हैं, और daemon चलते रहते हुए इन्हें install, upgrade और remove किया जा सकता है।

डिज़ाइन की बुनियाद यह है कि एजेंट एक untrusted code है, जो आपकी मशीन पर आपकी files, network और credentials की पहुँच के साथ चलता है, और उससे अच्छा व्यवहार करने के लिए कहना कोई security boundary नहीं है। इसलिए authority को intelligence से अलग रखा गया है। Kernel में कोई LLM handles, कोई conversation state और कोई tool registry नहीं होती। वह event bus को instantiate करता है, capsules load करता है और एक capability ACL के तहत IPC route करता है। हर file path, network host और tool एक signed ed25519 grant है, जो एक resource pattern तक सीमित रहता है, एक principal से बंधा होता है, expiry-check होता है और वैश्विक रूप से revocable है। कोई grant नहीं, तो कोई access नहीं।

Isolation per-process के बजाय per-principal है: हर identity को अपनी capsule access, KV data, secrets, home directory, quotas और audit chain मिलती है, और caller को resolve न कर पाने पर lookup fail-closed हो जाता है। Actions एक hash-linked audit chain में दर्ज होते हैं, जहाँ हर entry अपने पहले वाली entry के hash को seal और sign करती है, इसलिए छेड़छाड़ का पता चल सकता है। Astrid जानबूझकर आपके लिए कोई product, model provider, agent loop या user interface नहीं चुनता। ये विकल्प capsules के एक curated bundle से आते हैं, जिसे distro कहते हैं, और उसे `Distro.lock` में BLAKE3 hash से pin किया जाता है।

यह क्या करता है

  • WebAssembly capsules Wasmtime में चलते हैं, जिनमें कोई syscalls, कोई file descriptors और कोई host memory नहीं होती। हर बाहरी effect WIT-typed ABI पर एक capability-checked host call है
  • Signed ed25519 capability grants, जो एक resource pattern तक सीमित हैं, एक principal से बंधे हैं, expiry-check होते हैं और वैश्विक रूप से revocable हैं
  • Capsule access, KV data, secrets, home directory, quotas और audit chain का per-principal isolation, और caller को resolve न कर पाने पर fail closed
  • Hash-linked, signed audit chain, जिसमें हर entry अपने पूर्ववर्ती entry के hash को seal करती है
  • Live capsule lifecycle: चल रहे daemon पर बिना restart के capsules install, upgrade और remove करें
  • Content-addressed durable state, deduplication और recovery के साथ; macOS FSKit या Linux FUSE के ज़रिए mount किया जा सकता है
  • Distros, यानी curated capsule bundles, जो BLAKE3 hash से Distro.lock में pin होते हैं, ताकि एक ही input से वही fleet दोबारा बने

शुरू करें

रनटाइम install करें, यह जाँचने के लिए एक uncomposed daemon चालू करें कि वह काम करता है, फिर एक distro initialise करके उसे compose करें। नए uncomposed runtime में कोई product capsules नहीं होते, और इसे किसी model account की ज़रूरत नहीं पड़ती।

Homebrew से install करें

Homebrew macOS और Linux, दोनों पर supported है।

bashbash
brew tap astrid-runtime/tap
brew install astrid

या crates.io या source से install करें

Cargo install के लिए Rust 1.95 या उससे नया चाहिए। ध्यान दें कि यह signed macOS bundle का विकल्प नहीं है, जो filesystem provider के साथ केवल platform release archives में आता है।

bashbash
cargo install astrid

# or from source
git clone https://github.com/astrid-runtime/astrid
cd astrid && cargo build --release   # binary at ./target/release/astrid

एक uncomposed runtime शुरू करें

`status` चल रहे daemon की जानकारी देता है और `capsule list` दिखाता है कि उसने क्या load किया है। `stop` daemon को बंद करता है और उसकी working state को astrid.volume में सहेज देता है, जिसे अगली बार शुरू करने पर restore किया जाता है।

bashbash
astrid --version
astrid start
astrid status
astrid capsule list
astrid stop

एक distro से compose करें

`astrid init` एक curated capsule bundle लाता है, वह जितने भी selection groups घोषित करता है उन्हें दिखाता है, उसकी ज़रूरी configuration माँगता है, और हर capsule को BLAKE3 hash से pin करने वाली Distro.lock लिखता है। Secrets command line पर नहीं, बल्कि per-principal secret store में जाते हैं।

bashbash
astrid init --distro @yourorg/your-distro          # repository distro
astrid init --distro ./Distro.toml                  # local manifest
astrid init --distro ./bundle.shuttle --offline     # signed bundle, no network
astrid init --distro @yourorg/your-distro --yes     # non-interactive defaults

चार binaries को समझें

`astrid` CLI uplink है, जो Unix socket के ज़रिए daemon से जुड़ता है। `astrid-daemon` kernel process है, जो capabilities लागू करता है और sandbox चलाता है। `astrid-build` capsules को wasm32-unknown-unknown के लिए compile और package करता है। `astrid-emit` बाहरी hook producers से stdio को bus तक पहुँचाता है।

bashbash
astrid          # CLI uplink (TUI, headless, capsule and agent management)
astrid-daemon   # kernel: capsule loading, IPC routing, capability enforcement
astrid-build    # capsule compiler and packager
astrid-emit     # stdio-to-bus bridge

कमांड और कोड प्रोजेक्ट के अपने दस्तावेज़ों से लिए गए हैं — हमेशा जांचें आधिकारिक repo ताज़ा जानकारी के लिए।

कब इस्तेमाल करें

  • एजेंट के tools को sandboxed capsules के रूप में चलाएँ, ताकि prompt injection किसी ऐसी file, host या credential तक न पहुँच सके जो कभी grant नहीं की गई थी
  • एक ही runtime पर कई identities चलाएँ और हर एक का data, secrets और quotas साबित रूप से अलग रखें
  • signed, hash-linked audit chain के ज़रिए tamper-evident रिकॉर्ड बनाएँ कि कोई autonomous system वास्तव में क्या कर रहा था
  • components का reproducible fleet एक hash-pinned distro के रूप में भेजें, जिसे सहकर्मी daemon को restart किए बिना install, upgrade और revoke कर सकें

How Astrid compares

Astrid alongside other open-source code sandboxes & isolation tools AI/TLDR tracks, ranked by GitHub stars.

टूलस्टारयह क्या करता है
Daytona★ 71.2kAI-जनरेटेड कोड चलाने के लिए सुरक्षित, लचीले सैंडबॉक्स
NVIDIA NemoClaw★ 23.1kNVIDIA का रेफ़रेंस स्टैक, जिससे तीसरे-पक्ष के एजेंट OpenShell सैंडबॉक्स के अंदर चलाए जा सकते हैं
OpenShell★ 22.1kNVIDIA का ओपन सोर्स, नीति-आधारित sandbox रनटाइम, जो AI एजेंट्स के पूरे बेड़े को सुरक्षित रूप से चलाता है
OpenSandbox★ 18.1kAI-जनित कोड को अलग-अलग कंटेनर में चलाने वाला सामान्य-उद्देश्य सैंडबॉक्स प्लेटफ़ॉर्म
E2B★ 15.1kसुरक्षित, अलग-थलग cloud sandboxes में AI-generated कोड चलाएं
AX (Agent Executor)★ 15kGoogle का डिक्लेरेटिव ऑर्केस्ट्रेटर, जो Kubernetes क्लस्टर पर सैंडबॉक्स में अविश्वसनीय agent टास्क चलाता है
AWS Emulator★ 10.4kAWS APIs का मुफ़्त लोकल स्टैंड-इन, टेस्ट, CI और AI coding agents के लिए
Astrid★ 10.3kएक क्षमता-सुरक्षित WebAssembly रनटाइम, जहाँ एजेंट कंपोनेंट्स को कोई निहित अधिकार नहीं मिलता