The CollectiVAI App-Chain is a Cosmos-based governance chain for the CollectiVAI ecosystem.
Its purpose is to provide neutral, auditable infrastructure for:
- on-chain proposals (policies, projects, civic programmes),
- votes (citizens, experts, institutions – depending on governance rules),
- and treasury allocations tied to democratic, human-centred AI projects.
Core idea:
The CollectiVAI Chain is where long-term, public decisions live,
while the CollectiVAI App and Router focus on UX, AI assistance and routing.
This repository contains the chain implementation in Go, based on the Cosmos SDK.
The chain is designed around a few simple principles:
-
Democratic by design
- Governance is not an afterthought – it is the main purpose of the chain.
- Proposals, votes and roles are encoded in modules and state.
-
Human-centred
- Proposals and metadata are meant to be human-readable first.
- The CollectiVAI App acts as a friendly client, not a trading UI.
-
Auditability & transparency
- All important decisions (proposals, parameter changes, treasury flows)
should be traceable over time.
- All important decisions (proposals, parameter changes, treasury flows)
-
Modular & extensible
- Built on Cosmos-SDK patterns (modules, messages, keepers).
- Additional modules (e.g. reputation, programme registries) can be added later.
-
Europe-focused, globally useful
- Governance logic is shaped by European democratic context,
but the codebase is general enough to be forked and adapted elsewhere.
- Governance logic is shaped by European democratic context,
This repo follows a typical Cosmos App-Chain layout:
collectiv-ai-app-chain/
├─ app/ # Cosmos app wiring (modules, keepers, encoding)
├─ cmd/
│ └─ collectivaid/ # Main binary entrypoint (CLI node)
├─ docs/ # Chain-specific documentation & specs
├─ networks/
│ └─ devnet/ # Example devnet configuration (pre-alpha)
├─ scripts/ # Helper scripts for devnet / local nodes
├─ smart-contracts/ # Placeholder for future contract-style components
├─ x/
│ └─ collectivai/ # Custom CollectiVAI module (proposals, votes, roles, etc.)
├─ go.mod
└─ README.md # (this file)
The
x/collectivaimodule is where the governance logic for CollectiVAI
lives and evolves over time.
A proposal on the CollectiVAI Chain represents a structured civic item such as:
- a university or city project,
- an AI safety programme,
- a climate-related initiative,
- or a governance parameter change.
Key properties (conceptual):
- human-readable title & description,
- category / domain (e.g. education, climate, democracy),
- sponsor(s) (citizens, institutions, programmes),
- requested budget / funding source (if applicable),
- links to off-chain artefacts (docs, reports, pilots, etc.).
Votes allow different roles to express support or rejection:
- citizens,
- experts / councils,
- institutions / programmes.
The exact voting rules and weightings are governance-configurable and may evolve across phases (devnet → testnet → mainnet-like).
A treasury module (or integration) is planned to manage:
- on-chain funding pools (programme-based),
- allocations to proposals that passed governance,
- basic accountability (who allocated what to which project and when).
Status: The chain is in pre-alpha / devnet shape.
Commands and scripts may change as the modules evolve.
- Go (1.22+ recommended)
- Git
- A Unix-like shell (macOS / Linux / WSL)
git clone https://github.com/collectiv-ai/collectiv-ai-app-chain.git
cd collectiv-ai-app-chain
# Fetch Go modules
go mod tidy
# Build the node binary (collectivaid)
go build -o ./build/collectivaid ./cmd/collectivaidAfter this, you should have a build/collectivaid binary.
The exact flags and chain-IDs may change; treat the following as a starting point
and adapt to the currentapp/andx/collectivaiconfiguration.
# Initialise node config & genesis
./build/collectivaid init local-dev --chain-id collectivai-devnet
# (Optional) create a local key for testing
./build/collectivaid keys add validator --keyring-backend testYou can then inspect the generated config in the usual Cosmos directories
(e.g. ~/.collectivaid/config/ and ~/.collectivaid/data/).
./build/collectivaid startThis will start a single local node. For a richer devnet (multiple validators, funded accounts),
use the helper files under networks/devnet/ and scripts/ once they are fully wired up.
The chain is one part of a larger ecosystem:
-
CollectiVAI App (SwiftUI client)
https://github.com/collectiv-ai/collectiv-ai-app- acts as the civic client for citizens, experts and institutions,
- helps draft proposals, analyse policies and navigate governance,
- will later connect directly to this chain via RPC/REST/gRPC.
-
CollectiVAI Router (AI backend)
https://github.com/collectiv-ai/collectiv-ai-router- handles multi-provider AI chat routing,
- never stores API keys in the apps,
- can be used by both the App and other civic frontends.
-
Website & public docs
https://github.com/collectiv-ai/collectiv-ai.github.io- high-level documentation, roadmap and governance drafts.
The App-Chain is the on-chain anchor for all of this:
it turns drafts and AI-assisted discussions into actual proposals and votes.
Current focus (pre-alpha):
- ✅ Basic Cosmos app wiring and module layout
- ✅ Initial
x/collectivaimodule structure - ✅ Devnet scaffolding (directories, scripts, docs placeholders)
- ⏳ Detailed proposal / voting / roles spec
- ⏳ Fully scripted devnet with multiple validators & funded accounts
- ⏳ Integration tests and simulation
- ⏳ Public devnet for app & router integration
Planned phases:
-
Devnet (internal / early adopters)
- Iterate on proposal types, roles, voting rules.
- Connect early CollectiVAI App prototypes.
-
Public testnet (partners / pilots)
- Selected cities, universities, NGOs participate in real pilots.
- Governance parameters tuned with real feedback.
-
Production-grade chain (subject to governance)
- Hardening, audits, and institutional governance.
- Clear rules for upgrades, forks and long-term stewardship.
At this stage, the chain is a research & prototyping platform.
If you are:
- familiar with Cosmos-SDK / Go,
- interested in democratic governance, civic tech or AI safety,
- or want to explore pilots (city, university, NGO, EU programme),
you can:
- open issues in this repository,
- propose improvements to module design,
- or discuss pilots via the contact details on the website.
Please do not submit any code that embeds secrets, API keys or proprietary logic.
- This chain is not a financial product and not intended for speculation.
- Devnets/testnets must not be used to store assets with real-world value.
- Governance parameters and modules are still evolving; consider every network
non-final until clearly marked otherwise.
If you believe you found a security issue in the chain code, please use the
Security Policy in this repository or reach out privately (see GitHub “Security” tab).
The code in this repository may later be published under a permissive open-source licence.
Until then, treat it as:
“Public, non-confidential reference code – All rights reserved.”
The CollectiVAI name, logo and visual identity are protected.
Any use in products, services or campaigns requires prior written permission.
© 2025 David Compasso / CollectiVAI.
