惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

罗磊的独立博客
大猫的无限游戏
大猫的无限游戏
WordPress大学
WordPress大学
酷 壳 – CoolShell
酷 壳 – CoolShell
T
Tailwind CSS Blog
Engineering at Meta
Engineering at Meta
MongoDB | Blog
MongoDB | Blog
爱范儿
爱范儿
小众软件
小众软件
MyScale Blog
MyScale Blog
美团技术团队
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
S
SegmentFault 最新的问题
G
Google Developers Blog
Stack Overflow Blog
Stack Overflow Blog
V
V2EX
量子位
云风的 BLOG
云风的 BLOG
A
About on SuperTechFans
阮一峰的网络日志
阮一峰的网络日志
Last Week in AI
Last Week in AI
Martin Fowler
Martin Fowler
C
Check Point Blog
月光博客
月光博客

Hacker News - Newest: "AI"

AI can't read an investor deck AI as an attorney? Student uses ChatGPT, Gemini to sue UW over alleged racial discrimination Hacking MCP Servers in AI Systems – The Rug Pull: Tool Changes After Approval GitHub - MeepCastana/KubeezCut: Free Web based video editor Can AI judge journalism? A Thiel-backed startup says yes, even if it risks chilling whistleblowers Coming soon: 10 Things That Matter in AI Right Now DARPA built an AI to fact-check enemy weapons claims What explains heterogeneity in AI adoption? When AI Meets Muscle: Context-Aware Electrical Stimulation Promises a New Way to Guide Human Movements - Department of Computer Science AI Changed How We Build. It Did Not Change What Matters. Linux rules on using AI-generated code - Copilot is OK, but humans must take 'full responsibility for the… Meta spins up AI version of Mark Zuckerberg to engage with employees Code Mode: Let Your AI Write Programs, Not Just Call Tools | TanStack Blog GitHub - Delavalom/graft: Go framework for building AI agents. Type-safe tools, multi-provider (OpenAI, Anthropic, Gemini, Bedrock), zero vendor SDKs. India's TCS tops estimates, says new AI models did not dent services demand Gen Z's fading AI hype Strong feeling: we are in a folded AI reality GitHub - machinarii/total-recall-catalog: A reference catalog of latest knowledge retrieval, memory & RAG systems GitHub - mensfeld/code-on-incus: Give each AI agent its own isolated machine with root, Docker, and systemd. Active defense detects and stops threats automatically.. Quantization, LoRA, and the 8% Problem: Benchmarking Local LLMs for Production AI Iran war: We spoke to the man making Lego-style AI videos that experts say are powerful propaganda Powell, Bessent discussed Anthropic's Mythos AI cyber threat with major U.S. banks GitHub - immartian/bellamem: Persistent belief-graph memory for AI agents. Retrieves decisive context by importance — not recency, not RAG, not /compact. recursive-mode: The Repo-Native Operating System for AI Engineering After the attack on Sam Altman's home, will AI CEO's go on the offensive? The biggest advance in AI since the LLM Opus 4.6 vs GPT 5.4 One Prompt Unity World Generation Test “AI polls” are fake polls Client Challenge Can AI be a 'child of God'? Inside Anthropic's meeting with Christian leaders
GitHub - rednakta/nilbox: Desktop sandbox for AI agents a...
rednakta · 2026-05-26 · via Hacker News - Newest: "AI"

nilbox Logo

Desktop sandbox for running AI agents you don't trust — with real VM isolation and zero-token security.

Quick Start · Use Case · How It Works · Features · Docs

License: GPL v3 Version macOS Linux Windows


Why nilbox?

AI agents need shell access, filesystem access, and outbound API calls. Running them in a container on the host kernel isn't real isolation — especially when those agents handle real credentials.

nilbox takes a different approach:

  • Real VM isolation — workloads run in a full virtual machine, not a container
  • Zero-token architecture — API keys never enter the guest; the host proxy swaps tokens in-flight for trusted domains only
  • Host-controlled network — all outbound traffic routes through VSOCK to a domain-gating proxy with rate limits and approval prompts

If you wouldn't give someone your API keys, don't put those keys where their code runs.


Quick Start

Download

Grab the latest release for your platform from GitHub Releases.

Build from Source

Prerequisites: Rust toolchain, Node.js 18+

git clone https://github.com/paiml/nilbox.git
cd nilbox

# Run the desktop app
cd apps/nilbox && npm install && npm run tauri dev

See Development Guide for full build instructions and release builds.


Use Case: OpenClaw

Consider running an autonomous AI coding agent like OpenClaw. It needs API keys for OpenAI, Anthropic, and GitHub — plus shell access to write and execute code. That's a lot of trust.

Without nilbox (traditional Docker/host setup):

# Inside the container — real keys are fully exposed
$ echo $OPENAI_KEY
sk-proj-abc1234567890xyz...    # real token, stealable

A single prompt injection or rogue dependency can read these keys, exfiltrate them, and drain your API budget.

With nilbox:

# Inside the VM — only dummy values exist
$ echo $OPENAI_KEY
OPENAI_KEY                     # just a string, useless to attackers

Multi-provider token setup — configure each provider's environment variables in nilbox. OpenClaw only sees the token names as shown below; the nilbox proxy swaps them for real credentials on trusted domains only:

# Claude (Anthropic)
ANTHROPIC_API_KEY=ANTHROPIC_API_KEY

# AWS Bedrock
AWS_ACCESS_KEY_ID=AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY=AWS_SECRET_ACCESS_KEY

# Gemini
GEMINI_API_KEY=GEMINI_API_KEY

When the agent makes a legitimate API call to api.openai.com, the nilbox proxy on the host intercepts it, swaps OPENAI_KEY for the real token, and forwards it. When a malicious payload tries to send keys to attacker.evil.com, the proxy either blocks the domain outright or sends only the dummy string — the real token never leaves the host.

Zero code changes required. OpenClaw — or any other agent — runs unmodified inside the VM. It reads environment variables and makes API calls exactly as it would on bare metal. The token swap happens transparently at the host proxy layer, outside the guest. You don't patch your agent, your dependencies, or your scripts.

The result:

  • No key rotation after a compromise — real tokens were never exposed
  • No bill shock — per-provider spending limits block runaway usage
  • No data leaks — the VM can only reach domains you approve

See Zero Token Architecture for attack scenarios and defense layers.

You don't need a Mac Mini to run OpenClaw. That old laptop sitting at home is all you need — install nilbox and start running AI agents securely today.


How It Works

  1. Start a VM — the desktop app launches a VM via the platform backend (Apple Virtualization.framework on macOS, QEMU on Linux/Windows).
  2. Guest agent connects — a Rust agent inside the VM establishes a VSOCK channel back to the host.
  3. AI agent makes an API call — the request goes through the local outbound proxy (127.0.0.1:8088).
  4. Host proxy intercepts — for trusted domains, the proxy swaps dummy env-var names for real API tokens. For untrusted domains, the dummy value passes through or the request is blocked.
  5. Response flows back — token usage is extracted and tracked against configurable limits.

nilbox screenshot


Features

Security & Isolation

  • Encrypted KeyStore — SQLCipher + OS keyring (macOS Keychain / Linux secret-service / Windows native)
  • Domain Gating — Allow Once / Allow Always / Deny per domain at runtime
  • DNS Blocklist — Bloom-filter blocklist for VM outbound traffic
  • Auth Delegation — Bearer, AWS SigV4, and Rhai-scripted OAuth out of the box

AI Agent Support

  • MCP Bridge — Model Context Protocol bridging between host and VM (stdio + SSE)
  • Token Usage Monitoring — per-provider tracking with configurable limits (warn at 80%, block at 95%)
  • OAuth Script Engine — pluggable auth via Rhai scripting

VM Management

  • Multi-VM — create, start, stop, and monitor multiple VMs
  • Integrated Terminal — xterm.js shell into running guests via VSOCK PTY
  • Port Mapping — host-to-VM port forwarding, persisted across restarts
  • SSH Gateway — host-side SSH access for external tooling
  • File Mapping — FUSE-over-VSOCK shared directories
  • Disk Resize — resize VM disk images with auto-expand on boot

Ecosystem

  • App Store — one-click install for apps and MCP servers inside the VM. Designed for users who aren't comfortable with Linux — no terminal required. If you're already at home on the command line, you can install anything directly via shell without the store.

Documentation

Document What's Covered
Development Guide Project structure, tech stack, platform support, build instructions
Contributing Development setup, code guidelines, PR workflow, reporting issues
Zero Token Architecture Security model details, attack scenarios, defense layers, FAQ
VM Image Scripts Platform-specific Debian image builders and QEMU binary builds
OAuth Scripts Rhai-based OAuth provider definitions for the proxy
MCP Bridge Connecting Claude Desktop to VM-hosted MCP servers
Playwright CDP Running Playwright MCP with Chrome CDP over VSOCK
nilbox-vmm macOS VMM using Apple Virtualization.framework (Swift)
nilbox-blocklist Bloom-filter DNS blocklist — build, update, and query blocklists (OISD, URLhaus)

Contributing

Contributions are welcome! See CONTRIBUTING.md for development setup, code guidelines, and PR workflow.


License

GNU General Public License v3.0 — see LICENSE.


Built with Tauri · React · rustls · xterm.js · SQLCipher · Rhai