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

推荐订阅源

L
LINUX DO - 最新话题
C
Cyber Attacks, Cyber Crime and Cyber Security
G
GRAHAM CLULEY
T
Tenable Blog
T
Threatpost
C
CXSECURITY Database RSS Feed - CXSecurity.com
I
Intezer
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
D
Darknet – Hacking Tools, Hacker News & Cyber Security
K
Kaspersky official blog
Security Latest
Security Latest
P
Privacy & Cybersecurity Law Blog
Google Online Security Blog
Google Online Security Blog
SecWiki News
SecWiki News
P
Palo Alto Networks Blog
TaoSecurity Blog
TaoSecurity Blog
Webroot Blog
Webroot Blog
Spread Privacy
Spread Privacy
O
OpenAI News
The Last Watchdog
The Last Watchdog
P
Proofpoint News Feed
C
Check Point Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
人人都是产品经理
人人都是产品经理
S
Security @ Cisco Blogs
Scott Helme
Scott Helme
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
月光博客
月光博客
S
Securelist
酷 壳 – CoolShell
酷 壳 – CoolShell
V
V2EX
T
Troy Hunt's Blog
W
WeLiveSecurity
GbyAI
GbyAI
N
News | PayPal Newsroom
Y
Y Combinator Blog
C
Cisco Blogs
H
Help Net Security
The GitHub Blog
The GitHub Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
博客园 - 【当耐特】
Jina AI
Jina AI
MongoDB | Blog
MongoDB | Blog
P
Proofpoint News Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
云风的 BLOG
云风的 BLOG
小众软件
小众软件
N
News and Events Feed by Topic

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 GitHub - GenAI-Gurus/awesome-eu-ai-act: Curated tools, official sources, OSS, templates, and guides for EU AI Act compliance. 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 How to Switch AI Chatbots and Why You Might Want To GitHub - MattMessinger1/agentic_refund_guardrail: Safe refund policy layer for AI agents — Python + TypeScript. Same behavior, shared tests. Adam/papers/emergent_values_whitepaper.md at master · strangeadvancedmarketing/Adam Ask HN: How do you stop playing 20 questions with your AI coding tools How far can automation and AI support psychotherapy? - @theU GitHub - stagas/rtdiff: realtime git diff gui and AI-assisted commits A Mac Studio for Local AI — 6 Months Later A History of the Early Years of AI at the University of Edinburgh Why AI Coding Tools Still Feel Stuck on Localhost MSN AI Datacenters Are Becoming Strategic Targets twitter.com Penn Researchers Use AI to Surface Unreported GLP-1 Side Effects in Reddit Posts Show HN: MoodSense AI (ML and FastAPI and Gradio, Deployed on Hugging Face) Moodsense Ai - a Hugging Face Space by aman179102 AI models are terrible at betting on soccer—especially xAI Grok GitHub - xialeistudio/echoic GitHub - HimashaHerath/github-dev-wrapped: AI-powered weekly GitHub activity reports deployed to GitHub Pages GitHub - alejandrobalderas/claude-code-from-source: Architecture, patterns & internals of Anthropic's AI coding agent — reverse-engineered from source maps AI and Tech brief: Ireland ascendant GitHub - Titovilal/context0: Context0 - Never Surrender Training for a Marathon with an AI Coach: What Worked and What Didn't Cyber Pulse: Agentic Intel - Apps on Google Play I Built an AI PR Reviewer That Catches Bugs by Not Looking for Bugs Gen Z workers are so fearful AI will take their job they’re intentionally sabotaging their company’s AI rollout | Fortune How AI Is Reimagining the Game of Golf–For Both Players and Courses GitHub - nattergabriel/reseed: A CLI tool for managing and distributing agent skills across projects Is SVG the final frontier? My AI workflow evolved from prompts to a near-autonomous workflow MLSharp Help - 3DGS Viewer & Generator I put my cognitive field based AI's runtime on GitHub Is Numble the first AI-proof game? A3: Kubernetes for autonomous AI agent fleets | Emergent Principles Deepali Vyas ("The Elite Recruiter") GitHub - msmarkgu/RelayFreeLLM: A restful API designed to route user prompts to various AI model providers. Unionized ProPublica staff are on strike over AI, layoffs, and wages Unleashing the Advantage of Quantum AI We're heading for an AI-fueled 'dementia crisis,' brain scientist warns The AI-Assisted Breach of Mexico's Government Infrastructure [pdf] GitHub - stef41/lmscan: 🔍 Detect AI-generated text and fingerprint which LLM wrote it. Open-source GPTZero alternative. Zero dependencies, works offline. MSN GitHub - visionscaper/collabmem: Enabling long-term collaboration with Agentic AI - building up episodic and world model memory over time with in-context awareness We gave an AI a 3 year retail lease in SF and asked it to make a profit | Andon Labs AI Code is Hollowing Out Open Source, and Maintainers are Looking the Other Way What leaked "SteamGPT" files could mean for the PC gaming platform's use of AI AI is the boss at this retail store. What could go wrong? GitHub - Wuzu11517/agentic-proxy: Local proxy meant to help reduce With Drones, Geophysics and ArtificiaI Intelligence, Researchers Prepare to Do Battle Against Land Mines A Single Operator, Two AI Platforms, Nine Government Agencies: The Full Technical Report 在 Steam 上购买 FriedrichAI: Offline AI 立省 10% GitHub - inevolin/resume-cli: Hit Claude usage limits? Resume any AI coding session elsewhere. Switch tools at zero friction. GitHub - atripati/ark: AI Runtime Kernel — a context operating system for AI agents. Eliminates tool bloat, loads only what’s needed, and gives LLMs their reasoning space back. How to Build a Secure AI PR Reviewer with Claude, GitHub Actions, and JavaScript This Startup Wants You to Pay Up to Talk With AI Versions of Human Experts Intel Arc Pro B70 Brings 32GB VRAM to Local AI for $949 WordPress 7.0: The Good, the AI, and the Still Missing AI on the couch: Anthropic gives Claude 20 hours of psychiatry IatroBench: Pre-Registered Evidence of Iatrogenic Harm from AI Safety Measures AI Agents Know About Supabase. They Don't Always Use It Right. The history and future of AI at Google, with Sundar Pichai Inside an AI‑enabled device code phishing campaign How Meta Used AI to Map Tribal Knowledge in Large-Scale Data Pipelines AI for Systems: Using LLMs to Optimize Database Query Execution Forecasting the Economic Effects of AI Introducing Tinker: Play with AI, bring your ideas to life AI sheds light on an ancient gaming mystery People really hate AI but not as much as Iran—or Democrats | Fortune What is an AI Product Engineer? Phoebe Gates wants her $185 million AI startup to succeed with 'no ties to my privilege or my last name': 'I have a chip on my shoulder' | Fortune
GitHub - rgombash/ocl-nexus-local: Orchestrated Compute Layer for AI agents. Local K3s-based fabric for autonomous code execution, service orchestration, and native MCP tool discovery.
rgombash · 2026-05-20 · via Hacker News - Newest: "AI"

