English · Русский
NerveForge is a fast, asynchronous, lightweight bridge (a receiving gateway) between the AI agents of Arena.ai (Agent Mode) and your own machine: Linux (Ubuntu / Mint), Windows 10/11, macOS or Android (Termux).
It lets an agent running in a cloud container work with your machine as a remote terminal: run commands in any installed shell (Bash, Zsh, Sh, Fish, PowerShell, CMD, WSL), read and edit files, build projects and run arbitrary toolchains.
+--------------------------------------------------------------------------------------------------+
| BRIDGE ARCHITECTURE |
+---------------------+ +--------------------+ +---------------------------+
| Arena.ai | (HTTPS) | Cloudflare tunnel | (Loopback) | Your machine (NerveForge)|
| (Agent Mode) | <=========> | / Tailscale | <=========> | • Linux (Ubuntu / Mint) |
| Cloud container | Bearer Auth| Auto-published | 127.0.0.1 | • Windows 10 / 11 |
| running an agent | | URL | :8766 | • Android (Termux) |
+---------------------+ +--------------------+ +---------------------------+
⚠️ Security warning: full access opens direct command execution on the host to anyone holding the bearer token. Use it on a work PC or a disposable test machine.
- Three platforms in one: native support for Linux, Windows 10/11 and Android (Termux).
- Direct Arena.ai integration: the agent connects over a secure HTTPS tunnel and can write code, build, read logs and fix errors autonomously.
- Skills and a tool catalogue: twelve reverse-engineering and forensics skills, each tied to
the tools it needs, plus 24 catalogued tools with a one-press installer. The panel lists what is
ready, what a single download would fix and what is blocked on this machine. - MCP in both directions: twelve presets (IDA, Ghidra, radare2, jadx, Frida, Volatility, …) as a client, and this bridge itself as an MCP server for another agent.
- Self-documenting:
/api/docs,/llms.txtand/api/agent-promptlet a fresh agent learn the protocol without any manual briefing. - Async engine: worker pool (
ThreadPoolExecutor),TCP_NODELAYsockets, buffered I/O. - Quiet startup: the Cloudflare Quick Tunnel is created without log spam in your terminal.
- Runtime tunnel switching: pick
⚡ Cloudflare Quick Tunnel,🔒 Tailscale Funnelor🏠 Local onlyfrom the web panel. - Public drop box:
/api/public/assets(and legacy/api/public/scripts) create text files with an allowlisted extension (deploy.sh,settings.json,notes.md,.cs,.shader, …) in the workspace root without a token. - Generous limits: up to 40 MB command, 50 MB output and 64 MB request bodies,
adjustable at runtime via
GET/POST /api/limits. - Full access: unlocked with the passphrase
yesiknow; no artificial throttling and no lock against parallel runs. - Zero runtime dependencies: pure Python 3.10+ standard library, no third-party
pippackages. Tools the toolbox can install (radare2, jadx, …) are separate programs in the data directory; the Python packages it can detect (capstone, LIEF, Volatility) are never imported by the bridge.
One command, every platform. The installer is a Python program, so it asks the same questions and prints the same report on Linux, macOS, Windows and Termux:
git clone https://github.com/foursecondfivefour/NerveForge.git
cd NerveForge
./nerveforge install # asks a few questions, then starts the bridgeOn Windows use .\nerveforge install (or python nerveforge install). If the
file is not executable: python3 nerveforge install.
It checks Python, asks which tunnel to use, offers to download cloudflared,
asks which folder the agent may work in, and then starts the receiver. Every
step prints what it found or why it stopped, and nothing that changes the
machine happens without a Y from you.
./nerveforge install --plan # what it would change, and then stop
./nerveforge install --yes # take the defaults, no questions
./nerveforge install --tunnel none # local only, no public address
./nerveforge install --json --plan # the same plan, for another program| Question | Default |
|---|---|
| Tunnel | auto: cloudflared if present, else Tailscale, else local |
Download cloudflared into the data folder |
ask, never silently |
| Working folder for the agent | ~/Projects |
| Desktop shortcut / menu entry | yes on a desktop, skipped on a server or Termux |
nerveforge command on PATH |
no — offered, never assumed |
| Start the bridge afterwards | yes |
The old entry points still work and now hand over to the same installer, so an
older README or a shortcut you keep will not break: bash setup.sh,
bash setup_termux.sh, .\setup_windows.ps1, python3 run.py.
To remove what the installer wrote — shortcut, launcher, downloaded
cloudflared — run ./nerveforge uninstall. Your token, settings, skills and
audit log are kept: those are yours, not the installer's.
The token and the full-access passphrase are printed in the startup banner. If the panel says unauthorized, the token is missing — copy it from the banner or paste it on the Settings screen.
A tunnel needs cloudflared. You do not have to find it, unpack it or put it on
PATH: open the panel, and when the binary is missing a Download
cloudflared button appears next to the tunnel switch. One press downloads the
newest release from GitHub, checks the SHA-256 GitHub publishes for that asset
and writes it to ~/.local/share/nerveforge/bin/cloudflared (mode 0700) — no
root, no system install, no PATH edit. NerveForge prefers that copy over
anything on PATH, so the next start just works.
From a terminal, the same thing:
python3 -m nerveforge.tunnel.cli --install-cloudflaredDownloads are on request only; nothing is fetched at startup. If the digest does not match, or the connection drops, the partial file is deleted and nothing is installed.
Above the terminal the panel now has a toolbox. It is the same idea three times: tell the agent what this machine can do, and let it ask for what is missing.
Skills (Skills tab, GET /api/skills). A skill is a written procedure — binary triage,
function recovery, native debugging, malware static analysis, YARA authoring, dependency audit,
protocol reversing, Android APK, firmware/IoT, disk forensics, memory forensics, dynamic tracing —
with an explicit list of the tools it needs. Each one reports ready, partial or blocked
from what is actually installed, so an agent reading read_skill never starts a procedure it
cannot finish. On a clean container three are ready, one is one button away and eight are
blocked; that is the honest answer, not a bug.
Each skill is a standard SKILL.md under skills/<name>/, in the Agent Skills layout that Claude
Code, Cursor, Codex and Copilot read, so GET /api/skills/<id>/SKILL.md hands the same procedure
to another agent as a file it can drop into .agents/skills/. The verdict stays here, because
only this machine knows what is installed on it.
Tools (GET /api/tools). 24 entries across reverse engineering, debugging, mobile, forensics
and networking, each with the GitHub release asset a download would use. The install button
and the CLI follow the same rule as cloudflared: release asset only, SHA-256 from the same API
response, into <data dir>/tools/ with mode 0700, no PATH and no root. Ghidra, IDA, Binary
Ninja and the Sleuth Kit publish no standalone Linux binary, so they say "use a package manager"
instead of offering a button that would fail.
python3 -m nerveforge.toolkit --list-skills # what is ready here
python3 -m nerveforge.toolkit --list-tools # what is installed, what is missing
python3 -m nerveforge.toolkit --install jadx # download, verify, unpack, chmodMCP (MCP tab, GET /api/mcp). As a client, a preset names the bridge and what blocks it:
ida-pro-mcp and ghidra-mcp want a server you already run, ghidra-headless-mcp wants
uvx, radare2-mcp shells out to npx. HTTP presets connect to a running server; stdio presets
start a child process only when you press connect, never at startup. Every call lands in
<data dir>/mcp-audit.jsonl with secret-looking arguments redacted, and a tool whose name says it
changes something (rename_, patch_, run_*, …) is refused with 409 until the panel asks you
and resends it with allow_mutating.
As a server, the same code exposes this bridge to somebody else's agent:
python3 -m nerveforge.toolkit --serve # read-only tools
python3 -m nerveforge.toolkit --serve --allow-write # adds workspace_write and run_commandIt speaks MCP 2025-06-18 over stdio and offers nine tools — list_skills, read_skill,
list_tools, docs, workspace_list, workspace_read, workspace_write, run_command,
mcp_servers. Write and run are annotated as mutating and need the second flag. docs answers
from Context7, so an agent that sees only tools/list still finds current library documentation.
================================================================
NERVEFORGE 8.2.0 READY
Public address: https://sample-subdomain-1234.trycloudflare.com
Local panel: http://127.0.0.1:8766/
Token: <YOUR_TOKEN>
================================================================
- Open the local panel:
http://127.0.0.1:8766/. - In the red full access card enter the passphrase
yesiknow, choose a duration (1 minute to 24 hours; default 24 hours, idle timeout 10 minutes) and press ENABLE. - The status turns ACTIVE (green).
To pin the bridge to a project, export NERVEFORGE_WORKSPACE=/path/to/project before starting.
In an Arena.ai Agent Mode chat, send:
Connect to my machine through NerveForge: URL:
https://sample-subdomain-1234.trycloudflare.comBearer token:YOUR_TOKENInstructions: callGET /api/docsorGET /llms.txtto learn the API. Task: [for example: check git status and build the project]
- Press Stop immediately in the web panel.
- Or send
POST /api/full-access/stopwith the token. - Or press
Ctrl + Cin the terminal running NerveForge.
The complete reference for every route is docs/API.md. That file is generated
from the route table (python3 scripts/gen_api_doc.py), so it cannot drift from the code —
the test suite and CI fail on any mismatch.
Every protected call needs Authorization: Bearer <token>.
| Method / endpoint | Auth | Purpose |
|---|---|---|
GET /api/docs, GET /llms.txt |
public | Agent manual in Markdown |
GET /api/agent-prompt |
public | JSON system prompt and endpoint map |
GET /api/quick |
bearer | Platform summary (OS, shells, access state, limits) |
GET/POST /api/limits |
bearer | Read and change command/output/body limits |
POST /api/tunnel/config |
bearer | Queue a tunnel switch (cloudflared, tailscale, none); 202 |
POST /api/full-access/config |
bearer | Arm full access: {"armed": true, "duration_seconds": 7200, "confirmation": "yesiknow"} |
POST /api/full-access/run |
bearer | Queue a command: {"command": "...", "timeout_seconds": 120, "shell": "bash", "cwd": "/path"} |
GET /api/full-access/jobs/<id> |
bearer | Poll status (done, error) and output |
POST /api/full-access/stop |
bearer | Kill every command tree immediately |
POST /api/workspace/list |
bearer | {"path": "."} |
POST /api/workspace/read |
bearer | {"path": "file.txt"} |
POST /api/workspace/write |
bearer | {"path": "file.txt", "content": "..."} (previous version is backed up) |
POST /api/public/scripts |
public | Create a new .cs file (legacy) in the workspace root |
POST /api/public/assets |
public | Create a text file with an allowlisted extension |
GET /api/skills, GET /api/skills/<id> |
bearer | Skill catalogue with ready/partial/blocked and the body of one skill |
GET /api/skills/<id>/SKILL.md, /bundle |
bearer | Portable Agent Skills files, with generated front matter |
GET /api/tools |
bearer | Tool catalogue: what is installed, what is missing, what can be downloaded |
POST /api/tools/install |
bearer | {"id": "jadx"} — download, verify the SHA-256, unpack into the data dir; 201 |
GET /api/mcp/presets |
bearer | Thirteen MCP bridges and what blocks each one |
GET /api/mcp/docs, POST /api/mcp/docs/call |
bearer | Current library documentation from Context7, on by default |
POST /api/mcp/connect, /call, /disconnect |
bearer | Drive an MCP server; mutations need allow_mutating |
GET /api/mcp/server/tools |
bearer | This bridge as an MCP server: nine tools, write and run annotated |
The reference lists all 66 routes; docs/API.md is generated from the table, so it cannot drift.
Full allowlist: GET /api/quick → capabilities.public_upload.extensions; add your own with
NERVEFORGE_PUBLIC_UPLOAD_EXTRA. Details: docs/PUBLIC_UPLOAD.md.
The repository ships 1930 automated unit tests (Linux, Windows, Android/Termux, API, security, tunnels). CI runs them on Linux and Windows:
python3 -m unittest discover -s tests -v # 1930 tests
python3 -m compileall -q src tests run.py # Python bytecode
find static -name '*.js' -print0 | xargs -0 -n1 node --check # JavaScript syntax # JS syntax
bash -n setup.sh && bash -n setup_termux.sh # hand-over scripts
python3 scripts/gen_api_doc.py --check # docs/API.md is current
python3 scripts/bump_version.py --check # version artifacts agreeDevelopment tools (not runtime dependencies) live in requirements-dev.txt.
Bump the version with python3 scripts/bump_version.py X.Y.Z.
| Document | Contents |
|---|---|
| docs/API.md | Endpoint reference (generated from the code) |
| docs/ARCHITECTURE.md | Layers, state owners, tunnels, sandbox |
| docs/PANEL.md | Panel modules, data flow, design tokens, adding a screen |
| docs/TOOLKIT.md | Skills, the tool catalogue, the installer and MCP |
| docs/ADR/ | Decisions that are expensive to reverse (0001–0006) |
| docs/DEVELOPMENT.md | Checks, test layout, change checklist |
| docs/PUBLIC_UPLOAD.md | Public upload: allowlist and quotas |
| SECURITY.md | Trust boundaries and what must not be weakened |
| CONTRIBUTING.md | Where code goes, no-globals rule, checks |
| AGENTS.md | Manual for AI agents |
Every document exists in English (default) and in Russian under docs/ru/; each file carries a switcher at the top.
nerveforge/
├── .github/workflows/ # CI: Linux + Windows, tests and syntax checks
├── assets/ # Logos and branding
├── docs/ # Documentation (English, default)
│ ├── API.md # Endpoint reference (generated)
│ ├── ARCHITECTURE.md # Bridge architecture
│ ├── PANEL.md # Panel architecture (ES modules)
│ ├── DEVELOPMENT.md # Development process and checks
│ ├── PUBLIC_UPLOAD.md # Anonymous upload (extension allowlist)
│ ├── TOOLKIT.md # Skills, tool catalogue, installer and MCP
│ ├── REFACTORING_PLAN.md # Refactoring plan and status
│ ├── ADR/ # Architecture decision records
│ └── ru/ # Russian translation of every document
├── scripts/ # Helpers: bump_version.py, gen_api_doc.py, check_docs.py
├── src/nerveforge/ # Python package
│ ├── _version.py # Single source of the version
│ ├── bridge.py # Composition root: server, token, startup
│ ├── http/ # Transport: BaseJsonHandler, router, routes by domain
│ ├── services/ # Domain: approval, full_access, workspace, configs, system
│ ├── service/state.py # ReceiverState: one mutable state under one RLock
│ ├── config/monitor.py # ConfigMonitor: systemd/autostart snapshots and drift
│ ├── core/ # AuditLog, RateLimiter, JobStore, Limits, ApiError, safe_path
│ ├── paths.py # Per-user data and config locations
│ ├── platform_support.py # OS detection and shell registry
│ ├── toolkit/ # Skills, tool catalogue and installer, MCP client and server
│ ├── installer/ # `nerveforge install`: the ten steps, the menu, the report
│ ├── tunnel/ # CLIs, manager and providers (cloudflared/tailscale)
│ ├── uzhas_manager.py # Shell runner with timeout and tree cancellation
│ └── workspace_manager.py # File operations, bwrap sandbox, public uploads
├── static/ # Web panel assets (HTML, CSS, JS)
├── tests/ # Unit tests (1930 tests)
├── pyproject.toml # PEP 517/518 build metadata
├── nerveforge # ./nerveforge — start, or `install` step by step
├── run.py # Alias for ./nerveforge (old shortcuts keep working)
├── setup.sh / setup_windows.ps1 / setup_termux.sh
│ # Hand-over scripts: find Python, run `nerveforge install`
├── AGENTS.md # Agent manual
├── CHANGELOG.md # Release history
├── SECURITY.md # Security policy
├── LICENSE # MIT
└── README.md # This file
Released under the MIT license.
