Documentation
Pretense Documentation
Everything you need to protect your code before it reaches an LLM. From 5-minute setup to enterprise deployment.
Quick Start
Up and running in 5 minutes.
Install Guide
curl, Homebrew, or npm.
CLI Reference
All commands grouped by category.
Configuration
.pretense.yaml, .pretenseignore, credentials.
CI/CD Integration
GitHub Actions, GitLab CI, SARIF.
Git Hooks
Pre-commit and pre-push scanning.
API Reference
Proxy endpoints and schemas.
Integrations
Claude Code, Cursor, VS Code, GitHub.
MCP Server
Pre-send scanning inside Claude Code.
Code Architecture
Knowledge graph, MCP tools, blast-radius analysis.
Popular guides
Get started in 5 minutes
Install, init, and start the proxy. Connect Claude Code or Cursor. Run your first scan.
Install guide
Three ways to install: curl one-liner, Homebrew, or npm. Includes system requirements and uninstall.
CLI reference
Every command grouped by Core, Setup, Auth, and Utility with flags, usage, and examples.
Connect Claude Code
Set ANTHROPIC_BASE_URL to route every Claude Code session through the Pretense proxy.
Set up the MCP server
Register pretense-mcp in .claude/settings.json for automatic pre-send scanning.
Custom mutation rules
Add regex rules to .pretense/config.json to block or mutate proprietary identifier patterns.
Set up git hooks
Run pretense install --mode pre-commit to scan every commit. Or configure manually with Husky.
CI/CD integration
GitHub Actions and GitLab CI examples with SARIF output for GitHub Advanced Security.
Proxy API reference
Full endpoint documentation for /v1/messages, /v1/chat/completions, /audit, and /scan.
Configure Cursor
Point Cursor at localhost:9339 via the model base URL setting. Works with GPT-4 and Claude.
Code architecture guide
Tree-sitter SQLite knowledge graph, 22 MCP tools, and graph-first navigation rules for the Pretense monorepo.
Need help?
The Pretense team responds to all issues within 24 hours. Enterprise customers get dedicated Slack support.