OCL Nexus Local is an open-source compute fabric that provides a frictionless, local-first environment for agentic development. Built on a single-node K3s architecture via Docker Compose, it allows developers to provision isolated Ubuntu sandboxes with native Model Context Protocol (MCP) support directly on their own hardware. Designed for 100% parity with the OCL Nexus cloud platform, it enables AI agents to autonomously manage the full lifecycle of micro-workloads—from code shipment and dependency scaling to real-time service orchestration—without the complexity of manual infrastructure management.

For live internet workloads requiring 24/7 availability and high-performance compute on dedicated EU-based NVMe infrastructure, visit oclnexus.com.

Prerequisites

  • Docker Desktop or Docker Engine + Docker Compose
  • 8 GB+ RAM (allocate in Docker Desktop → Settings → Resources)
  • 10 GB disk space
  • macOS, Linux, or Windows (WSL2 required on Windows)

Quick Start

1. Generate an encryption key

The key must be exactly 32 ASCII characters (used as raw AES-256-GCM key bytes):

python3 -c "import secrets; print(secrets.token_urlsafe(24)[:32])"
# or
openssl rand -base64 24 | head -c 32

2. Configure environment

cp .env.local.example .env.local

Edit .env.local and set your generated key:

ENCRYPTION_KEY=your-generated-32-char-key-here

