Documentation Index
Fetch the complete documentation index at: https://docs.formal.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Formal Desktop App simplifies connecting to protected resources by automating authentication and connection management. It also includes a powerful CLI.Access
Contact Formal support or your workspace administrator for approved Desktop App distribution and deployment guidance.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.
- Start the transparent proxy:
<resource-name> with the name from formal ls. Traffic to that resource’s hostname then goes through the Connector transparently.
CLI Reference
Optional Update Checks
Desktop App update checks are disabled by default. To enable update polling and the tray update icon, add this to~/.formal/config.toml:
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. Create one under API Keys in the console. 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 with an approved package from Formal support:- Request the approved deployment package from Formal support.
- Add it as a custom app in your MDM (Jamf, Intune, etc.).
- Push it 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:
- 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.