Lightweight local HTTP file server with plugin support. Serves static files from a webroot, mounts plugin directories at URL prefixes via config, and runs in...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install intranet或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install intranet⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/intranet/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: intranet description: "Lightweight local HTTP file server with plugin support. Serves static files from a webroot, mounts plugin directories at URL prefixes via config, and runs index.py entry points as CGI." summary: "Local HTTP file server with config-based plugins and CGI support." version: 3.2.7 homepage: https://github.com/odrobnik/intranet-skill metadata: openclaw: emoji: "🌐" acceptLicenseTerms: true requires: bins: ["python3"] ---
Lightweight local HTTP file server — no Apache/nginx needed, no root required. Serves static files, mounts plugin directories, and runs index.py entry points as CGI.
Entry point: {baseDir}/scripts/intranet.py
See SETUP.md for prerequisites and setup instructions.
python3 {baseDir}/scripts/intranet.py start # Start on default port 8080
python3 {baseDir}/scripts/intranet.py start --port 9000 # Custom port
python3 {baseDir}/scripts/intranet.py start --host 0.0.0.0 # LAN access (requires token + allowed_hosts)
python3 {baseDir}/scripts/intranet.py start --token SECRET # Enable bearer token auth
python3 {baseDir}/scripts/intranet.py status # Check if running
python3 {baseDir}/scripts/intranet.py stop # Stop server
{workspace}/intranet/
├── config.json # Server config (NOT served)
└── www/ # Webroot (served files go here)
├── index.html
└── ...
Config lives in {workspace}/intranet/config.json, webroot is {workspace}/intranet/www/. The config file is never exposed to HTTP.
Plugins mount external directories at URL prefixes. Configure in config.json:
{
"plugins": {
"banker": "{workspace}/skills/banker/web",
"deliveries": "{workspace}/skills/deliveries/web"
}
}
Plugin config supports simple (static only) or extended (with CGI hash) format:
{
"plugins": {
"static-only": "/path/to/dir",
"with-cgi": {
"dir": "/path/to/dir",
"hash": "sha256:abc123..."
}
}
}
hash, index.py at the plugin root handles all sub-paths — but only if its SHA-256 matcheshash are static-only (CGI blocked even when globally enabled)shasum -a 256 /path/to/index.pyOff by default. Enable in config.json:
{
"cgi": true
}
When enabled, only files named index.py can execute as CGI:
index.py in any subdirectory handles that directory's requestsindex.py at the plugin root handles all plugin sub-paths.py files → 403 Forbidden (never served, never executed)chmod +x)www/), never served"cgi": true in config.jsonconfig.json are served; must be inside workspaceindex.py — no arbitrary script execution; plugin CGI requires SHA-256 hash in config.json. Webroot CGI does not require a hash (webroot files are under your direct control).py files blocked except index.py entry points (not served as text, not executed)allowed_hosts restricts which Host headers are accepted--token flag or config.json. Browser clients visit ?token=SECRET once → session cookie set → all subsequent navigation works. API clients use Authorization: Bearer header.127.0.0.1 (loopback only). LAN access via --host 0.0.0.0 requires both token auth and allowed_hosts in config.json.The server auto-detects the workspace by walking up from $PWD (or the script location) looking for a skills/ directory. The detected path is printed on startup so you can verify it.
To skip autodiscovery, set INTRANET_WORKSPACE to the workspace root:
INTRANET_WORKSPACE=/path/to/workspace python3 scripts/intranet.py start
- Config: {workspace}/intranet/config.json - PID: {workspace}/intranet/.pid - Runtime: {workspace}/intranet/.conf - Webroot: {workspace}/intranet/www/
安装 Intranet 后,可以对 AI 说这些话来触发它
Help me get started with Intranet
Explains what Intranet does, walks through the setup, and runs a quick demo based on your current project
Use Intranet to lightweight local HTTP file server with plugin support
Invokes Intranet with the right parameters and returns the result directly in the conversation
What can I do with Intranet in my developer & devops workflow?
Lists the top use cases for Intranet, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/intranet/ 目录(个人级,所有项目可用),或 .claude/skills/intranet/(项目级)。重启 AI 客户端后,用 /intranet 主动调用,或让 AI 根据上下文自动发现并使用。
Intranet 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Intranet 可免费安装使用。请查阅仓库了解许可证信息。
Lightweight local HTTP file server with plugin support. Serves static files from a webroot, mounts plugin directories at URL prefixes via config, and runs in...
Intranet 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my developer & devops tasks using Intranet
Identifies repetitive steps in your workflow and sets up Intranet to handle them automatically