3. Start the stack

docker compose up -d

First-time startup takes 3–5 minutes — K3s must pull system images (CoreDNS, Traefik, metrics-server) and initialise the cluster. Subsequent starts take ~30 seconds.

4. Retrieve your API key

docker compose logs nexus-init | grep -A 5 "nx_"

Copy the nx_... key — it is shown only once and is required for MCP and REST API access.

5. Open the dashboard

http://localhost:3000/dashboard — no login required.


Workload DNS

Deployed workloads are served at http://inst-{id}.{INFRA_DOMAIN}. The default INFRA_DOMAIN is localhost.

Platform *.localhost resolves? What to do
Linux (Ubuntu 20.10+, Debian 11+, Fedora 33+) Yes — systemd-resolved Nothing
Linux (older) No See Option B below
macOS No See Option B below
Windows WSL2 Yes — inherits Linux resolver Nothing
Windows native No Use Option A below

Option A — Zero config, needs internet: localtest.me

*.localtest.me is a public DNS service that resolves every subdomain to 127.0.0.1.

In .env.local (or docker-compose.yml):

INFRA_DOMAIN=localtest.me

Workloads become accessible at http://inst-{id}.localtest.me.

Option B — Offline: configure wildcard DNS for *.localhost

macOS (one-time, 3 commands):

brew install dnsmasq
echo "address=/.localhost/127.0.0.1" >> $(brew --prefix)/etc/dnsmasq.conf
brew services start dnsmasq
sudo mkdir -p /etc/resolver
echo "nameserver 127.0.0.1" | sudo tee /etc/resolver/localhost

Linux (older, no systemd-resolved):

sudo apt install dnsmasq
echo "address=/.localhost/127.0.0.1" | sudo tee /etc/dnsmasq.d/localhost-wildcard.conf
sudo systemctl restart dnsmasq

Keep INFRA_DOMAIN=localhost (the default) after either step.


MCP Integration (Claude Desktop)

Edit your Claude Desktop config:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "nexus": {
      "command": "curl",
      "args": [
        "-X", "POST",
        "http://localhost:3000/api/mcp/v1",
        "-H", "Content-Type: application/json",
        "-H", "Accept: application/json, text/event-stream",
        "-H", "Authorization: Bearer nx_YOUR_KEY_HERE",
        "-d", "@-"
      ]
    }
  }
}

Replace nx_YOUR_KEY_HERE with the key from step 4 and restart Claude Desktop.

Verify the connection:

curl -X POST http://localhost:3000/api/mcp/v1 \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Authorization: Bearer nx_YOUR_KEY_HERE" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' \
  | grep '^data:' | sed 's/^data: //' | python3 -m json.tool

You should see 15 MCP tools listed (nexus_deploy, nexus_list_workloads, nexus_execute_command, etc.).

The Accept: application/json, text/event-stream header is required. Omitting it returns a 406 Not Acceptable error.


What's Running

Service URL Purpose
Dashboard http://localhost:3000/dashboard Deploy and manage workloads
MCP API http://localhost:3000/api/mcp/v1 Claude Desktop / agent integration
REST API http://localhost:3000/api/v1/ Machine-to-machine workload control
K3s API https://localhost:6443 Kubernetes control plane
pgweb http://localhost:8082 PostgreSQL web UI
Workloads http://inst-{id}.localhost Deployed sandboxes

Developer Mode (Hot Reload)

For iterating on the platform itself, a dev compose override mounts the source tree live and runs npm run dev instead of the pre-built production server:

docker compose -f docker-compose.yml -f docker-compose.dev.yml up

File changes in src/ are reflected in the browser within ~1 second. No container restart needed.

If you add or remove npm packages, rebuild the image to re-run npm ci:

docker compose -f docker-compose.yml -f docker-compose.dev.yml up --build nexus-app

Testing

Integration tests live in tests/. They run against a live stack.

Setup

cp tests/.env.test.example tests/.env.test

