Skip to content

Argocyte/Iskander

Repository files navigation

Iskander

Lunarpunk Cooperative Infrastructure -- federated, private, self-hosted. Web3 in the hands of people who otherwise wouldn't touch it, in a decision-making environment that just works.

License: AGPL-3.0-only Solidity 0.8.24


What Is Iskander?

Iskander is a self-hosted cooperative platform that federates across groups, enforces democratic governance, and uses cryptography only where it solves problems no other technology can. Generous tit-for-tat game theory creates emergent cooperative behaviours that outcompete extractive capitalism.

Run it once and your cooperative gets:

  • Loomio -- democratic decision-making (proposals, votes, discussions, STV elections)
  • Mattermost -- real-time team chat, bridged to governance via the AI Clerk
  • AI Clerk -- a conversational assistant that helps members participate, draft documents, and understand decisions
  • Nextcloud -- shared files, calendar, contacts, email
  • Glass Box -- every AI action is transparent and auditable by any member
  • Treasury monitoring -- an AI Steward watches the cooperative's wallet and creates proposals for significant spending
  • Vaultwarden -- shared credential and password management for the cooperative
  • Backrest -- automated backups with Restic, managed through a clean UI
  • Beszel -- lightweight system monitoring (replaces heavyweight Grafana + Prometheus stacks)
  • Single Sign-On -- one account (via Authentik) accesses everything
  • Cloudflare Tunnel -- public access with zero open ports
  • Headscale -- mesh networking for inter-cooperative federation
  • Blockchain anchoring -- decisions recorded on-chain with IPFS hashes for tamper-proof history
  • Zero-knowledge voting -- MACI secret ballots where individual votes are never disclosed
  • Federation -- cooperatives discover and communicate with each other over WireGuard mesh

All of this is aligned to the ICA Cooperative Principles -- the seven internationally recognised principles defined by the International Co-operative Alliance. The AI agents embody the six core cooperative values (self-help, self-responsibility, democracy, equality, equity, solidarity) and four ethical values (honesty, openness, social responsibility, caring for others).


Sibling repositories

As of 2026-04-11, Iskander is organised into three sibling public repositories under the Argocyte GitHub account. All three are part of the same cooperative infrastructure project. This repository (Argocyte/Iskander) holds IskanderOS — the governance substrate, AI agent runtime, services, and K3s/Helm deployment — plus the linking docs that describe how the three repos fit together.

Repo Scope Licence
Argocyte/Iskander (this repo) IskanderOS — cooperative governance + AI agent runtime + K3s/Helm deployment AGPL-3.0-only
Argocyte/IskanderHearth Open-hardware cooperative compute appliance (PCBs, firmware, enclosures, thermal, manufacturing) CERN-OHL-S v2 (hardware) + AGPL-3.0 (firmware/software)
Argocyte/Iskander-data Cooperative operating data commons (schemas + data under consent-gated flow) CC-BY-SA 4.0 (data) + AGPL-3.0 (schemas)

The unified cross-repo view is provided by the Iskander Ecosystem GitHub Project.

Prior to 2026-04-11, src/IskanderHearth/ lived inside this repository. It has been extracted to Argocyte/IskanderHearth with full history preservation via git filter-repo --subdirectory-filter src/IskanderHearth, preserving the original authorship of commit 9f73802 (2026-03-17, Lola Whipp). The src/IskanderHearth/ path is now removed from this repository; the standalone Argocyte/IskanderHearth is the authoritative source for hardware work going forward.


Privacy Model: Lunarpunk Selective Disclosure

Iskander follows a lunarpunk privacy architecture with three distinct layers:

  • Glass Box (internal) -- aggregate outcomes, proposal results, treasury movements, and AI audit trails are visible to all members. Full transparency within the cooperative.
  • ZK-Private Voting -- individual votes are never disclosed. MACI zero-knowledge proofs guarantee anti-coercion: even under duress, no one can prove how they voted.
  • Opaque Externally -- the cooperative presents a unified face to the outside world. Internal deliberations, member identities, and governance processes are not exposed to non-members.

