@nekzus/liop package. It acts as a bridge between standard AI interfaces (like Claude Desktop or Cursor) and the decentralized Logic-Injection-on-Origin Protocol.
Instead of writing a custom server, users can simply run the agent to instantly gain “Logic-Injection-on-Origin” capabilities.
Installation
The agent is distributed via the main SDK package. You can run it directly usingnpx:
liop command available system-wide:
Claude Desktop Integration
LIOP is designed to be a drop-in replacement for MCP servers. To add LIOP tools to your Claude Desktop experience, update your configuration file:Core Features
1. Identity Persistence
The agent generates a unique PeerID (Ed25519 keypair) the first time it runs. This identity is stored in:~/.liop/identity.json
[!IMPORTANT] If you move to a different machine, copying this folder will allow you to keep your reputation and verified access across the Mesh.
2. Autonomous Routing
The agent uses theLiopMcpRouter internally. When a tool call is received from Claude:
- It queries the Kademlia DHT to find nodes providing that tool.
- It establishes a Kyber768 + AES-256-GCM secure tunnel.
- It executes the logic on the remote server and returns the verified result.
3. Bootstrap Discovery
By default, the agent connects to the official LIOP Alpha Nexus. However, you can point it to any mesh bootstrap node:Security & Diagnostics
The agent only communicates via STDIO. It prints status logs and discovery events strictly tostderr, ensuring that the stdout channel remains clean for valid JSON-RPC 2.0 messages required by the LLM client.
Local Mesh Diagnostics (LiopMeshStatus)
The agent automatically exposes a local diagnostic tool called LiopMeshStatus. When an LLM calls this tool, the agent intercepts it locally instead of routing it over the P2P network. It returns a structured operational report detailing:
- Connected Bootstrappers and Peer IDs
- Active Nodes (Vault, Bank, Oracle)
- Tool routing tables and Kademlia DHT state
- Token consumption and telemetry estimates
Environment Variables
The agent behavior can be customized via the following environment variables:Dual-Era MCP Handshake Compliance
The LIOP Agent natively satisfies both modern and legacy MCP client protocols:- MCP v2 Revision (2026-07-28):
- Answers
server/discoverprobes without authentication for stateless tool discovery. - Automatically includes mandatory
resultType: "complete"intools/listresponses. - Handles
subscriptions/listenandresources/templates/listwithout polling overhead.
- Answers
- MCP Legacy Era (2025-11-25):
- Strips v2 metadata via
adaptResponseForLegacyClient()to prevent parsing failures in legacy desktop clients.
- Strips v2 metadata via
Programmatic Mesh Integration (MeshNode)
Developers integrating LIOP into custom backend services can instantiate and manage MeshNode directly rather than invoking the CLI binary:
Key Public Methods
If you encounter connection issues, check for the LIOP Guard banner in the console or ask the LLM to call
LiopMeshStatus.