# fx Permissions Reference: session/request_permission, yolo Mode and acp-fx

fx has no plugin or hook API. Its control point is the session/request_permission message. acp-fx sits on it, checks each call, and logs the decision.

<div style="background:var(--acp-surface,#f8f9fb);border:1px solid var(--acp-border,#e2e5ea);border-radius:12px;padding:20px 24px;margin:24px 0;">
<p style="margin:0 0 10px;font-weight:600;">Just want the answer?</p>
<p style="margin:0 0 12px;">fx has no hook or plugin API to install into. Point your Agent Client Protocol client at a proxy instead of running <code>fx acp</code> directly:</p>
<pre style="margin:0 0 12px;overflow-x:auto;"><code>npm install -g @agenticcontrolplane/fx
acp-fx -- fx acp</code></pre>
<p style="margin:0;">Native control model: <a href="/controls/fx">fx permissions, explained</a>. Not the product this site is named for: <a href="/acp-vs-acp">ACP vs. ACP</a>.</p>
</div>

fx is Vercel Labs' small coding agent, written in Zig and announced August 18, 2026. First, a name clash. fx speaks the **Agent Client Protocol**, Zed's editor protocol, which is also shortened to ACP. [It has nothing to do with the Agentic Control Plane this site is named for](/acp-vs-acp). This page is about the message fx sends for every approval-gated tool call, and the proxy that sits on it.

## No hook or plugin API, from outside

fx's source has an internal hook system with a `pre_tool_use` event that can block or rewrite a call. Nothing outside the binary can attach to it. No settings key, no subprocess, no documented interface. It's built in, and a policy tool can't register against it today.

## The control point: `fx acp` and `session/request_permission`

fx can run as an Agent Client Protocol server (`fx acp`). Each approval-gated call goes to the connected client as a `session/request_permission` request with the full tool arguments. The client answers allow or deny, and fx obeys. An error, a cancellation or a malformed answer counts as **deny**. Only one request is ever pending at a time.

One detail to know before you write anything against this. The original tool name never reaches the message. The `toolCall` carries a readable title, such as "Run: rm -rf /tmp/scratch", and a broad `kind`: read, edit, delete, move, execute, search or other. Any rule on this message has to match on title text and kind. It can't match on fx's internal tool names.

## `acp-fx`: a proxy, not a plugin

fx has no plugin API, so `acp-fx` is a stdio proxy with no dependencies. It sits between a real Agent Client Protocol client (Zed, or any ACP driver) and the `fx acp` process. It passes every message through untouched except `session/request_permission`. That one it checks with ACP (`POST /govern/tool-use`) and answers:

| Decision | Attended | `--unattended` |
|---|---|---|
| allow | reply `allow_once` directly | same |
| deny | reply `reject_once` directly | same |
| ask | forward the original request to the real client, so a person decides | reply `reject_once`, because an unattended agent can't approve itself |
| ACP unreachable or timed out | forward to the client and let it decide, with a loud `[ACP] ⚠ UNGOVERNED` line on stderr | reply `reject_once` |
| no credential found | same as unreachable | same |

The reply is always `allow_once` or `reject_once`, never `allow_always`, even when the answer is allow. Every later call to the same tool gets checked again, so fx never stores a blanket approval on the proxy's word.

fx is a different shape from the hook-based agents. The check only sees calls that fx itself routes to `session/request_permission`, not every tool call. [The coverage page](/coverage) compares it with the others.

## Output scanning only changes what you see

fx's `session/update` messages carry a tool's result text out to the client as it happens. `acp-fx` also posts that text to `POST /govern/tool-output` and can block or redact what the client displays. This is **display only**. fx has already given the raw result to its own model before the message goes out. Blocking or redacting changes what you see in your editor. It doesn't change what the model already read. If ACP can't be reached during this check, the text passes through unchanged. The loud fail-open and fail-closed behavior above belongs to the check before the call runs.

## Install and point your client at it

```bash
npm install -g @agenticcontrolplane/fx
acp-fx -- fx acp        # point your ACP client here instead of `fx acp`
```

The main installer doesn't set up fx. It isn't in `install.sh`'s list of agents, so use the command above. It needs Node 22+ and a workspace key in `~/.acp/credentials` (or `ACP_API_KEY` or `ACP_BEARER_TOKEN`).

If the proxy finds no key, it says so on stderr at startup and stays out of the way. It won't brick your session, but it also can't check anything.

## When ACP is down

The table above is the whole story. The proxy makes one retry on a transport failure (never on an HTTP error). Then, with a person attached, it lets the call through to the client with a loud warning, and the client still gets the original request to decide. In `--unattended` mode it rejects the call, with no exceptions, because nobody is there to decide.

## Known limits

- fx has its own `auto` mode. A built-in model reviewer can approve a sensitive call when no rule matches. That's an fx feature. `acp-fx` only sees a call after fx has decided it needs permission, so it doesn't see what the reviewer approved.
- ACP doesn't meter model spend for fx. The activity log has the decision (`allow_once` or `reject_once`), title, kind, latency and reason, but not token cost.
- `FX_PERMISSION_MODE=yolo` skips fx's permission system completely, before any of this runs. In yolo mode fx never sends `session/request_permission` at all. `acp-fx` removes that variable from the environment of the process it starts, so a stray shell export can't turn the checks off. It can't stop yolo from being set some other way inside fx itself.
- ACP runs here as a client-side proxy. If someone starts `fx acp` without it, there's no check.

## Frequently asked questions



## Where to read more

- [fx permissions, explained](/controls/fx)
- [ACP vs. ACP: the name clash](/acp-vs-acp)
- [Claude Code hooks reference](/blog/claude-code-hooks-reference)
- [Codex hooks reference](/blog/codex-cli-hooks-reference)
- [fx-acp-plugin source](https://github.com/agentic-control-plane/fx-acp-plugin)
- <!-- source: https://github.com/vercel-labs/fx --> [fx (Vercel Labs)](https://github.com/vercel-labs/fx)
- <!-- source: https://fx.sh/docs/configure-fx/permissions.md --> [fx permissions docs](https://fx.sh/docs/configure-fx/permissions.md)
