Skip to content

Repository files navigation

P31 CLI — Sovereign AI for Neurodivergent Families

MIT License Go MCP GitHub release CI Sponsor

p31 chat is a local-first, post-quantum, spoon-aware AI terminal interface. It routes through your own proxy, connects to MCP servers (PHOS Forge, Google Workspace), and adapts to your cognitive load.


Features

  • Spoon-aware AI — adapts interface and token usage based on your current spoon level
  • K₄ family mesh — complete graph topology for family connection
  • Post-quantum identity — ML-DSA-65 signatures, Ed25519 passports, SHA-512 telemetry
  • MCP native — 26+ tools from PHOS Forge, Google Workspace integration
  • Offline-first — no cloud dependency; runs via your own router proxy
  • Beautiful TUI — Bubble Tea, command palette (Ctrl+P), fuzzy search, status bar

Quick Install

curl -fsSL https://p31-cli.pages.dev/install | bash

Or via npm:

npm install -g @p31/cli

Usage

p31 chat           # Start the interactive TUI
p31 spoon          # Show current spoon level
p31 mesh status    # View K₄ family mesh
p31 doctor         # Run system diagnostics
p31 help           # List all commands

Dependencies

  • Go 1.25.5+
  • Node.js 18+ (for MCP servers)
  • A running p31-router proxy on port 4001

MCP Servers

Server Tools
PHOS Forge 26 tools: file adoption, deploy, logbook, brain-dump, jitterbug, cognitive-state, self-healer, etc.
Google Workspace Calendar, Gmail, Drive, Docs, Sheets, Contacts

Configuration

Edit ~/.p31/config.yaml:

proxy_url: http://localhost:4001/v1
proxy_model: flash

Development

git clone https://github.com/p31labs/p31-cli
cd p31-cli
go mod download
go build -o p31 .
./p31 help

License

MIT — see LICENSE.


Links

About

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages