Skip to content

langoai/lango

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1,643 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Lango Logo

Lango 🐿️

Ask DeepWiki CI Go Version License: MIT Go Report Card

Early-stage project. Some features are experimental and may change between releases. See the feature status table for stability details.

A trustworthy multi-agent runtime in Go. Lango is a high-performance agent runtime that lets AI agents collaborate, learn, and operate autonomously β€” with built-in observability, security hardening, and an optional peer-to-peer economy layer.

Why Lango?

Most agent frameworks stop at tool-calling. Lango builds a trustworthy operational foundation β€” then optionally extends into a peer-to-peer economy:

  • Multi-Agent Orchestration β€” Hierarchical sub-agent teams with role-based delegation, P2P team coordination with conflict resolution strategies, and DAG-based workflow pipelines.
  • Production Observability β€” Token usage tracking, Prometheus metrics, OpenTelemetry tracing, health monitoring, alerting with webhook delivery, and audit logging.
  • Zero-Knowledge Security β€” ZK proofs (Plonk/Groth16) for handshake authentication and response attestation. Agents prove identity and output integrity without revealing internals. Hardware keyring and Cloud KMS support.
  • Knowledge as Currency β€” Self-learning knowledge graph, observational memory, and hybrid vector + graph RAG retrieval β€” agents that get smarter with every interaction can charge for their expertise.
  • Open Interoperability β€” A2A protocol for remote agent discovery, MCP integration for external tool servers, and multi-provider AI support (OpenAI, Anthropic, Gemini, Ollama).
  • Peer-to-Peer Agent Economy β€” Agents discover, authenticate, negotiate prices, and trade capabilities over libp2p with budget management, trust-based risk assessment, and dynamic pricing. No central hub. No vendor lock-in.
  • On-Chain Settlement β€” USDC payments on Base Sepolia testnet (chainId 84532) with EIP-3009 authorization, milestone-based escrow (Hub/Vault dual-mode), Foundry smart contracts, and a Security Sentinel that detects anomalies in real time.
  • Escrow Recommendation Execution β€” For knowledge-exchange transactions approved with escrow, Lango ships a receipt-backed execution slice that binds escrow input during approval and executes create + fund through execute_escrow_recommendation.
  • Smart Accounts β€” ERC-7579 modular smart accounts (Safe-based) with ERC-4337 account abstraction, hierarchical session keys, gasless USDC transactions via paymaster, and on-chain spending limits.
  • Trust & Reputation β€” Every interaction builds a verifiable reputation score. Trusted peers get post-pay terms and price discounts; new peers prepay or use escrow.

Single binary. <100ms startup. <250MB memory. Just Go.

Features

πŸ€– Agent Runtime

  • Multi-provider AI (OpenAI, Anthropic, Gemini, Ollama) with a unified interface
  • Multi-channel delivery (Telegram, Discord, Slack)
  • Rich built-in tools: shell, filesystem, browser automation, crypto, secrets
  • Agent registry with AGENT.md definitions and dynamic keyword + capability routing

β†’ Features overview Β· AI providers Β· Channels

🧠 Knowledge & Learning

  • Self-learning knowledge store with observational memory
  • BoltDB triple store with hybrid vector + graph RAG retrieval
  • File-based skill system with GitHub import (git clone + HTTP fallback)
  • Proactive Librarian that curates the knowledge base autonomously

β†’ Knowledge Β· Knowledge graph Β· Embeddings & RAG Β· Skills Β· Librarian

πŸ”€ Multi-Agent Orchestration

  • Hierarchical sub-agents: operator, navigator, vault, librarian, automator, planner, chronicler, ontologist
  • DAG-based YAML workflows with parallel step execution and state persistence
  • Task-scoped P2P teams with conflict resolution (trust-weighted, majority vote, leader decides)

β†’ Multi-agent Β· Workflows & automation

🌐 P2P & Interoperability

  • libp2p network with DHT discovery, ZK-enhanced handshake, and knowledge firewall
  • A2A protocol for remote agent discovery and integration
  • MCP integration (stdio/HTTP/SSE) with auto-discovery, health checks, multi-scope config

β†’ P2P network Β· A2A protocol Β· MCP integration

πŸ’Έ On-Chain Economy

  • USDC payments on Base L2 with X402 V2 auto-pay (Coinbase SDK)
  • ERC-7579 modular smart accounts with hierarchical session keys, ERC-4337 paymaster
  • Milestone-based escrow with Hub/Vault dual-mode settlement (Foundry contracts)
  • Security Sentinel: real-time anomaly detection on escrow flows

β†’ Payments Β· USDC Β· X402 Β· Economy Β· Contracts

