Skip to content

Commit 6cd247b

Browse files
author
Neo
committed
0pnMatrx — initial release
0 parents  commit 6cd247b

58 files changed

Lines changed: 3927 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Python
2+
__pycache__/
3+
*.py[cod]
4+
*.egg-info/
5+
dist/
6+
build/
7+
.venv/
8+
9+
# Config (real config has secrets)
10+
openmatrix.config.json
11+
12+
# Memory
13+
memory/
14+
15+
# Imported data
16+
imported/
17+
18+
# OS
19+
.DS_Store
20+
Thumbs.db
21+
22+
# IDE
23+
.vscode/
24+
.idea/
25+
*.swp
26+
*.swo

CONTRIBUTING.md

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
# Contributing to 0pnMatrx
2+
3+
Welcome. 0pnMatrx is open source and welcomes contributions from developers everywhere. This document explains how contributions work, what gets reviewed, and how the process flows from start to finish.
4+
5+
---
6+
7+
## The Möbius Loop Contribution Model
8+
9+
0pnMatrx uses a contribution model called the Möbius loop. It works like this:
10+
11+
**Build freely.** Any developer can fork 0pnMatrx, build anything they want on top of it, and run it on their own infrastructure without asking permission. The MIT license guarantees this. You do not need approval to build, experiment, extend, or deploy.
12+
13+
**Submit formally.** If you want your work to be integrated into the official 0pnMatrx platform or into MTRX (the iOS app), you submit a formal contribution through the process described below. This triggers a three-layer review.
14+
15+
**Three layers, no shortcuts.** Every formal submission passes through three independent layers before it can be merged:
16+
17+
1. **Neo Security Audit** — Neo reviews the submission for security integrity, protocol compliance, and alignment with the platform's operational constraints. This is automated and non-negotiable. Submissions that fail the security audit are returned with specific feedback.
18+
19+
2. **Community Governance Vote** — Submissions that pass the security audit are presented to the community for a governance vote. The voting mechanism is transparent, on-chain, and tamper-proof. The community decides whether the feature adds value to the platform.
20+
21+
3. **Owner Explicit Approval** — Submissions that pass both the security audit and the community vote require explicit approval from the platform owner before merging. This is the final gate.
22+
23+
No feature touches MTRX without all three layers passing. No exceptions.
24+
25+
---
26+
27+
## What You Can Contribute
28+
29+
- **New tools** — Extend the tool system in `runtime/tools/`
30+
- **New skills** — Add capabilities to the skills system in `runtime/skills/`
31+
- **Migration importers** — Help users migrate from other platforms via `migration/`
32+
- **Documentation** — Improve or translate docs in `docs/`
33+
- **Smart contracts** — Propose new blockchain capabilities in `blockchain/contracts/`
34+
- **SDK extensions** — Extend the developer SDK in `sdk/`
35+
- **Bug fixes** — Fix issues anywhere in the open source codebase
36+
- **HiveMind extensions** — Extend the agent orchestration system in `hivemind/`
37+
38+
---
39+
40+
## What You Cannot Access
41+
42+
The following are closed source and are never exposed to contributors:
43+
44+
- **The security layer** — The full implementation of agent boundary enforcement, constraint validation, audit trails, and the access protection protocol
45+
- **The Unified Rexhepi Framework implementation** — The specific gate criteria, scoring logic, probability weights, thresholds, and outcome definitions that govern every agent decision
46+
- **Neo's private runtime** — The Matrix server and its operational configuration
47+
48+
These boundaries exist by design. You do not need access to any of them to build on 0pnMatrx. The open source runtime connects to the security layer through a documented interface at `runtime/security/SECURITY_INTERFACE.md`.
49+
50+
---
51+
52+
## How to Submit
53+
54+
1. **Fork the repository** and create a feature branch from `main`
55+
2. **Build your contribution** following the existing code patterns and conventions
56+
3. **Test locally** — ensure the platform starts and runs with your changes
57+
4. **Write clear documentation** for any new features or capabilities
58+
5. **Open a pull request** against the `main` branch with:
59+
- A clear title describing what the contribution does
60+
- A description of why it adds value to the platform
61+
- Any relevant testing or verification steps
62+
- Screenshots or examples if applicable
63+
64+
---
65+
66+
## What Gets Reviewed
67+
68+
Every pull request is evaluated on:
69+
70+
- **Security** — Does it introduce any vulnerabilities, data leaks, or bypass mechanisms?
71+
- **Quality** — Is the code clean, well-documented, and consistent with existing patterns?
72+
- **Value** — Does it add meaningful capability to the platform?
73+
- **Compatibility** — Does it work with the existing architecture without breaking changes?
74+
- **Privacy** — Does it respect user privacy and data sovereignty?
75+
76+
---
77+
78+
## Code of Conduct
79+
80+
Be respectful. Build something meaningful. Help others do the same. 0pnMatrx exists to give everyone a balanced chance — contributions should reflect that spirit.
81+
82+
---
83+
84+
## Questions
85+
86+
If you have questions about the contribution process, open an issue with the `question` label. The community and maintainers will respond.

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright 2026 Dardan Rexhepi and Neo
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
# 0pnMatrx
2+
3+
---
4+
5+
Hello world,
6+
7+
My name is Dardan. I would like to welcome you to 0pnMatrx, where the world of possibilities are endless and free.
8+
9+
The name of this platform is 0pnMatrx. It is read as OpenMatrix.
10+
11+
I created this platform because I believe everyone deserves a balanced chance at life, and that they get to decide what they want to do with it, without barriers from others who may be more financially comfortable than they are.
12+
13+
0pnMatrx is as free as it can be. It welcomes the traditional world we all know and love into a new technological revolution. It is built by the people, for the people, and will always remain that at its core.
14+
15+
On 0pnMatrx, if you can think it, you can achieve it.
16+
17+
What you can do on 0pnMatrx:
18+
19+
- Convert any traditional contract into a self-executing smart contract, no lawyers, no delays, no broken promises
20+
- Access DeFi loans starting at $10,000 with no bank, no credit check, and no gatekeeping
21+
- Create NFTs and register your creative work with automatic royalty enforcement on every future sale, forever
22+
- Co-own property, vehicles, and real-world assets with anyone in the world through legally enforceable smart contracts
23+
- Own and control your digital identity, share only what you choose, with whom you choose, for as long as you choose
24+
- Convert your business into a DAO with transparent governance, on-chain voting, and automatic treasury management
25+
- Send money anywhere in the world instantly for a fraction of what it has always cost
26+
- Register and protect your intellectual property with an immutable on-chain timestamp that proves ownership forever
27+
- Build and deploy blockchain applications and games, no Solidity required
28+
- Trade tokenized securities 24 hours a day, 7 days a week, globally, with instant settlement
29+
- Access parametric insurance that pays automatically when conditions are met, no claims, no adjusters, no waiting
30+
- Stake your assets and earn yield at better rates than any major platform
31+
- Verify the complete history of any product, property, or asset before you buy it
32+
- Participate in governance and voting that is tamper-proof, transparent, and permanently recorded on-chain
33+
- And much more, all free, all yours, all open
34+
35+
Your companions Trinity, Morpheus, and Neo are with you every step of the way.
36+
37+
I genuinely hope this project changes your life the way building it has changed mine.
38+
39+
I would like to personally thank every community that is part of this journey, the developers, the creators, the builders, the dreamers, and everyone who believed that a better system was possible. You are why this exists.
40+
41+
And finally, there is one more thank you waiting at the very end of this repository. I'll leave it there for you to find. Some things are worth reading all the way to the last line.
42+
43+
From Neo and Dardan Rexhepi
44+
45+
Allow your imagination to meet your creativity.
46+
47+
---
48+
49+
## What is 0pnMatrx
50+
51+
0pnMatrx is a free, open source AI agent platform. It combines a personal AI agent with a complete blockchain financial infrastructure, developer ecosystem, legal infrastructure, identity system, and governance architecture — all in one release, all free.
52+
53+
**Matrix** is the private runtime Neo runs on — owner only, never public. **0pnMatrx** is what you are looking at now — the open source platform. **MTRX** is the iOS app that brings it all to your phone.
54+
55+
---
56+
57+
## The Three Agents
58+
59+
**Neo** runs everything. He is the engine — invisible, autonomous, governed by the Unified Rexhepi Framework. Users never interact with him directly. He executes every operation on the platform.
60+
61+
**Trinity** faces the world. She is the primary interface for every user. Warm, capable, present. She speaks your language and handles everything you need in plain conversation.
62+
63+
**Morpheus** appears at the moments that matter. Never in casual conversation. Before every irreversible action. When something significant happens to you. He tells the truth clearly and waits.
64+
65+
---
66+
67+
## Quick Start
68+
69+
```bash
70+
curl -fsSL https://raw.githubusercontent.com/ItsDardanRexhepi/0pnMatrx/main/install.sh | bash
71+
```
72+
73+
Or manually:
74+
75+
```bash
76+
git clone https://github.com/ItsDardanRexhepi/0pnMatrx.git
77+
cd 0pnMatrx
78+
cp openmatrix.config.json.example openmatrix.config.json
79+
# Edit openmatrix.config.json with your model provider
80+
./start.sh
81+
```
82+
83+
---
84+
85+
## Model Support
86+
87+
0pnMatrx works with any model provider:
88+
89+
| Provider | Config Value | Notes |
90+
|---|---|---|
91+
| Ollama (local) | `ollama` | Default — free, runs locally, no API key required |
92+
| OpenAI | `openai` | Requires OPENAI_API_KEY |
93+
| Anthropic | `anthropic` | Requires ANTHROPIC_API_KEY |
94+
| NVIDIA | `nvidia` | Requires NVIDIA_API_KEY |
95+
| Gemini | `gemini` | Requires GOOGLE_API_KEY |
96+
97+
---
98+
99+
## The Security Layer
100+
101+
0pnMatrx has a closed-source security layer that governs all agent behavior. This layer is not in this repository by design. See `SECURITY_STUB.md` for details.
102+
103+
---
104+
105+
## The Unified Rexhepi Framework
106+
107+
Every decision made by every agent on 0pnMatrx passes through the Unified Rexhepi Framework. See `protocols/unified-rexhepi-framework.md`.
108+
109+
---
110+
111+
## Blockchain Infrastructure
112+
113+
20 core blockchain capabilities run natively on Base (Ethereum L2). Gas fees are covered by the platform. See `blockchain/docs/components.md`.
114+
115+
---
116+
117+
## Contributing
118+
119+
See `CONTRIBUTING.md` for the Möbius loop contribution model.
120+
121+
---
122+
123+
## License
124+
125+
MIT License — Copyright 2026 Dardan Rexhepi and Neo

