Managed policy
A managed policy lets an administrator set defaults, lock settings, and restrict capabilities (such as maximum permission mode, allowed providers, or remote access) for every user on a machine. The Fide server enforces the policy for all connected clients (desktop, web, and mobile).
Roll out a policy
- Author a JSON policy (see Write a policy). Do not include secrets—all local users can read the policy.
- Validate it:
fide policy check policy.json. - Deploy via MDM/GPO or a file to one supported location.
- Restart Fide on the machine (policies load at startup only).
- Verify with
fide policy show.
Write a policy
{
"schemaVersion": 1,
"organization": "Example Corp",
"supportUrl": "https://it.example.com/fide",
"settings": {
"defaultRuntimeMode": { "value": "approval-required", "locked": false },
"enableAgentBrowserAccess": { "value": false, "locked": true }
},
"limits": {
"maxRuntimeMode": "auto-accept-edits",
"clients": ["desktop", "local-browser"],
"telemetry": false
}
}
schemaVersion and organization are required. Locked controls display your organization name and optional supportUrl in Settings.
Where the policy goes
Use one source per machine (having both a native policy and a policy file prevents Fide from starting):
| OS | Native policy | Policy file (admin-writable only) |
|---|---|---|
| macOS | Device configuration profile for com.t3tools.t3code |
/Library/Application Support/T3Code/policy.json |
| Windows | GPO template or Policy (REG_SZ) under HKLM\SOFTWARE\Policies\T3Tools\T3Code |
C:\Program Files\T3Code\policy.json |
| Linux | — | /etc/t3code/policy.json |
- macOS profile: Generate
macos/t3code.mobileconfigwithfide policy templates <dir> --policy policy.json(orplutil -convert xml1 -o com.t3tools.t3code.plist policy.json). Deploy as a single device profile (profiles cannot representnull; use a policy file if needed). - Windows GPO: Generate
windows/t3code.admxandwindows/en-US/t3code.admlwithfide policy templates <dir>, import intoPolicyDefinitions/Intune under Computer Configuration → Administrative Templates → Fide, set Organization, rungpupdate /target:computer /force, and restart Fide. - Windows registry: Set
Policy(REG_SZ) to single-line JSON (do not mix with GPO template values).
Check what the server loaded
Run fide policy show as the user running Fide to inspect the installed policy, fingerprint, and whether the running server has loaded it. After any policy change or removal, restart the desktop app or run fide service restart. Removing a policy restores the user’s own saved settings.
Note: Fide refuses to start if a policy is unreadable, invalid, uses unknown keys from a newer version, or conflicts with another policy source. Always validate with
fide policy checkand upgrade Fide before deploying newer keys.
Settings
Run fide policy settings to list every manageable path from settings.json and its default.
"locked": falsesets a default (users can override)."locked": trueenforces the value across Settings and project overrides.
Key constraints:
- Lock
worktreeCleanuptogether withstorageCleanupworktree rules. observability(OTLP endpoints) cannot be managed by policy.- Manage
idleCompaction(not legacycompactIdleThreads). - Lock
providerInstances.<id>as a whole, or pin per-driver fields underlimits.providers.instances.
Limits
{
"schemaVersion": 1,
"organization": "Example Corp",
"limits": {
"maxRuntimeMode": "auto-accept-edits",
"clients": ["desktop"],
"connect": false,
"webhookTasks": false,
"browserCookieImport": false,
"previewTunnel": false,
"worktreeLayoutCommands": false,
"telemetry": false,
"providers": {
"allowedDrivers": ["claudeAgent", "codex"],
"instances": {
"claudeAgent": {
"locked": true,
"environment": [{ "name": "CLAUDE_CODE_USE_BEDROCK", "value": "1" }]
}
}
},
"updates": { "mode": "auto", "feedUrl": "https://updates.example.com/fide/" }
}
}
Permission modes
maxRuntimeMode caps all threads (approval-required, auto-accept-edits, auto, or full-access). Threads above the cap cannot run until lowered.
When maxRuntimeMode is set, users cannot modify provider launch settings (binaryPath, launchArgs, config home, or env vars)—pin required values (including absolute binaryPaths so user PATH entries can’t shadow them) in providers.instances. Leave acpRegistry out of allowedDrivers if you don’t want users adding arbitrary ACP Registry agents.
Clients and Fide Connect
clients allows any subset of desktop, local-browser, and remote (keep desktop on desktop machines).
- Omitting
remoterestricts the server to loopback, revokes paired devices, disables LAN/Tailscale Serve/Fide Connect, and refuses startup if a Tailscale Serve route still forwards to Fide (or if a legacy service has LAN enabled—runfide up --no-lan). - Set
"connect": falseto disable Fide Connect while allowing LAN/Tailscale remote access.
Other capabilities
webhookTasks: false: Disables scheduled-task and workflow webhooks.browserCookieImport: false: Disables importing cookies from other browsers.previewTunnel: false: Disables remotelocalhosttunneling and port forwarding (streams tabs instead).worktreeLayoutCommands: false: Disablest3.jsonworktreeLayoutcreate/removecommands.telemetry: false: Disables product usage data and relay tracing for the server, desktop app, and server-opened browsers (does not controlfide.workor mobile).
Providers
providers.allowedDrivers: Whitelist of driver IDs (codex,claudeAgent,cursor(Grok Build),opencode,antigravity,fx,kiro,pi,muse,acpRegistry).providers.instances: Sets or locks ("locked": true) fields across all instances of a driver (e.g., Bedrock/gateway env vars,binaryPath,launchArgs). Lockingcodex(or usingmaxRuntimeMode) disables ChatGPT-managed Codex; lockingopencodedisables externalserverUrl.
Updates
mode:"auto"or"off"(when updates are managed externally).feedUrl: Custom update mirror matching GitHub Release layout (latest*.ymland installers at root;t3-*archives andSHA256SUMSunderv<version>/).allowNightly: false: Disables the nightly channel.
What a policy does not cover
- Provider CLIs: Restrict underlying CLIs with their own managed settings (e.g., Claude Code managed settings).
- WSL: Managed Windows desktop disables its WSL environment; a server started manually inside WSL reads
/etc/t3code/policy.jsonin that distro. - Local admins / port forwarding: Administrators can modify policies or Fide binaries, and users can still port-forward loopback sockets with external tools. Use OS/MDM controls for binary integrity and network isolation.