@kylrix/cli
v1.0.19
Published
Zero-leak vault, local notes, and native MCP bridge for Cursor and Claude Code.
Readme
@kylrix/cli
⚡ 30-Second Quickstart
1. Install Globally (Offline Local-First)
npm install -g @kylrix/cli(or via pnpm)
pnpm add -g @kylrix/cli(Zero-install alternative: run directly with npx @kylrix/cli <command>)
2. 1-Click Web Login (Cloud or Custom Base URI)
Authenticate instantly without copying or pasting tokens:
# Connect to Kylrix Cloud (default)
kylrix login
# Connect to self-hosted instance or custom backend base URI
kylrix login --url http://localhost:3005The CLI displays your instant code, automatically opens the authorization page on the target server (e.g. https://www.kylrix.space/login/7K9M-4W2P or http://localhost:3005/login/7K9M-4W2P), and logs in immediately when approved in the browser.
3. Multi-Account Profiles & Base URI Silos
Manage multiple accounts across cloud and self-hosted instances with zero data bleed:
# List accounts partitioned under the active base URI
kylrix accounts list
# Switch active account profile seamlessly
kylrix accounts switch [email protected]
# Show currently active account profile and local silo path
kylrix accounts current
# Manage server base URIs and partitions
kylrix server list
kylrix server switch http://localhost:30054. Essential Commands
Sovereign Ideas & Notes
# List ideas
kylrix ideas list
# Create a new idea
kylrix ideas create "Q4 System Architecture" --content "Modular agentic flow..."
# View published articles
kylrix ideas articlesGoals & Habit Milestones
# List goals
kylrix goals list
# Update goal progress
kylrix goals update <goal-id> --progress 75Encrypted Vault & Project .env (Bitwarden-Style)
# Unlock vault Master Encryption Key (MEK) for 60 mins
kylrix vault unlock
# List decrypted credentials
kylrix vault list --decrypt
# Export secret directly to project .env file
kylrix vault get <secret-id> --format env --pure > .env
# Seal vault and wipe keys from memory
kylrix vault lockSovereign 2FA TOTP Authenticator
# List TOTP accounts with live codes and countdown timers
kylrix totp list
# Generate current 6-digit TOTP code for scripts/pipes
kylrix totp code <account-id> --pureAutonomous AI Agents & Execution Sessions
# List agent sessions
kylrix agents list
# Launch an autonomous agent session
kylrix agents start "Audit database migrations and schema"Model Context Protocol (MCP) Stdio Server
Start the MCP server to bridge your workspace into Cursor, Windsurf, Claude Code, or Antigravity:
kylrix mcp🛡️ Architecture & Partitioned Silos
1. True Local-First with Embedded SQLite
- Zero Login Required: You can start creating ideas, goals, encrypted secrets, TOTP codes, and calendar events immediately offline without creating an account.
- Base URI Partitioning: All state is strictly partitioned first by backend base URI. Kylrix Cloud is isolated under the
defaultpartition (~/.kylrix/silos/default/), while self-hosted instances (http://localhost:3005) are partitioned into their own directory trees (~/.kylrix/silos/<partitionKey>/). - Account-Level Silos: Within each base URI partition, accounts are isolated into separate silos (
~/.kylrix/silos/<partitionKey>/<userId>/). Switching accounts (kylrix accounts switch <email>) immediately routes local storage to that user's silo without data bleed. - Offline Anonymous Silo: Unauthenticated work is safely preserved in
~/.kylrix/silos/default/anonymous/local.db. - Sync When Ready: Once you authenticate (
kylrix login), runningkylrix syncpushes local SQLite records to your cloud or self-hosted workspace.
2. Bitwarden-Style Vault Security Model
kylrix vault unlock: Prompts for your Master Password (or accepts--password), derives/unwraps your Master Encryption Key (MEK), and initiates a temporary session (default 60 mins).- Seamless Decryption: Commands like
kylrix vault list --decrypt,kylrix vault get <id>, andkylrix totp code <id>use the active session key automatically. kylrix vault lock: Immediately wipes all in-memory keys and session tokens.kylrix vault status: Shows whether the vault is locked/unlocked and remaining session minutes.
🤖 Model Context Protocol (MCP) Integration
Plug your sovereign Kylrix workspace into Cursor, Windsurf, Claude Code, or Antigravity via stdio:
Cursor (.cursor/mcp.json)
{
"mcpServers": {
"kylrix": {
"command": "npx",
"args": ["-y", "@kylrix/cli", "mcp"],
"env": {
"KYLRIX_API_KEY": "pat_..."
}
}
}
}Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"kylrix": {
"command": "npx",
"args": ["-y", "@kylrix/cli", "mcp"]
}
}
}📋 Complete CLI Commands Reference
| Category | Commands | Description |
|---|---|---|
| Auth | login, pair, whoami, logout | 1-Click web pairing (--url <url>), token check, logout |
| Accounts | accounts list, switch, current, remove | Multi-account profiles and switching under base URI silos |
| Servers | server list, switch, current, add, remove | Backend base URIs, partitions, and self-hosted instances |
| Workspaces | workspaces list, get, create, delete, switch, current, clear | Multi-workspace management & active scope switching |
| Ideas & Articles | ideas list, get, create, update, delete, articles | Sovereign notes, brainstorms, and long-form articles |
| Goals | goals list, get, create, update, delete | Objective and habit milestone tracking |
| Vault & Secrets | vault unlock, lock, status, list, get, create, delete | End-to-end encrypted credentials and project .env files |
| 2FA TOTP | totp list, code, create, delete | Real-time 6-digit TOTP verification code generation |
| AI Agents | agents list, get, start, delete | Autonomous agent execution sessions and logs |
| Search | search <query> | Global search across ideas, goals, events, forms, flows, secrets |
| Share | share <kind> <id> | Generate shareable link respecting account subscription tier |
| Calendar | events list, create, delete | Calendar events and scheduled tasks |
| Forms & Flows | forms list/get/create, flows list/get/create | Interactive forms and automated workflow pipelines |
| Discussions | hangouts list/messages/send, threads list/messages/send | Real-time chats, threads, and unified commenting |
| Billing | billing status, coins, checkout, coupon | Pro upgrades, on-chain crypto checkout, promo coupons |
| Admin | admin | Server status and admin privilege verification |
| Trash | trash list, restore, purge | Soft-deleted item inspection, recovery, and purge |
| Sync | sync | Push sovereign local-first records to active workspace |
| Update | update (alias upgrade) | Automatically self-update CLI to the latest version |
| MCP | mcp | Start Model Context Protocol stdio server bridge |
💻 Isomorphic SDK Usage
import { createKylrixClient } from 'kylrix';
const client = createKylrixClient({
baseUrl: 'https://www.kylrix.space', // or custom self-hosted base URI
token: 'pat_...',
});
// Search across workspace
const results = await client.search.query('infrastructure');
// Create goal
const goal = await client.goals.create({
title: 'Achieve 100% test coverage',
targetValue: 100,
});📜 License
AGPL-3.0-or-later © Kylrix
