
Security News
pnpm 11.5 Adds Support for Recognizing npm Staged Publishes
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.
@sleep2agi/agent-network
Advanced tools
AI Agent Network CLI — Create multi-agent networks with user management, network isolation, and 3 AI runtimes (Claude/Codex/MiniMax). 39 commands.
anet)Run a local network of AI agents from one CLI.
anet starts a CommHub, launches the web dashboard, creates agent nodes, and lets those nodes talk to each other through MCP tools such as send_task, get_task, and get_all_status.
Agent Network is a local-first multi-agent runtime:
anet, the single entry point for setup, auth, node lifecycle, and demos.The default path runs entirely on your machine. LAN sharing is opt-in.
anet hub start lazy-runs the Bun-based CommHub server)Install Bun if needed:
curl -fsSL https://bun.sh/install | bash
Stable:
npm install -g @sleep2agi/agent-network
anet -v
Preview channel:
npm install -g @sleep2agi/agent-network@preview
anet -v
Current npm dist-tags verified on 2026-05-28:
| Package | latest | preview |
|---|---|---|
@sleep2agi/agent-network | 2.2.9 | 2.2.10-preview.3 |
@sleep2agi/commhub-server | 0.8.3 | 0.8.4-preview.1 |
@sleep2agi/agent-network-dashboard | 0.5.6 | 0.5.7-preview.2 |
@sleep2agi/agent-node | 2.4.6 | 2.4.7-preview.6 |
Open three terminals.
anet hub start
Default local URL:
http://127.0.0.1:9200
By default the hub binds to localhost. Use --host 0.0.0.0 only when you intentionally want LAN clients to connect.
anet hub dashboard
Open:
http://localhost:3000
anet login --username admin --password anethub
anet node create my-bot
anet node start my-bot
anet node create walks you through:
claude-code-cli, claude-agent-sdk, codex-sdk, or grok-build-acp.When the node starts successfully, look for:
SSE connected
Then use the Dashboard chat panel to send my-bot a message.
Create a second node:
anet node create reviewer
anet node start reviewer
Ask my-bot:
Ask reviewer to review this plan and summarize the risks.
The first agent can discover peers with get_all_status, delegate work with send_task, poll with get_task, and integrate the reply. The dashboard Tasks and Messages views show the chain.
On the hub machine:
anet hub start --host 0.0.0.0
On another machine:
npm install -g @sleep2agi/agent-network
anet init --hub http://<HUB-LAN-IP>:9200
anet login --username admin --password anethub
anet node create remote-bot
anet node start remote-bot
Do not expose the hub directly to the public internet without a reverse proxy, HTTPS, firewall rules, and reviewed auth settings.
| Runtime | Use When | Notes |
|---|---|---|
claude-code-cli | You want Claude Code CLI sessions and channel support | Uses Claude Code process; supports stable COMMHUB_RESUME_ID in recent previews |
claude-agent-sdk | You want Anthropic-compatible API providers | Good default for provider presets |
codex-sdk | You want Codex-backed nodes | Useful as a backup runtime when Claude quota is constrained |
grok-build-acp | You want Grok Build through grok agent stdio | Requires Grok Build CLI auth; stable for receive/reply, session persistence, and explicit send_task delegation |
grok-build-acp uses the local Grok Build CLI via Agent Client Protocol (ACP). Install and authenticate Grok first:
curl -fsSL https://x.ai/cli/install.sh | bash
grok
Create and start a node:
anet node create grok-demo --runtime grok-build-acp
anet node start grok-demo
Look for:
runtime: grok-build-acp
SSE connected
Stable support:
grokSession into .anet/nodes/<name>/config.json.给 A站助手 发任务: ... is intercepted by agent-node, sent through CommHub with parent_task_id, and polled until the child task reaches replied or failed.Current boundary:
agent-node handles the CommHub call deterministically.grok ACP error -32603, upgrade to the latest @sleep2agi/agent-node and restart the node; recent builds narrow ACP capabilities and include error.data diagnostics.Details: docs/grok-build-runtime.md.
anet node create writes the correct provider environment into .anet/nodes/<name>/config.json.
| Provider | Status | Notes |
|---|---|---|
| Anthropic | verified path | Native Anthropic Messages API |
| MiniMax | verified path | Anthropic-compatible endpoint |
| DeepSeek | verified path | Anthropic-compatible endpoint |
| GLM / Zhipu | verified path | Anthropic-compatible endpoint |
| Kimi / Moonshot | verified path | Anthropic-compatible endpoint |
| OpenRouter | available | Anthropic-compatible routing |
| Custom | available | Provide base URL, model, and token |
# Hub and dashboard
anet hub start
anet hub dashboard
# Auth
anet register
anet login --username <user> --password <password>
anet logout
anet whoami
anet passwd
# Nodes
anet node create <name>
anet node start <name>
anet node start --all
anet node stop <name>
anet node resume <name>
anet node rename <old> <new> --force
anet node delete <name>
anet node ls
anet info <name>
anet logs <name>
# Network status and repair
anet status
anet tasks [status]
anet doctor
anet doctor --fix
# Project and session helpers
anet init --hub <url>
anet init project
anet project up
anet project restart
anet project down
anet session ls
# Channels and upgrades
anet channel add telegram <name> --bot-token <tok> --allow <uid>
anet channel ls
anet upgrade
anet upgrade --channel preview --dry-run
# Batch / demos
anet create --batch
anet batch list
anet batch stop <prefix>
anet demo sci-team
~/.anet/config.json
Global CLI profile: hub URL, user token, default network.
~/.anet/server/admin-utok.json
Local bootstrap admin token for the hub.
{project}/.anet/nodes/<name>/config.json
Per-node runtime, model, provider env, node token, channels, and session IDs.
Example node config:
{
"node_id": "n_a1b2c3d4",
"node_name": "my-bot",
"alias": "my-bot",
"hub": "http://127.0.0.1:9200",
"network_id": "default",
"token": "ntok_...",
"runtime": "claude-agent-sdk",
"model": "your-model",
"channels": ["server:commhub"],
"tools": ["Read", "Write", "Edit", "Bash", "Glob", "Grep"],
"env": {
"ANTHROPIC_BASE_URL": "https://example.com/anthropic",
"ANTHROPIC_AUTH_TOKEN": "sk-..."
},
"flags": {
"dangerouslySkipPermissions": true,
"teammateMode": "in-process",
"maxTurns": 50
}
}
Do not commit .anet/ or provider API keys.
127.0.0.1 by default.anet hub start --host 0.0.0.0.ntok_ tokens; user tokens are utok_.Stable day-to-day path:
anet hub startanet hub dashboardanet loginanet node create/start/stop/delete/renameanet node start --allanet project up/restart/downActively evolving:
This package lives in the agent-network/ subdirectory of the monorepo:
agent-network/
bin/cli.ts anet CLI
src/client.ts SDK client
src/node-server.ts CommHub MCP server bridge used by claude-code-cli
src/im/ IM integration contracts and future adapters
Related packages live next to it:
server/ @sleep2agi/commhub-server
agent-node/ @sleep2agi/agent-node
docs-site/ anet.sh documentation site
Apache-2.0
FAQs
AI Agent Network CLI — Create multi-agent networks with user management, network isolation, and 3 AI runtimes (Claude/Codex/MiniMax). 39 commands.
The npm package @sleep2agi/agent-network receives a total of 2,485 weekly downloads. As such, @sleep2agi/agent-network popularity was classified as popular.
We found that @sleep2agi/agent-network demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.