Skip to Content
Prism Context Engine v1.2.0 - the CLI works locally with no account. See the Quick Start.
Installation

Installation

Install the Prism CLI and verify it. The dashboard is optional.

Prerequisites

  • Node.js 20 or newer (package.json engines field: >=20)
  • npm, pnpm, or yarn

Check your Node version:

node --version

Install the CLI

The npm package is @prism-engine/cli. The binary is prism.

npm install -g @prism-engine/cli

Or with pnpm:

pnpm add -g @prism-engine/cli

Verify the install

prism --version # Output: 1.2.0
prism --help

prism --help lists every command. See the CLI Reference for details.

Set up enforcement (no account)

prism init

prism init writes .prism/rules.json and wires the agent hooks. See Quick Start.

IDE and agent setup

prism ide-setup

prism ide-setup auto-detects Cursor, Windsurf, VS Code, and Claude Desktop and writes the MCP configuration for each. It asks before touching each IDE. Claude Desktop has no hooks system, so it gets MCP (advisory rules) only. See Hooks and IDE Setup.

Connect to the dashboard (optional)

The dashboard lives at prism.syntaxure.dev . The CLI works without it, but syncing your team’s rules needs an account:

  1. Sign up at prism.syntaxure.dev/sign-up 
  2. Create an API key in the dashboard under Settings
  3. Authenticate the CLI:
# Opens the browser for authentication prism login # Set your API key for prism pull (or add "apiKey" to .prism/config.json) export PRISM_API_KEY=your_key_here # Fetch your team's rules into .prism/rules.json prism pull

prism pull fails safe. It never overwrites a working .prism/rules.json on error.

MCP server

prism serve starts the MCP server for IDE integration. It tries to start the full prism-mcp-server (from this repository) and falls back to a built-in lite server that reads the local cache. See MCP Server.

Environment variables

These are the variables the CLI reads:

VariableUsed byDescription
PRISM_TOKENlogin, ide-setup, serve, connectAuth token (also stored in ~/.prism/token)
PRISM_API_KEYpullAPI key from the dashboard (Settings)
PRISM_API_URLpull, connectOverride the API base URL (default https://prism.syntaxure.dev)
PRISM_DISABLEcheck --hookSet to 1 to disable all hook enforcement
PRISM_STOP_SCAN_DIRcheck --hook (Stop)Directory to scan when no transcript is available
PRISM_GEMINI_CHECKcheckSet to 1 to enable the optional Gemini semantic layer
GEMINI_API_KEY / GOOGLE_GEMINI_API_KEYsemantic layerGemini API key
PRISM_GEMINI_MODELsemantic layerOverride the model (default gemini-3.6-flash)
PRISM_GEMINI_TIMEOUT_MSsemantic layerTimeout override (1000–29000)
PRISM_GEMINI_DEBUGsemantic layerSet to 1 for debug output
MONGODB_URIserve, ide-setupPassed through to the full MCP server if set; not required

Troubleshooting

IssueSolution
command not found: prismReinstall with -g, or check your PATH
prism pull asks for an API keySet PRISM_API_KEY or add apiKey to .prism/config.json
Hook not firingSee Troubleshooting

Next Steps

Last updated on
Prism Context EnginePrism Context Engine

A rules layer for AI coding agents. Prism checks every write against your team's rules and sends corrections back to the agent.

Documentation

Product

Start a Project

Install the CLI and run `prism init`. No account needed.

GET_STARTED ↗
© 2026 Syntaxure Labs.DTI: VL1927082895984