Edit tests/.env.test — set your API key (from step 4 of Quick Start) and confirm the URLs match your setup:

NEXUS_API_KEY=nx_your_key_here
NEXUS_BASE_URL=http://localhost:3000
INFRA_DOMAIN=localhost

Run

npm run test:api        # M2M lifecycle: deploy → upload → execute → delete
npm run test:python     # Flask service mode + public URL access
npm run test:node       # Express service mode + public URL access
npm run test:discovery  # Blueprint list API
npm run test:ui         # UI path: deploy → poll → restart → delete

All tests clean up after themselves. Set SKIP_CLEANUP=true in tests/.env.test to preserve instances for inspection.

See tests/README.md for full details.


Common Commands

# Status
docker compose ps

# Logs
docker compose logs -f nexus-app
docker compose logs nexus-k3s

# Stop (keeps data)
docker compose down

# Stop and delete all data
docker compose down -v

# Inspect the K3s cluster
docker compose exec nexus-k3s k3s kubectl get pods -A
docker compose exec nexus-k3s k3s kubectl get ingress -A

Advanced

Access the Kubernetes cluster from the host

docker compose exec nexus-k3s cat /shared/k3s/kubeconfig > kubeconfig.local
export KUBECONFIG=./kubeconfig.local
kubectl get nodes
kubectl get pods -A

Database access

# psql CLI
docker compose exec nexus-db psql -U nexus -d nexus

# pgweb UI
open http://localhost:8082

Backup and restore

# Backup
docker compose exec nexus-db pg_dump -U nexus nexus > backup.sql

# Restore
docker compose exec -T nexus-db psql -U nexus nexus < backup.sql

Troubleshooting

Port conflict (3000, 80, or 443 already in use)

Edit docker-compose.yml and change the host-side port:

ports:
  - "3001:3000"   # dashboard now at http://localhost:3001/dashboard

K3s won't start / keeps restarting

  1. Increase Docker memory to 8 GB minimum (Docker Desktop → Settings → Resources).
  2. Force-recreate the container: docker compose up -d --force-recreate nexus-k3s

Workload returns 404 immediately after deploy

Traefik may still be starting. Wait 30–60 seconds after K3s reports healthy, then retry. Traefik pulls its image (~130 MB) on first run.

No API key in logs

Re-run the init container:

docker compose run --rm nexus-init

Database connection error

Wait for nexus-db to reach the healthy state (not just "running"):

docker compose ps   # check STATUS column
docker compose restart nexus-db nexus-app

Full reset (deletes all workload data)

docker compose down -v
docker compose up -d
docker compose logs nexus-init | grep "nx_"   # retrieve new API key

Architecture

┌─────────────────────────────────────────────────────────────┐
│                        Your Machine                         │
│                                                             │
│  ┌───────────────────────────────────────────────────────┐  │
│  │  Docker Compose                                       │  │
│  │                                                       │  │
│  │  ┌────────────┐  ┌────────────┐  ┌────────────────┐   │  │
│  │  │ nexus-app  │  │ nexus-db   │  │   nexus-k3s    │   │  │
│  │  │ (Next.js)  │  │ (Postgres) │  │ K3s + Traefik  │   │  │
│  │  │ Port 3000  │  │ Port 5432  │  │  Port 80/443   │   │  │
│  │  └────────────┘  └────────────┘  └────────────────┘   │  │
│  │                                                       │  │
│  │  ┌────────────────────────────────────────────────┐   │  │
│  │  │  Volumes: nexus-db-data, nexus-k3s-data        │   │  │
│  │  └────────────────────────────────────────────────┘   │  │
│  └───────────────────────────────────────────────────────┘  │
│                                                             │
│  Dashboard  → http://localhost:3000/dashboard               │
│  Workloads  → http://inst-{id}.localhost                    │
└─────────────────────────────────────────────────────────────┘

Related files

File Purpose
QUICKSTART.md Condensed setup reference
DOCKER.md Advanced Docker configuration
AGENTS.md Architecture and API reference for agents and contributors
.env.local.example Annotated environment variable template
docker-compose.dev.yml Dev mode override (hot reload)

Community

License

This project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0). See the LICENSE file for details.