Why Web3? Five Problems Only Cryptography Solves

Iskander does not use blockchain for its own sake. Every web3 component addresses a specific problem that cannot be solved with conventional infrastructure:

Problem Solution Why No Alternative Exists
Tamper-evident decision records IPFS content hashes + on-chain anchoring No central admin can silently alter the historical record
Anti-coercion voting MACI zero-knowledge proofs Voters cannot be forced to prove how they voted, even to themselves
Sybil-resistant identity Soulbound Tokens (ERC-4973) + BrightID One-member-one-vote without trusting a central identity provider
Inter-cooperative trust without intermediaries On-chain escrow + reputation + arbitration Cooperatives transact directly; no platform extracts rent
Anti-extractive finance cFIAT tokens, pay ratio enforcement Treasury rules are code -- no board can override them unilaterally

Everything else runs on proven, boring technology.


Architecture

                   +-------------------------------+
                   |     Authentik (SSO / OIDC)     |
                   |    One login for everything    |
                   +----+------+------+------+------+
                        |      |      |      |
         +--------------+  +---+---+  |  +---+-----------+
         |  Loomio          |Matter|  |  | Nextcloud     |
         |  Governance      |most  |  |  | Files, Cal,   |
         |  Proposals,      |Chat  |  |  | Contacts      |
         |  Votes           |      |  |  +---------------+
         +-------+----------+--+---+  |
                 |              |      |
         OpenClaw (Clerk + Steward agents)
                 |              |
      +----------+----------+  |
      |                     |  |
 Ollama (LLM)    Decision Recorder
                  (PostgreSQL + IPFS)
                                |
  +-----------------------------+-----------------------------+
  |              |              |             |               |
Vaultwarden  Backrest       Beszel      Cloudflared     Headscale
Credentials  Backups       Monitoring   Tunnel          Mesh VPN

All services run on K3s -- a single 40MB binary that replaces Docker Compose with production-grade Kubernetes orchestration. Native multi-node support means federation and horizontal scaling require no architectural changes.

Services (Phase C -- 15 services, ~7.2GB RAM minimum, 16GB recommended)

Service Purpose Footprint
K3s Lightweight Kubernetes orchestration ~40MB
PostgreSQL 16 Shared database (Loomio, Nextcloud, Authentik, Mattermost, decisions) ~256MB
Redis Session store and job queue ~50MB
Authentik OAuth2/OIDC identity provider -- SSO for all services ~500MB
Loomio Democratic decision-making (proposals, votes, STV elections) ~512MB
Mattermost Real-time team chat, AI Clerk bridge ~300MB
Nextcloud File hosting, calendar, contacts, email client ~512MB
Ollama Local LLM inference (Phi-3-mini or OLMo) ~2GB
OpenClaw AI agent orchestrator (Clerk + Steward agents) ~256MB
IPFS Kubo Decision record pinning for tamper-proof history ~256MB
Vaultwarden Bitwarden-compatible shared credential management ~50MB
Backrest Backup management with Restic backend ~50MB
Beszel Lightweight system monitoring and alerting ~50MB
Cloudflared Cloudflare Tunnel -- public access, zero open ports ~50MB
Headscale Self-hosted Tailscale control server for mesh federation ~50MB

Phase B Expansion (Weeks 4-8)

Adds four more services, bringing the total to 19:

Service Purpose
Anvil Local EVM node for smart contract interaction
Chain Bridge Connects local contracts to L2 mainnet
Stalwart Self-hosted email server
Caddy Public cooperative website with automatic TLS

The AI Clerk

The Clerk is every member's personal assistant. It operates in both Loomio (governance context) and Mattermost (real-time chat), bridging the two seamlessly.

What it does:

  • Answers questions about the cooperative (finances, decisions, rules)
  • Helps draft proposals -- guides members to the right decision process (Advice, Consent, Consensus)
  • Drafts and revises documents based on member input, saves to Nextcloud
  • Incorporates feedback from multiple members into document revisions
  • Summarises long discussion threads in plain language
  • Tracks action items as Loomio tasks with due dates
  • Reminds members about pending votes via @mentions
  • Guides members through ICA values self-reflection
  • DMs members via Loomio Direct Discussions or Mattermost DMs to help expand ideas into full proposals
  • Bridges governance decisions into Mattermost channels for real-time discussion

What it never does:

  • Vote or express opinions
  • Advocate for any position
  • Withhold information from any member
  • Finalise a document without member approval

Every Clerk action is logged in the Glass Box -- any member can ask "What have you been doing?" and get a full audit trail.


Key Influences

Iskander builds on the intellectual foundation of four projects that prove cooperative technology works:

  • DisCO (Distributed Cooperative Organizations) -- feminist economics, care work valuation, pro-bono tracking. Iskander adopts DisCO's insistence that invisible labour be made visible and valued.
  • Hypha DAO 3.0 -- human-centered governance tooling. Hypha proved that DAOs can serve real organizations, not just token holders.
  • ICN (Inter-Cooperative Network) -- trust-native federation between cooperatives. ICN's model of mutual aid without intermediaries directly informs Iskander's Headscale mesh.
  • DarkFi -- lunarpunk privacy philosophy. The principle that privacy is not optional but foundational shapes Iskander's selective disclosure model.

ICA Cooperative Principles

Every aspect of Iskander is designed around the seven cooperative principles:

# Principle How Iskander Implements It
1 Voluntary and Open Membership SSO onboarding, Clerk-guided welcome sequence, membership lifecycle
2 Democratic Member Control Loomio voting (Consent, Consensus, STV elections), 1-member-1-vote via BrightID + MACI ZK proofs
3 Member Economic Participation Treasury monitoring, member shares, surplus distribution, asset-lock enforcement, cFIAT tokens
4 Autonomy and Independence Fully self-hosted on K3s, no cloud dependencies, cooperative owns all infrastructure
5 Education, Training, Information Clerk-guided onboarding, values reflection, proactive governance training
6 Cooperation among Cooperatives Headscale mesh federation, Liaison agent, cooperative discovery protocol
7 Concern for Community SDG tracking, sustainability reporting, energy-aware scheduling

Repository Structure

iskander/
+-- README.md
+-- CLAUDE.md                       # Working conventions + invariants + how Et works
+-- docs/
|   +-- roadmap.md                  # Phased project roadmap
|   +-- overview.md                 # Non-technical overview for members
|   +-- plan.md                     # Detailed technical plan (Route C -> B)
|   +-- essays/                     # Long-form cooperative-governance reflections
|   +-- legacy-audit.md             # Legacy backend module disposition (feeds #128)
|   +-- archive/                    # Archived design specs
+-- skills/                         # Claude Code skill plugins
+-- src/
    +-- IskanderOS/
    |   +-- openclaw/               # AI agent system
    |   |   +-- openclaw.json       # OpenClaw configuration
    |   |   +-- agents/
    |   |   |   +-- orchestrator/   # Agent coordinator
    |   |   |   +-- clerk/          # Member-facing assistant (Loomio + Mattermost)
    |   |   |   +-- steward/        # Treasury monitor
    |   |   +-- skills/
    |   |       +-- loomio-bridge/  # Loomio API integration
    |   |       +-- mattermost-bridge/ # Mattermost API integration
    |   |       +-- document-collab/# AI-assisted document drafting
    |   |       +-- values-reflection/
    |   |       +-- glass-box/      # Audit trail
    |   |       +-- treasury-monitor/
    |   |       +-- membership/     # Join/leave/onboard
    |   +-- services/
    |   |   +-- authentik/          # SSO identity provider
    |   |   +-- loomio/             # Governance platform
    |   |   +-- mattermost/         # Real-time team chat
    |   |   +-- nextcloud/          # Files, calendar, email
    |   |   +-- vaultwarden/        # Credential management
    |   |   +-- backrest/           # Backup management
    |   |   +-- beszel/             # System monitoring
    |   |   +-- cloudflared/        # Tunnel for public access
    |   |   +-- headscale/          # Mesh VPN for federation
    |   |   +-- decision-recorder/  # Webhook service (FastAPI)
    |   |   +-- website/            # Public cooperative website
    |   +-- infra/
    |   |   +-- k3s/                # K3s manifests and Helm charts
    |   |   +-- ansible/            # Installation playbooks
    |   |   +-- decision_log.sql    # Database schema
    |   +-- contracts/              # Solidity smart contracts
    |   |   +-- src/
    |   |       +-- Constitution.sol
    |   |       +-- CoopIdentity.sol    # ERC-4973 Soulbound Tokens
    |   |       +-- governance/
    |   |           +-- MACIVoting.sol  # ZK secret ballot voting
    |   +-- scripts/
    |   |   +-- install.sh          # curl|sh entry point
    |   |   +-- first-boot.py       # Interactive setup wizard
    |   +-- docs/                   # ICA reference documents
    |   +-- legacy/                 # Archived: previous backend, frontend, agents