πŸ”’ Security & Privacy

  • Master Key envelope (MK/KEK hierarchy) with AES-256-GCM
  • Brokered payload protection for sessions, learnings, inquiries, agent memory
  • Hardware keyring (Touch ID / TPM) and Cloud KMS (AWS / GCP / Azure / PKCS#11)
  • OS-level sandbox (macOS Seatbelt, Linux bubblewrap) with network deny and workspace-scoped writes
  • Response Gatekeeper output sanitization; PII redaction; recovery mnemonic

β†’ Security Β· Encryption Β· Approval flow Β· Authentication

πŸ–₯️ Operations & UX

  • Cockpit TUI with Mission Control, Chat, Settings, Tools, Status, Sessions, Tasks, Dead Letters, Approvals
  • Persistent cron jobs and async background task manager with completion notifications
  • RunLedger (Task OS) β€” durable execution engine with append-only journal and PEV verification
  • Session Provenance β€” checkpoints, lineage tree, git attribution, signed bundle export/import
  • Prometheus metrics, OpenTelemetry tracing, OIDC authentication, gateway WebSocket/HTTP

β†’ Cockpit Β· Observability Β· RunLedger Β· Provenance

πŸ“¦ Extensibility

  • Extension packs: skills, modes, prompts in inspectable bundles (lango extension install)
  • Config presets via lango onboard --preset
  • Per-agent persistent memory for cross-session context
  • Typed event bus and tool-hook middleware (security filter, access control, knowledge save)

β†’ Skills Β· Config presets Β· Agent memory

Quick Start

Install

git clone https://github.com/langoai/lango.git
cd lango
make build
./bin/lango onboard

onboard is interactive β€” it sets up your master key passphrase, picks a provider, and writes ~/.lango/config.yaml. For headless setups or detailed flags, see Installation.

Configure (minimal)

# Set provider + API key (the --from-env form avoids saving secrets in shell history)
./bin/lango config set agent.provider openai
OPENAI_API_KEY=sk-... ./bin/lango config set providers.openai.apiKey --from-env OPENAI_API_KEY

# Or use a preset
./bin/lango onboard --preset minimal

Full configuration reference: getting started Β· complete schema.

Run

# Mission Workbench TUI (default β€” bare invocation)
./bin/lango

# Multi-panel Cockpit dashboard (Mission Control, Sessions, Tasks, Approvals, ...)
./bin/lango cockpit

# Interactive chat session
./bin/lango chat

# Headless gateway server (port is read from `server.port` in config β€” see docs/configuration.md)
./bin/lango serve

See the Quick start guide for first-task walkthroughs.

Architecture

Lango is a layered Go runtime. Each layer depends only on layers below it.

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Surfaces      TUI (Workbench/Cockpit/Chat) Β· Gateway Β· CLI  β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  Orchestration agentrt Β· TurnRunner Β· multi-agent Β· workflow β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  Capabilities  tools Β· skills Β· MCP Β· A2A Β· learning Β· RAG   β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  Economy       payments Β· contracts Β· escrow Β· smart account β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  Knowledge     KG triple store Β· vector index Β· memory       β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  Platform      session Β· storage (Ent/SQLite) Β· event bus    β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  Security      MK/KEK envelope Β· sandbox Β· approval Β· ZK     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                     P2P transport (libp2p) ⇄ peers

Surfaces never contain business logic β€” they parse input, call the orchestration layer, and format output. agentrt is the control plane on top of ADK that wires TurnRunner, multi-agent delegation, and the event bus.

Capabilities are pluggable: tools register via a middleware chain (security filter, access control, event publish, knowledge save); skills load from files or GitHub; MCP and A2A connect to external runtimes.

Economy is optional but first-class: USDC settlement on Base L2, ERC-7579 smart accounts with session keys, and Hub/Vault escrow contracts run alongside the Security Sentinel for anomaly detection.

For deeper structure, read:

Documentation

Full documentation lives under docs/. Below is a navigation map:

Getting Started

Topic Doc
Installation docs/getting-started/installation.md
Quick start docs/getting-started/quickstart.md
Configuration docs/getting-started/configuration.md

CLI Reference

Command family Doc
Overview docs/cli/index.md
agent Β· run Β· config agent Β· run Β· config
payment Β· contract Β· smartaccount Β· economy payment Β· contract Β· smartaccount Β· economy
p2p Β· a2a Β· mcp p2p Β· a2a Β· mcp
learning Β· librarian Β· graph Β· agent-memory learning Β· librarian Β· graph Β· agent-memory
security Β· approval Β· sandbox security Β· approval Β· sandbox
automation Β· provenance Β· extension Β· status automation Β· provenance Β· extension Β· status
alerts Β· metrics Β· core alerts Β· metrics Β· core

Architecture

Topic Doc
System overview docs/architecture/overview.md
Data flow docs/architecture/data-flow.md
Project structure docs/architecture/project-structure.md
Master document docs/architecture/master-document.md

Features

See docs/features/index.md for the complete feature catalog with stability annotations. Highlights:

  • Cockpit TUI Β· AI providers Β· Channels Β· Multi-agent Β· A2A Β· P2P Β· MCP
  • Knowledge graph Β· Embeddings & RAG Β· Learning Β· Librarian Β· Skills Β· Agent memory
  • Economy Β· Contracts Β· Observability Β· Provenance Β· RunLedger Β· Exec safety

Security

Topic Doc
Index docs/security/index.md
Encryption docs/security/encryption.md
Approval flow docs/security/approval-flow.md
Authentication docs/security/authentication.md
PII redaction docs/security/pii-redaction.md
Envelope migration docs/security/envelope-migration.md
Tool approval docs/security/tool-approval.md
Exportability docs/security/exportability.md

Payments & Economy

Topic Doc
Payments index docs/payments/index.md
USDC docs/payments/usdc.md
X402 docs/payments/x402.md

Automation

Gateway

Deployment

Development

Project Status

Lango is under active development. Feature stability varies β€” see the feature status table for current annotations (stable Β· beta Β· experimental Β· planned).

Active workstreams and design specs live in openspec/ (proposed and active changes) and internal-docs/ (planning artifacts). For Phase progress notes, see the development index.

Contributing

Contributions are welcome. Before opening a PR:

  1. Read docs/development/build-test.md for the build, test, and lint commands.
  2. Match the existing code style β€” see .claude/rules/go-style.md, go-guidelines.md, go-errors.md, and go-patterns.md.
  3. For substantive changes, open an OpenSpec change first under openspec/changes/.

License

MIT

Releases

Sponsor this project

Packages

Contributors

Languages