Overview
The Formal Desktop App simplifies connecting to protected resources by automating authentication and connection management. It’s available for macOS and Linux and includes a powerful CLI.Installation
Download the app for your platform:macOS
Download .pkg installer
Windows (x86_64)
Download .msi installer
Ubuntu/Debian (x86_64)
Download .deb package
Ubuntu/Debian (ARM64)
Download .deb package
macOS Installation
- Download the
.pkgfile - Open the package and follow installation instructions
- Allow requested permissions
- Launch Formal from Spotlight or Applications
Windows Installation
- Download the
.msifile - Open the installer and follow installation instructions
- Launch Formal from the start menu
Linux Installation
NixOS
Use the Formal overlay:Setup
Install CLI (macOS)
Click the tray icon → Preferences → Install in PATH Or manually:
bash sudo ln -s /Applications/Formal.app/Contents/MacOS/formal /usr/local/bin/formal Connecting to Resources
Avoiding Credentials
After you log in, confirm your session with:formal connect for a , the Desktop App injects Formal credentials for you. You do not pass Formal usernames or passwords to the client.
- SSH and Kubernetes: Your
~/.ssh/configand~/.kube/configare updated so tools use the right paths and identity. - Other technologies: A localhost listener is started. Point your client at that address and port without supplying Formal credentials.
Transparent Proxy
Transparent proxy is supported on macOS only.
- Run:
- Approve any system prompts so the Formal Desktop App network extension can run. You only need to enable this once per machine.
<resource-name> with the name from formal ls. Traffic to that resource’s hostname then goes through the Connector transparently.
--only-agents
--only-agents is supported on macOS only, and only for where the Desktop App supports agent-scoped interception.--only-agents to formal connect when you want the local proxy to intercept traffic only from coding agents. The Desktop App inspects the connecting process and its ancestors. Interception runs only if an ancestor is a recognized agent, such as:
- Claude Code
- Codex
- Cursor
- OpenCode
Local TLS interception
To intercept TLS for HTTP or LLM , trust Formal’s organization CA in your macOS keychain:- Open the certificate file
~/.formal/ca/formal-org-ca.cer(double-click it or open it from Finder). - Keychain Access opens. Select the Formal certificate.
- Open Trust, expand Secure Sockets Layer (SSL), and choose Always Trust.
CLI Reference
Authentication
List Resources
↑/k- Move up↓/j- Move downenter- Connect to resource/- Filter resourcesq- Quit?- Show help
Connect to Resources
Databases (PostgreSQL, MySQL, MongoDB)
--launch argument to launch the appropriate CLI program after connecting (for example psql or ssh), e.g.
Specify Native User
If you need to specify a different native user than the default one assign to your user, you can specify using the convention:formal@[the_name_of_the_native_user].
SSH
~/.ssh/config automatically.
Kubernetes
~/.kube/config to route through the Connector.
Disconnect
Policy Evaluation
Test policies locally:Decrypt Data
Decrypt Formal-encrypted data:S3 Operations
The Formals3 command automatically routes traffic to the right Connector so your users don’t have to worry about formatting the right parameters for S3.
Interact with S3 through Formal:
Device Trust
The Desktop App reports device information for policy enforcement:- Hardware model and serial number
- OS version and security settings
- System Integrity Protection status
- Secure boot status
Headless Mode
The Formal Desktop app supports being launched in headless mode. This can be useful in server environments without a GUI or keyring support. To start the agent in headless mode, you can use the following command:Using an API Key
The Formal Desktop app supports using an API key to authenticate to the Control Plane. First, you will need to create an API key on the Formal Console. You can learn how to create an API key here. To start the agent with an API key, you can use the following command:MDM Deployment
Deploy the Desktop App organization-wide via your MDM:- Download the macOS .pkg
- Add as a custom app in your MDM (Jamf, Intune, etc.)
- Push to all user devices
Need help deploying via MDM? Contact Formal support for assistance.
Troubleshooting
App not running
App not running
Error:
WARNING: CLI cannot connect to the Formal app. Please make sure the Formal app is running.Solution:- Check that Formal is visible in system tray
- Restart the Formal app
- On Linux:
systemctl start --user formal
Command not found
Command not found
Error:
bash: formal: command not foundSolution:- Reinstall CLI: Click tray icon → Preferences → Install in PATH
- Or create symlink manually (see Setup section)
- Or add alias to
.bashrc/.zshrc
Connection fails
Connection fails
Solution:
- Verify you’re logged in:
formal status - Check resource exists:
formal ls - Ensure Connector is running
- Check network connectivity
Best Practices
Keep App Running
Keep App Running
The Desktop App must be running for CLI commands to work. Enable “Launch at
startup” in preferences.
Use Descriptive Resource Names
Use Descriptive Resource Names
When connecting via
formal connect, use tab completion to find resources
quickly.Leverage the TUI
Leverage the TUI
formal ls provides an interactive way to explore and connect to resources
without memorizing names.Disconnect When Done
Disconnect When Done
Always disconnect from resources when finished to free up local ports.