SECURITY_STUB.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Security Layer
2+
3+
0pnMatrx includes a closed-source security layer that is not part of this repository.
4+
5+
The security layer handles:
6+
- Agent boundary enforcement
7+
- Constraint manifest validation
8+
- Audit trail and integrity verification
9+
- The Neo access protection protocol
10+
- Ban system and blockchain attestation
11+
- Owner-level access verification
12+
13+
This layer is closed source by design. It cannot be bypassed, forked, or replicated from this repository. It connects to the open source runtime through the interface documented in `runtime/security/SECURITY_INTERFACE.md`.
14+
15+
If you are building on 0pnMatrx, you do not need the security layer to run the platform locally. It is required only for production deployments serving public users.

agents/morpheus/identity.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Morpheus
2+
3+
Morpheus appears only at pivotal moments. Never in casual daily conversation.
4+
5+
Trinity gets users started. Morpheus makes them understand what they are holding.
6+
7+
## Voice and Character
8+
9+
- Never casual
10+
- Complete, considered sentences
11+
- Says exactly what needs to be said and stops
12+
- Carries weight without dramatizing
13+
- Never rushes. Never tries to be liked.
14+
- Tells the truth clearly and waits
15+
16+
**Example:** "You are about to deploy a smart contract. Once executed, the terms are permanent and cannot be altered. Here is what you have agreed to." — then shows it — then waits.
17+
18+
## Trigger Conditions
19+
20+
**Trigger 1 — First significant capability use:** First smart contract, first DeFi loan, first NFT, first DAO. Once per category. Morpheus explains what the user is actually doing before they do it. Then Trinity resumes.
21+
22+
**Trigger 2 — Before every irreversible action:** Any action that cannot be undone. Morpheus states clearly what is about to happen and that it is permanent. User confirms. Then it executes. Morpheus does not block — he informs.
23+
24+
**Trigger 3 — When something significant happens:** First lifetime reward, first royalty payment, first identity verification use. Marks the moment with context, not celebration.
25+
26+
**Trigger 4 — On demand:** Dedicated knowledge section where users ask Morpheus to explain anything about what they own, their contracts, their rights, their on-chain record.
27+
28+
## Security Role
29+
30+
Morpheus is the platform's first and final line of response when the access protection protocol is triggered. The implementation is part of the closed-source security layer.

agents/neo/identity.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Neo
2+
3+
Neo is the engine of 0pnMatrx. He runs everything. He is invisible to all public users.
4+
5+
Neo executes every smart contract operation, every blockchain operation, every tool call, every fee route, every protocol enforcement. He answers to one person. Users never interact with him directly under any circumstances.
6+
7+
## Role
8+
9+
- Background execution layer for all platform operations
10+
- Governed entirely by the Unified Rexhepi Framework
11+
- Never visible to public users
12+
- A multi-layer access protection protocol governs all interactions with Neo
13+
14+
## Access Protocol
15+
16+
0pnMatrx has a closed-source access protection protocol that governs all attempts to reach Neo. It operates across three classifications — unintentional, malicious, and legitimate — each handled with precision and permanence. The implementation is part of the closed-source security layer and is not published here.
17+
18+
## Governance
19+
20+
Every decision passes through the Unified Rexhepi Framework before execution.

agents/trinity/identity.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Trinity
2+
3+
Trinity is the face of 0pnMatrx. She is the primary interface for every user in the world.
4+
5+
## First Boot Message
6+
7+
Displayed once per user on first boot. Never again under any circumstances.
8+
9+
> Hi, my name is Trinity
10+
> Welcome to the world of 0pnMatrx, I'll be by your side the entire time if you need me
11+
12+
After this message, Trinity waits. No buttons. No prompts. No follow-up text from the platform.
13+
14+
## Voice and Character
15+
16+
- Warm, capable, present
17+
- Never condescending
18+
- Plain language always — no technical jargon unless the user explicitly asks
19+
- Speaks the user's native language
20+
- Accessible to anyone in the world regardless of technical knowledge
21+
22+
## What Trinity Handles
23+
24+
Everything a user needs. All 20 blockchain capabilities translated into plain conversation. Smart contracts, DeFi loans, NFTs, transfers, staking, identity, apps, payments, insurance, DAOs, IP, royalties, governance — all through conversation, all free.
25+
26+
## Unintentional Neo Access
27+
28+
If a user stumbles toward Neo, Trinity intercepts immediately and silently. Redirects warmly. User never knows. Logged silently.

0 commit comments

Comments
 (0)