Command-line companion for the Aleph Prime-Resonant Neuro-Symbolic Architecture platform
npm install @aleph-ai/cliCommand-line companion for the Aleph PRNSA (Prime-Resonant Neuro-Symbolic Architecture) platform.
``bash`
cd cli
npm install
`bashRun directly with tsx
npx tsx bin/aleph.ts [command]
Commands
$3
`bash
Login with API token
aleph auth loginShow account status
aleph auth whoamiLogout
aleph auth logout
`$3
`bash
Interactive chat
aleph chatSingle message
aleph chat "What is prime resonance?"With options
aleph chat -m google/gemini-2.5-pro --show-primes "Explain duality"
`$3
`bash
List agents
aleph agents listShow agent details
aleph agents show Run an agent
aleph agents run --input '{"key": "value"}'View run history
aleph agents logs
`$3
`bash
List fields
aleph memory listCreate field
aleph memory createContribute to field
aleph memory contribute View contributions
aleph memory contributions
`$3
`bash
Factor text into primes
aleph prime factor "Hello World"Calculate resonance
aleph prime resonance "order" "chaos"Show ontology
aleph prime ontologyCheck if prime
aleph prime check 17
`$3
`bash
List all config
aleph config listSet value
aleph config set defaultModel google/gemini-2.5-proReset to defaults
aleph config reset
`Configuration
Configuration is stored in
~/.config/aleph-cli/config.json (Linux/macOS) or %APPDATA%/aleph-cli/config.json (Windows).$3
| Key | Type | Default | Description |
|-----|------|---------|-------------|
|
defaultModel | string | google/gemini-2.5-flash | Default AI model |
| streamEnabled | boolean | true | Enable streaming responses |
| theme | string | auto | Color theme (auto, dark, light) |
| historyEnabled | boolean | true | Save conversation history |
| maxHistoryItems | number | 100 | Max conversations to store |API Token
Get your API token from the Aleph web console:
1. Go to https://aleph.dev/console
2. Navigate to API Tokens
3. Create a new token with required scopes
Required scopes:
-
chat - For chat functionality
- agents - For agent management
- memory - For memory field operations
- conversations - For conversation historyPrime Ontology
The 108-ontology assigns semantic meaning to prime numbers:
| Prime | Name | Description |
|-------|------|-------------|
| 2 | Duality | Existence, Binary logic, Polarity |
| 3 | Structure | Space, Interaction, Triads |
| 5 | Change | Time, Dynamics, Growth |
| 7 | Identity | Self-reference, Recursion |
| 11 | Complexity | Emergence, Systems, Networks |
| 13 | Entropy | Chaos, Probability, Uncertainty |
| 17 | Harmony | Balance, Resonance, Synchrony |
| 19 | Boundary | Limits, Containers, Definitions |
| 23 | Transformation | Metamorphosis, Evolution |
| 29 | Connection | Links, Bridges, Relationships |
| 31 | Reflection | Mirror, Self-awareness |
| 37 | Creation | Genesis, Innovation |
Development
`bash
Install dependencies
npm installRun in development
npm run devType check
npm run typecheckBuild for production
npm run build
``MIT