Note: Hardware work (previously at src/IskanderHearth/) has moved to its own repository at Argocyte/IskanderHearth as of 2026-04-11. See the "Sibling repositories" section above for the three-repo public foundation.


Getting Started

Prerequisites

  • A Linux machine (Ubuntu 24.04 recommended, any systemd-based distro works)
  • 16GB RAM recommended (7.2GB minimum)
  • A domain name (optional but recommended for Cloudflare Tunnel)

Installation

curl -sfL https://get.iskander.coop | sh

That single command runs an Ansible playbook underneath that:

  1. Installs K3s (single 40MB binary -- no Docker required)
  2. Deploys all 15 Phase C services
  3. Configures SSO across Loomio, Mattermost, Nextcloud, and Vaultwarden
  4. Launches the first-boot wizard

The wizard will ask for:

  1. Your cooperative's name
  2. Founding members (name + email)
  3. Optional: your domain name for Cloudflare Tunnel

Then it starts all services, creates accounts, and opens your browser. Your cooperative is ready.

The experience is modelled on Tailscale: one command, no prerequisites, works everywhere.


Development Status

Iskander is in active development following the Route C to B plan:

  • Phase C (Weeks 1-3): Radical MVP -- 15 services: K3s + Loomio + Mattermost + Clerk + Nextcloud + SSO + Glass Box + Treasury + Vaultwarden + Backrest + Beszel + Cloudflared + Headscale + IPFS + Ollama
  • Phase B (Weeks 4-8): Expansion -- blockchain (Anvil + Chain Bridge), ZK voting, governance contracts, email (Stalwart), website (Caddy), bringing total to 19 services

See docs/ROADMAP.md for the full phased roadmap.


Security

Iskander is designed for deployment on the open internet with a zero-open-ports model:

  • All public traffic routed through Cloudflare Tunnel (no exposed ports)
  • Inter-cooperative federation over Headscale WireGuard mesh (encrypted, authenticated)
  • TLS everywhere within the cluster
  • Authentik SSO with MFA support
  • Internal-only networking for databases
  • Non-root containers with dropped capabilities
  • Automated backups via Backrest + Restic
  • System monitoring via Beszel with alerting
  • Shared credentials managed in Vaultwarden (never in plaintext)

See the Security Hardening section of the plan for full details.


License

Component License
IskanderOS (software, contracts) AGPL-3.0-only
IskanderHearth (hardware) CERN-OHL-S v2

The AGPL-3.0 ensures that any deployment must share its source code, preventing proprietary forks from extracting cooperative value.


References

About

No description, website, or topics provided.

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors