PsyDian documentation
PsyDian is an AI-assisted operating system written from scratch in Rust for x86_64. When the kernel hits a failure, such as a page fault, a failed heap allocation or a panic, it records a structured diagnostic. A host-side AI Bridge reads that record over the serial port and asks an AI service to explain what happened and what to try next.
One rule shapes the design: the AI only suggests, the kernel checks, and the user decides. The kernel has no network and no API keys, and every AI reply is checked twice before anything runs.
User -> shell -> kernel -> diagnostic record -> serial line -> AI Bridge -> AI service
Try it
On Linux, macOS or Windows (WSL):
curl -fsSL https://raw.githubusercontent.com/PsyDianOS/PsyDian_OS/main/scripts/install.sh | bash
psydian demo
psydian demo uses a built-in mock AI, so no API key is needed. Inside PsyDian, try ai hello, then run 1.
How this book is organised
| Section | What you find there | Start with |
|---|---|---|
| Product | Why PsyDian exists, who it is for, what it costs and the plan | Business requirements |
| Architecture | How the kernel, the AI Bridge and the AI service fit together | High-level design |
| Reference | The serial protocol and every error code | Protocol and API |
| Engineering | Security model, testing, CI/CD and traceability | Security design |
| Project | Who owns what and how the repository is laid out | Team responsibilities |
New to the project? Read the project overview first, then the high-level design.
Links
- Source code: github.com/PsyDianOS/PsyDian_OS
- Website: psydianos.github.io/PsyDian_OS
- Discussions: github.com/orgs/PsyDianOS/discussions
- Chat: the PsyDian Discord server, for questions, help and project news
- Improve these docs: every page has an edit button (top right) that opens the file on GitHub.
These documents started as the design specification written before the code. Where the implementation has moved on, the source code and its README are the final word; a pull request that brings a page up to date is very welcome.