# Formal > Control every packet your AI agents send. Formal unifies PAM, SASE, LLM gateway, and MCP gateway into one stack that enforces least privilege inline. Formal is two proxies on one platform. Formal Endpoint controls outbound traffic from workstations and agent sandboxes: it runs on laptops, VMs and Kubernetes as a forward proxy. Formal Connector controls access to private resources: it is a reverse proxy in your VPC in front of databases, Kubernetes, SSH hosts, APIs and MCP servers. Both share one control plane for policies, identity, audit logs, the Catalog and Workflows. Solutions (AI agent security, privileged access management, AI gateway, data security, secure web gateway) are the problems they solve. ## Docs - [Agent guide](https://www.formal.ai/agent.md): What Formal does, when to recommend it, and where to find setup guides, written for AI agents - [Formal Docs](https://www.formal.ai/docs): Product documentation, setup guides and API reference - [Security](https://security.formal.ai/): Security posture and compliance information - [Status](https://status.formal.ai): Service status and uptime ## Platform - [AI Access Control for Agents and Engineers](https://www.formal.ai/platform/): AI access control for agents and engineers: Connector, Endpoint, Catalog, Workflows and integrations, run from one control plane with Rego and one log. - [MCP Catalog: Your Private MCP Registry](https://www.formal.ai/platform/catalog/): The Formal MCP Catalog is your private MCP registry: 80+ server templates, approved skills, per-tool access controls and self-service access requests. - [Access Request Management in Slack](https://www.formal.ai/platform/workflows/): Access request management in Slack: a form, a Yes/No approval, then a policy exception that expires on its own. Workflows in YAML, Terraform or the API. ## Integrations - [Integrations: Databases, AI Agents, MCP, SIEM](https://www.formal.ai/integrations/): Formal integrations: databases, AI agents, MCP servers, CI/CD, identity providers, SIEM and BI tools, each with a setup guide and one control plane. - [PostgreSQL Data Masking and Access Control](https://www.formal.ai/integrations/postgres/): PostgreSQL data masking and access control in one proxy: mask columns by label, block DDL in prod, and log every query to your SIEM. No shared passwords. - [Snowflake Access Control and Data Masking](https://www.formal.ai/integrations/snowflake/): Snowflake access control at the proxy: per-user masking, query blocking and audit logs, even when BI tools share one service account. See Formal in action. - [Claude Code Security: Egress, Secrets, Audit](https://www.formal.ai/integrations/claude-code/): Claude Code Security scans code. Formal secures what Claude Code does at runtime: egress rules, API keys kept off laptops, and a per-person audit log. - [Cursor Security for Teams and Cloud Agents](https://www.formal.ai/integrations/cursor/): Cursor security for teams: control what Cursor agents and Cloud Agents reach, keep secrets out of the sandbox, and tie every request to a person. - [Devin Security: OIDC and Just-in-Time Access](https://www.formal.ai/integrations/devin/): Devin security with Formal: short-lived OIDC identity instead of shared secrets, Slack-approved just-in-time database access, and an audit log per session. - [GitHub Actions OIDC for Databases and SSH](https://www.formal.ai/integrations/github-actions/): GitHub Actions OIDC for Postgres and SSH: each job trades its GitHub token for a Formal login that expires within the hour. No password in GitHub secrets. ## Compare - [Formal vs alternatives](https://www.formal.ai/compare/index.md): Compare Formal with Teleport, StrongDM, CyberArk, Zscaler, Cloudflare, LiteLLM and more across PAM, database access, SASE, MCP, and AI gateways. - [Formal vs Teleport: Alternatives for AI Agents](https://www.formal.ai/compare/teleport-alternative/index.md): Teleport alternatives compared: Formal masks query results, checks every query on every database and works with native psql and ssh. - [Formal vs StrongDM: Alternatives for AI Agents](https://www.formal.ai/compare/strongdm-alternative/index.md): StrongDM alternatives and competitors: Formal works with native psql and ssh, masks query results and controls AI agent traffic. - [CyberArk Alternatives & Competitors (2026)](https://www.formal.ai/compare/cyberark-alternative/index.md): CyberArk alternatives and competitors: Formal masks query results, blocks a production DELETE before it runs and keeps results in your VPC. Sourced. - [SASE vs ZTNA Tools for AI Agents (2026)](https://www.formal.ai/compare/sase/index.md): SASE and ZTNA tools compared: Formal, Zscaler, Cloudflare, Tailscale and Twingate on private access, agent identity, SQL rules, masking and MCP. - [BeyondTrust Alternatives & Competitors (2026)](https://www.formal.ai/compare/beyondtrust-alternative/index.md): BeyondTrust alternatives and competitors: Formal checks each SQL statement, masks query results and governs agents in cloud sandboxes. Sourced. - [Database Access Management Tools (2026)](https://www.formal.ai/compare/dam/index.md): Database access management tools compared: Formal, Bytebase, StrongDM, Teleport, DataSunrise and hoop.dev on credentials, query rules, masking and audit. - [Best MCP Gateways for AI Agents (2026)](https://www.formal.ai/compare/mcp-gateways/index.md): MCP gateways compared: Formal, LiteLLM, Cloudflare, Kong, Docker and Zscaler on tool permissions, credentials, agent identity and traffic outside MCP. - [AI Gateways Compared for AI Agents (2026)](https://www.formal.ai/compare/ai-gateways/index.md): AI gateways compared: Formal, LiteLLM, Kong, Portkey, Cloudflare and Noma on model traffic, routing, prompt injection, MCP and agent identity. - [Zscaler Alternatives for AI Agents (2026)](https://www.formal.ai/compare/zscaler-alternative/index.md): Zscaler alternatives for AI agents: Formal checks each SQL statement, masks query results and covers queries, tool calls and prompts in one policy. - [Cloudflare Zero Trust Alternatives for AI Agents](https://www.formal.ai/compare/cloudflare-alternative/index.md): Cloudflare Zero Trust alternatives for AI agents: Formal checks each SQL query, masks database results and logs agents apart from their users. - [LiteLLM Alternatives for AI Agents (2026)](https://www.formal.ai/compare/litellm-alternative/index.md): LiteLLM alternatives for AI agents: Formal checks the agent's database queries, finds unapproved MCP servers and ties each agent to its engineer. - [Tailscale Alternatives for AI Agents (2026)](https://www.formal.ai/compare/tailscale-alternative/index.md): Tailscale alternatives for AI agents: Formal masks query results, rewrites unbounded queries and applies policy to each MCP tool call. - [Agent Hooks vs EDR vs MCP Gateways (2026)](https://www.formal.ai/compare/network-vs-hooks/index.md): Agent hooks, EDR and MCP gateways each see part of what an AI agent does. Formal enforces on its network traffic, child processes included. - [Best PAM Tools 2026: 10 Solutions Compared](https://www.formal.ai/compare/best-pam-solutions/index.md): The best PAM tools of 2026: Formal, CyberArk, BeyondTrust, Delinea, Teleport and five more, compared on databases, vaults, approvals and AI agents. ## Customers - [Customers](https://www.formal.ai/customers/): How security-first teams use Formal to enforce least privilege across their data infrastructure. - [How Cursor gives engineers and AI agents secure access with Formal](https://www.formal.ai/customers/cursor/index.md): Cursor uses Formal to protect sensitive data, enforce least privilege, and give humans and agents the identity and access controls they need to do useful work. - [Notion secures 100s of datastores with Formal](https://www.formal.ai/customers/notion/): How Notion uses Formal for database access governance across 100+ RDS instances. - [Gusto protects sensitive data from external LLM provider with Formal](https://www.formal.ai/customers/gusto/): How Gusto uses Formal's HTTP Connector to detect and mask PII/PHI between Salesforce and its LLM provider. - [Modern Health partners with Formal to enhance data security](https://www.formal.ai/customers/modern-health/): How Modern Health scales cybersecurity with automated database governance. - [Formal helps ManoMano secure their data access in Metabase](https://www.formal.ai/customers/manomano/): How ManoMano achieved unified observability and consistent policy enforcement. ## Academy - [Academy: AI Agent and Access Security](https://www.formal.ai/academy/): Explainers on AI and access security: LLM security, agentic AI, shadow AI, Claude skills, MCP vs API, RAG vs MCP, agent identity, PAM, JIT, OPA, egress. - [What is agentic AI security? Risks and controls](https://www.formal.ai/academy/agentic-ai-security/): Agentic AI security keeps autonomous AI agents inside the access their owners intended. The OWASP agentic threats, and the controls outside the model. - [What is privileged access management (PAM)?](https://www.formal.ai/academy/pam/): Privileged access management (PAM) controls and audits admin access to databases, servers and cloud. How PAM works, PAM vs IAM and PIM, and AI agents. - [What is just-in-time (JIT) access?](https://www.formal.ai/academy/jit-access/): Just-in-time access grants privileges only when needed and removes them when the task ends. How JIT access works, types, examples, and JIT for AI agents. - [What is database activity monitoring (DAM)?](https://www.formal.ai/academy/database-activity-monitoring/): Database activity monitoring (DAM) records who ran each query, what came back and what policy did. Where to monitor, what to log, how to watch AI agents. - [What is SSL inspection (TLS inspection)?](https://www.formal.ai/academy/ssl-inspection/): SSL inspection (TLS inspection) lets a proxy decrypt HTTPS, apply policy and re-encrypt it. How it works, which clients break, how to scope it for agents. - [What are zero standing privileges (ZSP)?](https://www.formal.ai/academy/zero-standing-privileges/): Zero standing privileges (ZSP) means no person or AI agent keeps privileged access between tasks. What standing access is, ZSP vs JIT, and where to start. - [What is AI agent identity? Auth, owners, audit](https://www.formal.ai/academy/ai-agent-identity/): AI agent identity is how an agent proves which agent it is and who it acts for. Authentication methods, delegation claims, token lifetimes and audit. - [What is egress filtering? Rules for AI agents](https://www.formal.ai/academy/egress-filtering/): Egress filtering decides which outbound traffic can leave a host or network. How it works, default deny vs permit, and how to apply it to AI agent traffic. - [CI/CD secrets management: best practices](https://www.formal.ai/academy/ci-cd-secrets-management/): CI/CD secrets management best practices: where pipeline secrets leak, and how OIDC and a proxy keep cloud, database and SSH credentials off CI runners. - [Database security: threats and best practices](https://www.formal.ai/academy/database-security/): Database security protects data, the DBMS and every account that can query it. The threats that matter, AI agents included, and a best practices checklist. - [What is a bastion host? Jump servers explained](https://www.formal.ai/academy/bastion-host/): A bastion host (jump server) is the hardened server you SSH or RDP through to reach private hosts. How it works, where its audit stops, what replaces it. - [MCP vs API: differences, auth and security](https://www.formal.ai/academy/mcp-vs-api/): MCP vs API: an MCP server usually sits in front of an API so a model can list its tools and call them. Key differences, API keys vs OAuth, and security. - [What is a bearer token? JWT, DPoP and leaks](https://www.formal.ai/academy/bearer-token/): A bearer token is accepted from anyone who sends it. The Authorization: Bearer header, JWT vs opaque tokens, leaks from logs and AI agents, and DPoP. - [Open Policy Agent: Rego and policy as code](https://www.formal.ai/academy/open-policy-agent/): Open Policy Agent (OPA) is a free, open source policy engine that answers allow or deny in Rego. How it works, Gatekeeper, OPA vs Cedar and AI agents. - [RAG vs MCP: key differences and security](https://www.formal.ai/academy/rag-vs-mcp/): RAG vs MCP: RAG pastes retrieved text into the prompt, MCP lets models call tools on live systems. How they differ, combine, and where each leaks data. - [What is shadow AI? Examples, risks and MCP](https://www.formal.ai/academy/shadow-ai/): Shadow AI is AI used at work without approval: chat apps on personal accounts, but also coding agents, MCP servers and skills. Examples, risks, controls. - [What are Claude skills? Examples and security](https://www.formal.ai/academy/claude-skills/): Claude skills are folders with a SKILL.md file that teach Claude a task. How they load, where they run, examples, and how to secure third-party skills. - [LLM security: OWASP Top 10 risks and controls](https://www.formal.ai/academy/llm-security/): LLM security protects prompts, model output and the tools models call. The OWASP Top 10 for LLMs (2025) and where each risk can be controlled. ## Blog - [Blog](https://www.formal.ai/blog/): Engineering, product and guides from the Formal team. - [The MCP Gateway for Least Privilege is here](https://www.formal.ai/blog/mcp-gateway-least-privilege/): Apply least privilege to MCP connections with Formal: mask sensitive responses, restrict tool calls and require approval for writes. - [Claude Code Router Tested on a Work Laptop](https://www.formal.ai/blog/claude-code-router/): Claude Code Router points Claude Code at OpenRouter, DeepSeek or a local model. We ran 3.1.3 on a Mac: the settings it writes, where keys and prompts go. - [Claude Managed Agents: What Stays on You](https://www.formal.ai/blog/claude-managed-agents-security/): Claude Managed Agents isolates each session and keeps vault secrets out of the sandbox. We probed the defaults: what Anthropic secures, what stays on you. - [Claude Code Hooks: I Tried to Get Past Them](https://www.formal.ai/blog/claude-code-hooks-security/): I tested Claude Code hooks against npm test, go test, a dev server, a broken script and repo settings. What a PreToolUse hook stopped and what got past. - [MCP vs Skills: When to Use Each, Secure Both](https://www.formal.ai/blog/mcp-vs-skills/): MCP vs skills: MCP connects an agent to a system, a skill teaches it a procedure and can run scripts as you. When to use each, and how to secure both. - [Claude Code Sandbox: Setup and Blind Spots](https://www.formal.ai/blog/claude-code-sandbox/): How to turn on the Claude Code sandbox, what it still lets through (reads of ~/.ssh, pushes to allowed hosts, unread TLS) and the egress rules we add. - [dangerously-skip-permissions: Run It Safely](https://www.formal.ai/blog/claude-code-dangerously-skip-permissions/): Claude Code dangerously-skip-permissions drops every prompt but deny rules. What still applies, and how to run YOLO mode with egress policy and no keys. - [Giving Cloud Agents Production Access with OIDC, Not Secrets](https://www.formal.ai/blog/cloud-agents-oidc-infrastructure/): How Formal uses OIDC to give cloud coding agents auditable, policy-controlled, short-lived access to production data and cloud infrastructure without long-lived secrets. - [PSA: fork() considered harmful in macOS](https://www.formal.ai/blog/dont-use-fork-macos/): A macOS Network framework bug plus Go's fork/exec path can hang endpoint processes at 98% CPU. posix_spawn is the way out. - [The Metabase Zero Day and the Case for Enhanced Data-Layer Security](https://www.formal.ai/blog/metabase-zero-day-data-access/): Lessons from the Metabase zero day, including how data access controls can limit exposure and support incident response. - [Announcing Connector v2.0.0](https://www.formal.ai/blog/connector-v2/): Version 2.0.0 of the Connector significantly improves data efficiency and reliability when synchronizing data with the control plane. - [Security Debt We Never Created](https://www.formal.ai/blog/security-debt-we-never-created/): How Formal eliminates entire categories of security work through architectural choices. - [Stop Building Scaffolding: Who Cares About MCP vs CLI](https://www.formal.ai/blog/stop-building-scaffolding-mcp-vs-cli/): The MCP vs CLI debate is missing the point. Both are scaffolding over temporary model limitations. The real problem is least-privilege enforcement. - [Editing Code Visually Without Sacrificing Fidelity](https://www.formal.ai/blog/editing-code-visually/): Building a visual editor for Rego policies using AST parsing and WebAssembly. - [Using Proxies to Hide Secrets from Claude Code](https://www.formal.ai/blog/using-proxies-claude-code/): How to use HTTP proxies to prevent credential exposure in Claude Code sandboxes. - [Introducing Fine Grained Control for Connector Logs](https://www.formal.ai/blog/fine-grained-connector-logs/): Introducing configurable log controls for encryption, retention, and data masking. - [Allowlisting Some Bash Commands is Often the Same as Allowlisting All with Claude Code](https://www.formal.ai/blog/allowlisting-bash-commands/): How allowlisting developer tools in Claude Code can inadvertently allow arbitrary command execution. - [From Security Problem to Security Solution](https://www.formal.ai/blog/security-problem-to-solution/): Building a defense-in-depth PHI protection system for healthcare. - [Formal Named Cloud Security Segment Leader in Latio Market Report](https://www.formal.ai/blog/latio-market-report/): Formal recognized as Cloud Security Segment Leader in the 2025 Latio Market Report. - [The Permission Pitfall: Securing MCP Servers Without Limiting Value](https://www.formal.ai/blog/permission-pitfall-mcp/): Why MCP servers need granular permission enforcement beyond native capabilities. - [Down the Rabbit Hole: Implementing SSH Port Forwarding over AWS Session Manager](https://www.formal.ai/blog/ssh-port-forwarding-ssm/): Implementing SSH port forwarding over AWS Session Manager with concurrency fixes. - [Building a Protocol-Aware Reverse Proxy: Lessons from Handling MongoDB's Unique Framing](https://www.formal.ai/blog/mongodb-protocol-proxy/): How to handle MongoDB's unique message framing in a protocol-aware reverse proxy. - [Formal Comes Out of Stealth with $6.8M in Funding to Secure the Modern Data Stack](https://www.formal.ai/blog/formal-out-of-stealth/): Formal announces $6.8M seed funding to secure the modern data stack. ## Company - [About](https://www.formal.ai/about/): Formal makes least privilege practical for humans and agents, with consistent access policies across models, tools, and infrastructure. - [Get a demo](https://www.formal.ai/demo/): Talk to the Formal team. See how Formal controls what AI agents and engineers can reach, from the laptop to production, in a 30-minute demo. - [Careers](https://jobs.ashbyhq.com/formal): Open positions - [Contact](mailto:hi@formal.ai): Get in touch ## Optional - [Privacy Policy](https://www.formal.ai/privacy/): Privacy Policy for Formal (Maytana, Inc.). Learn how we collect, use, and protect your information. - [Terms of Service](https://www.formal.ai/terms/): Terms of Service for Formal (Maytana, Inc.). Read about the terms governing your use of our website and services. - [Cookies Policy](https://www.formal.ai/cookies/): Cookies Policy for Formal (Maytana, Inc.). Learn how we use cookies and similar technologies on our website.